Dvrstle Posted July 15, 2012 Posted July 15, 2012 Here's what i want: The 2 players needs to register first and place their bet.. the npc should check if the bets are the same item or zeny The NPC will start their duel within 30secs . . for the players to have time to buffs or else.... after their fight, the winning player will get the bet. Example: Player A - placed bet 20m [Player A's zeny will be deducted by 20m] Player B - placed bet 20m [Player B's zeny will be deducted by 20m] The NPC will start the countdown after they're both registered. [Note: The NPC can host only one battle at a time] If Player A won, he/she will get 40m which means that he won 20m for that fight any suggestions to improve this scripts will be accepted =) Quote
PewN Posted July 17, 2012 Posted July 17, 2012 what map? do oyu want? OnPCKillEvent: if( strcharinfo(3) == "mapname" ){ if( killedrid != getcharid(2) ){ set zeny,zeny + 40000000; dispbottom "You win the duel; } Quote
Santino Posted October 6, 2012 Posted October 6, 2012 (edited) you can try this one. but still got many bugs. when many players starts the duel. you can make it 1 at a time by adding some getusermap blablas. here. Edited October 6, 2012 by Mammon Quote
Question
Dvrstle
Here's what i want:
The 2 players needs to register first and place their bet..
the npc should check if the bets are the same item or zeny
The NPC will start their duel within 30secs . . for the players to have time to buffs or else....
after their fight, the winning player will get the bet.
Example:
Player A - placed bet 20m [Player A's zeny will be deducted by 20m]
Player B - placed bet 20m [Player B's zeny will be deducted by 20m]
The NPC will start the countdown after they're both registered. [Note: The NPC can host only one battle at a time]
If Player A won, he/she will get 40m which means that he won 20m for that fight
any suggestions to improve this scripts will be accepted =)
6 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.