I need to check who has most item x to declare the winner of the event.
I saw addrid() but didn't understand how it works, and there is no examples.
I'm going to create a custom command to fill an array with everybody account id's and then run a for with attachrid. But I wan't to know if there is a way to do this with the current tools available for scripting.
Thanks.
PS: Don't give me alternate ways to accomplish what I want ( ex: put a NPC on map and make everybody click on it, or whatever ).
Question
Moriarty
I want to run a script for everyone in a map.
I need to check who has most item x to declare the winner of the event.
I saw addrid() but didn't understand how it works, and there is no examples.
I'm going to create a custom command to fill an array with everybody account id's and then run a for with attachrid. But I wan't to know if there is a way to do this with the current tools available for scripting.
Thanks.
PS: Don't give me alternate ways to accomplish what I want ( ex: put a NPC on map and make everybody click on it, or whatever ).
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.