Jump to content
  • 0

Cashpoint


Phantom Of Rogue-Gon

Question


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

hello iwant to request a script


example


 


when the player kill the poring or another mobs the get cashpoint


specific map


Edited by Phantom Of Rogue-Gon
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Try this one : 

-    script    Sample    -1,{
    OnNPCKillEvent:
        if ( strcharinfo(3) == "prontera" ) {
            if ( killedrid == 1002 )
                #CASHPOINTS += 5;
            dispbottom "You now have " +#CASHPOINTS+ " cash points";
        }
        end;
}

 

If you want to add map and mob then the script looks like this : 

-    script    Sample    -1,{
    OnNPCKillEvent:
        // Add " || strcharinfo(3) == <another map name> "
        if ( strcharinfo(3) == "prontera" || strcharinfo(3) == "payon" ) {
            // Add " || killedrid == <mob id> "
            if ( killedrid == 1002 || killedrid == 1113 )
                #CASHPOINTS += 5;
            dispbottom "You now have " +#CASHPOINTS+ " cash points";
        }
        end;
}

Note that this script add 5 cash points on the player account each time the player kill a certain mob :D

Link to comment
Share on other sites


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

Posted (edited) · Hidden by Capuche, August 13, 2013 - Yes but no..
Hidden by Capuche, August 13, 2013 - Yes but no..

Internet connection's acting up. Sorry about that double post. 

Edited by IceTea
Link to comment

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...