OnNPCKillEvent: if ( strcharinfo( 3 ) != "prt_fild04" || killedrid != 1002 ) end; getitem 7227, 1; end;
Code:OnNPCKillEvent: if ( strcharinfo( 3 ) != prt_fild04 || killedrid != 1002 ) end; getitem 7227, 1; end;
[Error]: script:op_2: invalid data for operator C_NE[Debug]: Data: string value="prt_fild04"[Debug]: Data: number value=0[Debug]: Source (NPC): kjhdkfjsf (invisible/not on a map)
shouldnt prt_fild04 be inside quotes.OnNPCKillEvent: if ( strcharinfo( 3 ) != prt_fild04 || killedrid != 1002 ) end; getitem 7227, 1; end;
OnNPCKillEvent: if ((strcharinfo( 3 ) != "prt_fild04" || killedrid != 1002) && (rand(100)>=10) ) end; getitem 7227, 1; end;How to make it 10% only?I forgot to put " " lols![]()
- script kjdhfksjf -1,{OnNPCKillEvent: if ( strcharinfo(3) == "prt_fild04" && killedrid == 1002 && rand(100) < 10 ) getitem TCG_Card, 1; end;}
We use essential cookies to make this site work, and optional cookies to enhance your experience.