Jump to content
  • 0

Question

Posted

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

Posted

what map? do oyu want?

OnPCKillEvent:

if( strcharinfo(3) == "mapname" ){

if( killedrid != getcharid(2) ){

set zeny,zeny + 40000000;

dispbottom "You win the duel;

}

Posted (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 by Mammon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...