Jump to content
  • 0

[HELP] SQL script


Street

Question

10 answers to this question

Recommended Posts

  • 0

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');

Link to comment
Share on other sites

  • 0

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 :/

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...