Removing no drop permanently for all items.
I did this last year but for the life of me I can't remember how I did it and I can't find the thread where I read how to do it. I want to permanently, irrevocably remove all no drop and no trade flags from EVERY item in the game but the single "disablenodrop" flag in variables doesn't do it (items are still no trade). I know you have to run a database command to essentially find and replace every "1" flag for "nodrop" column in table "items" but I don't know how to do this. Anyone?
:smile: |
For no drop, you can do "UPDATE items SET nodrop=1;" .. No trade should be the same, but I forget whether 0 or 1 means tradeable in that field. Check the DB and look at a known non-tradable item, then make the flag opposite of that value.
|
That's one of the customizations we use on our server. Here it is straight from the list of changes I run every time the database gets updated:
Code:
### This removes the NO DROP tag from all items ### |
I use the variables table with
DisableNodrop=1 DisableNoRent=1 DisableNoTransfer=1 DisableLore=1 And modify it in the code shareddb.cpp Code:
bool disableNoRent = false; Code:
item.NoRent = disableNoRent ? (uint8)atoi("255") : (uint8)atoi(row[ItemField::norent]); |
Quote:
|
Nice code, Congdar! Why not post that in Server Code Submissions, or Custom Code Submissions sections of the forums? It's a shame to see cool code like that to be lost in some random post. Kinda makes me wonder what other awesome code could be lost out there somewhere lol. I know at least 1 other guy that does the same thing, posting code in random posts hehe.
|
well, the nodrop code is already in the sources. I just extended it to include Lore, NoRent and NoTansfer.
|
Quote:
These really should be made into rules not variables as the variables table is becomming outdated. |
Whats the difference between NODROP and NOTRANSFER?
|
I am pretty sure that on Live NO TRANSFER is used for Shroud items which could not be transferred back to the main character after unshrouding.
|
All times are GMT -4. The time now is 06:53 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.