Imbecile 0 Posted March 7, 2014 Okay here is my thought about this one. On prt_fild04, I want all Porings (on that map only) to drop a specific item (TCG Card). Anyone? Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted March 7, 2014 (edited) OnNPCKillEvent: if ( strcharinfo( 3 ) != "prt_fild04" || killedrid != 1002 ) end; getitem 7227, 1; end; Edited March 7, 2014 by Patskie Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 7, 2014 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) Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted March 7, 2014 OnNPCKillEvent: if ( strcharinfo( 3 ) != prt_fild04 || killedrid != 1002 ) end; getitem 7227, 1; end; shouldnt prt_fild04 be inside quotes. Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted March 7, 2014 I forgot to put " " lols Quote Share this post Link to post Share on other sites
0 Imbecile 0 Posted March 10, 2014 I forgot to put " " lols How to make it 10% only? Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted March 10, 2014 (edited) I forgot to put " " lols How to make it 10% only? OnNPCKillEvent: if ((strcharinfo( 3 ) != "prt_fild04" || killedrid != 1002) && (rand(100)>=10) ) end; getitem 7227, 1; end; This will make a 10% chance. Edited March 10, 2014 by Dastgir Pojee Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 11, 2014 I rather do a true statement here - script kjdhfksjf -1,{OnNPCKillEvent: if ( strcharinfo(3) == "prt_fild04" && killedrid == 1002 && rand(100) < 10 ) getitem TCG_Card, 1; end;} Quote Share this post Link to post Share on other sites
Okay here is my thought about this one.
On prt_fild04, I want all Porings (on that map only) to drop a specific item (TCG Card).
Anyone?
Share this post
Link to post
Share on other sites