Jump to content

Question

2 answers to this question

Recommended Posts

Posted

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

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

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