Sql
Im wanting to do change afew things in game .... i know how to do this but im wanting to know if i can run something in sql to make it quicker
first thing is change NPC races say from 211 to 478 second is change all items from nodrop to attunable any help is appreciated thanks in advance |
1. UPDATE `npc_types` SET `race`=478 WHERE `race`=211;
2. UPDATE `items` SET `attuneable`=1, `nodrop`=0 WHERE `nodrop`=1; |
Note that both of these are irreversible actions. You'd have to restore the npc_types and items tables from a backup if you wanted to undo it.
|
thank you :) give it a try now ... if this works you saved me alot of time
|
items are still notrade even after server restart?
|
Are you running shared_memory over again as well? That's what loads the items from the database into memory for the zone server to access, and it's easy to miss.
|
that fires up when i use start.bat
i compiled my own server... did not use repack or anything |
Huh. Maybe the fields aren't as straightforward as they looked.
Anybody else have an idea? |
everything now seems notrade
|
ok upon me and players checking things it seems everything is attunable and notrade... so it kinda worked :)
|
You know what? I'll bet the name of the field is reversed. It should be "tradeable".
Try this: UPDATE `items` SET `nodrop`=1 WHERE `attuneable`=1; |
Crud... and you know what? If the field name is backwards, then the first UPDATE command did the wrong thing. It turned the TRADEABLE items into Attunable No-Trade, leaving the No-Trade items alone. Gah.
Do you have a backup of the items table? |
and now everything is notrade :s
i have a full back-up so just need to scroll and find items if theres no way to fix |
and i meant to put everything is notrade... nothing is attunable
|
how about a command to take off notrade then a seprate one to make everything attuneable? i tried this
UPDATE `items` SET `nodrop`=0 WHERE `nodrop`=1; |
All times are GMT -4. The time now is 03:18 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.