Jet Kong 0 Posted May 20, 2013 (edited) 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. I hope you can help me Edited May 20, 2013 by Jet Kong Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted May 20, 2013 your script codes should be put inside a npc Quote Share this post Link to post Share on other sites
0 Jet Kong 0 Posted May 20, 2013 omg, so dumb of me. thanks for the answer. Quote Share this post Link to post Share on other sites
0 Relzz 32 Posted May 24, 2013 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; Quote Share this post Link to post Share on other sites
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
But.
I hope you can help me
Edited by Jet KongShare this post
Link to post
Share on other sites