Hello Guys, firstly I would like to thank anyone for support, tips or help in resolving this issue.
I'm a newbie in this matter of scripting NPC's, i made some searchs but not found something similar. I need help to create an NPC with these conditions:
I will have a list of grand prizes and consolation prizes, the price for attempt and the odds.
like:
Raffle Grand Prize Consolation Prize Price to try Chance to get the grand prize
01 Item ID X1 Item ID Y1 V1 zeny %W1
02 Item ID X2 Item ID Y2 V2 zeny %W2
. . . . .
. . . . .
. . . . .
XX Item ID Xn Item ID Yn Vn zeny %Wn
The NPC will randomly choose one of the options from the list (Raffle column) , and then, the raffle will be available with the respectives attributes for the players to try to win the grand prize under the following conditions: If someone wins, a new raffle will be chosen randomly, if no one wins the grand prize in the last x minutes, a new raffle will be randomly chosen, and may even be the same.
If possible I would like to announce to the entire server when a new raffle is available, and what the grand prize and consolation prize are.
Question
Lion
Hello Guys, firstly I would like to thank anyone for support, tips or help in resolving this issue.
I'm a newbie in this matter of scripting NPC's, i made some searchs but not found something similar. I need help to create an NPC with these conditions:
I will have a list of grand prizes and consolation prizes, the price for attempt and the odds.
like:
Raffle Grand Prize Consolation Prize Price to try Chance to get the grand prize
01 Item ID X1 Item ID Y1 V1 zeny %W1
02 Item ID X2 Item ID Y2 V2 zeny %W2
. . . . .
. . . . .
. . . . .
XX Item ID Xn Item ID Yn Vn zeny %Wn
The NPC will randomly choose one of the options from the list (Raffle column) , and then, the raffle will be available with the respectives attributes for the players to try to win the grand prize under the following conditions: If someone wins, a new raffle will be chosen randomly, if no one wins the grand prize in the last x minutes, a new raffle will be randomly chosen, and may even be the same.
If possible I would like to announce to the entire server when a new raffle is available, and what the grand prize and consolation prize are.
Any help or guidance is greatly appreciated!
Link to comment
Share on other sites
3 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.