Jump to content
  • 0

Bet NPC during Duel


Dvrstle

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

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 =)

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

~~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

what map? do oyu want?

OnPCKillEvent:

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

if( killedrid != getcharid(2) ){

set zeny,zeny + 40000000;

dispbottom "You win the duel;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

xD how about their bets?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  29
  • Reputation:   0
  • Joined:  06/16/12
  • Last Seen:  

upppp

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   3
  • Joined:  01/01/12
  • Last Seen:  

up up up

Link to comment
Share on other sites

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.

×
×
  • Create New...