Jump to content
  • 0

If kill mob can get cashpoint


Question

Posted

I already seach the cashpoint script, but all about pvp and mvp kill can get the cash point. Anyone can share with me script that if kill any monster in akk maps can get cash point ?

 

Thanks advanced and sorry my bad english .

5 answers to this question

Recommended Posts

  • 0
Posted (edited)
- script gvubhnji -1,{

OnNPCKillEvent:
#CASHPOINTS = #CASHPOINTS + .@R;

dispbottom "Gained : "+ .@R +" points. Total : "+ #CASHPOINTS +" points."; }

end;

OnInit:
set .@R,1; //cashpoints per kill
end;

}

this will add cashpoint for each monster killed

Edited by benching
  • 0
Posted (edited)

search for the use of

OnNPCKillEvent

and

atcommand

that will help you.

 

 

I show the example script.. this one if kill mvp / mini bos.. how if if kill all mob on all maps ?

 

 

- script gvubhnji -1,{

OnNPCKillEvent:

if( killedrid && ( getmonsterinfo(killedrid, 21) & 0x0020 ) && ( killedrid <= 3000 ) ) {

if( getmonsterinfo(killedrid, 22) )

.@R = rand( 100, 500 );//-- MVP

else

.@R = rand( 50, 150 );//-- MINIBOSS

#CASHPOINTS = #CASHPOINTS + .@R;

dispbottom "Gained : "+ .@R +" points. Total : "+ #CASHPOINTS +" points."; }

end;

}

Edited by erryngok
  • 0
Posted
- script gvubhnji -1,{

OnNPCKillEvent:
#CASHPOINTS = #CASHPOINTS + .@R;

dispbottom "Gained : "+ .@R +" points. Total : "+ #CASHPOINTS +" points."; }

end;

OnInit:
set .@R,1; //cashpoints per kill
end;

}

this will add cashpoint for each monster killed

 

Thanks sir  /no1

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