The zero doesn't mean the monster ID, that's aboout the killedrid opition, then that should be 0!!@@RodRich
I tried this:
- script test1 -1,{ OnNPCKillEvent: set .@map$, "prontera"; if(strcharinfo(3)==.@map$){ if(getmonsterinfo(killerid,1008)==1008){ // It has to be 1008 (poring's ID) else it will give me a: //[Error]: buildin_getmonsterinfo: Wrong Monster ID: 0 //[Error]: scriptp_2: invalid data for operator C_EQ //[Debug]: Data: string value="null" //[Debug]: Data: number value=1008 //[Debug]: Source (NPC): test1 (invisible/not on a map) set f1ks,f1ks +1;// to count +1 kills; announce "PORINGS KILLED +1 ["+ f1ks +"/5]",3; } if (f1ks >= 5){ set f1ks,f1ks=0; //to reset the counter and buff sc_start 10, 240000,10; }}end;}
but even with that, it gives me: [Error]: buildin_getmonsterinfo: Wrong Monster ID: 0
try this way instead:
Code:
if(getmonsterinfo(killerid,0)==getmonsterinfo(1008,0)){
Last edited by a moderator: