Jump to content
  • 0
Sign in to follow this  
Jet Kong

Cash Points in Killing monster

Question

Gain a cash points killing a monster in a specific map.

 

I tried to make one searching all over this is all i've got

 

 


OnNPCKillEvent:
if( strcharinfo(3) == "prt_fild08" && killedrid == 1002 ){
set #CASHPOINTS, #CASHPOINTS +1;
dispbottom "Gained 1 cash points. Total " + #CASHPOINTS + " points";
}
end;

 

But.

 

post-703-0-67805200-1369066934_thumb.jpg

 

I hope you can help me  :D

Edited by Jet Kong

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I suggest you a switch for this.. Is more ordered, check..

 

OnNPCKillEvent:if (strcharinfo(3)=="prt_fild08"){switch(killedid){case MOBID:#CASHPOINTS = #CASHPOINTS+1;dispbottom "Gained 1 cash point. Total cash points "+#CASHPOINTS+".";end;case 1002:#CASHPOINTS = #CASHPOINTS+1;dispbottom "Gained 1 cash point. Total cash points "+#CASHPOINTS+".";end;}}end;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.