Quote:
|
Originally Posted by Admin Vorspire
This script looks awesome, but i must know if it is possible for it to automatically add EVERY item on the server, into respectable groups. Would i have to edit BaseItem so that when an item is created, it is added to the database? Please tell me how i could do that.
|
Yes, it's possible to do. Perhaps you need to edit the Item() constructor for this. Look at the example in my post above («I have a custom script which generates items. How can I make my script to automatically add those items to a group, so that I can easily track them in game?»).
However, I don't suggest doing this, it would overload your server with useless operations (many items added are just temporary, and/or most of them do not actually need a categorization). If you want, perhaps, to show all katana in the world, you can just type this command:
[global tg where katana. This will open a Groups Handler gump showing all katana in the world. Using the Global command is recommended in these situations, rather than categorizing all the items in the world. I personally used a lot of times «
global tg where ...»-like commands, as the result is more significative than «global interface where...».
However, if you need to automatically categorize all GM-added items, you can do it by only editing scripts for add/tile/dupe commands.