Cash Points in Killing monster

Jet Kong

New member
Messages
5
Points
0
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.

Untitled.jpg

I hope you can help me 
default_biggrin.png


 
Last edited by a moderator:
I suggest you a switch for this.. Is more ordered, check..

Code:
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;
 
Last edited by a moderator:
Back
Top