Jump to content
  • 0

[HELP] SQL script


Question

10 answers to this question

Recommended Posts

  • 0
Posted

Raidboss dont drop Adena..

i just tell you example...

for example all 61+ raidboss have item 9999 in droplist you can use this command

 

UPDATE droplist SET itemId=(youitemid) WHERE itemId=9999 AND mobId IN (SELECT id FROM npc WHERE level >= 61 AND type='L2Raidboss');

  • 0
Posted

mysql> ;UPDATE droplist SET itemId=(5575) WHERE itemId=9999 AND mobId IN (SELECT id FROM npc WHERE level >= 61 AND type='L2Raidboss');

1065 - Query was empty

Query OK, 0 rows affected

Rows matched: 0  Changed: 0  Warnings: 0

 

0 rows affected :/

  • 0
Posted

and what? if you use

INSERT INTO droplist VALUES

you can't indicate only rbs

thats true

 

wasnt there some way to copy the table to a file, so you could edit the file and use it in another sql command?

  • 0
Posted

mysql> ;UPDATE droplist SET itemId=(5575) WHERE itemId=9999 AND mobId IN (SELECT id FROM npc WHERE level >= 61 AND type='L2Raidboss');

1065 - Query was empty

Query OK, 0 rows affected

Rows matched: 0  Changed: 0  Warnings: 0

 

0 rows affected :/

because no rbs upper 61 lvl don't have item 5575 in droplist

  • 0
Posted

Ok i use

 

insert into droplist (mobId, itemid, chance, min, max,category) select id, 57, 1000000, 1, 2, 1 from npc where type='L2Raidboss';
UPDATE droplist SET itemId=(10639) WHERE itemId=57 AND mobId IN (SELECT id FROM npc WHERE level >= 61 AND type='L2Raidboss');

 

And working good. THX Leki.

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..