Author Topic: More Save/Load Items Events  (Read 610 times)

Can someone make these?

onItemsLoaded // onItemsSaved - When items are loaded or saved anywhere at anytime in a server, an event is triggered

ifItemLoaded [Item] - Checks if a certain item has been loaded, this would be followed on the next line by one of the "onVariable" events

ifItemSaved [Item] - Checks if a certain item has been saved, this would, again, be followed by one of the "onVariable" events


Examples:

onItemsLoaded -> Self -> ifItemLoaded [Riot Shield]
onVariableTrue -> Player -> ChangeDataBlock [Slow Player]

When someone's items are loaded, it checks if a Riot Shield was loaded. If it was loaded, it changes that player to a slower playertype.



onItemsLoaded -> Self -> ifItemLoaded [NONE]
onVariableTrue -> Client -> Centerprint [You have no items to load!]

If no items are loaded the player gets a centerprint message telling him he has no items to load.


onItemsSaved -> Self -> ifItemSaved [Riot Shield]
onVariableTrue -> <NAMED BRICK> -> incrementPrintCount [1]

This would be a way to see which items are being saved more or less than others.


Tell me what you guys think. Suggest any other useful events you think of.



I like it. Or just change the script to make the datablock of the player slow.