Jump to content
  • 0
Imbecile

Specific Item Drop?

Question

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

7 answers to this question

Recommended Posts

  • 0
OnNPCKillEvent:	if ( strcharinfo( 3 ) != "prt_fild04" || killedrid !=  1002 ) end;	getitem 7227, 1;	end;
Edited by Patskie

Share this post


Link to post
Share on other sites
  • 0

 

 

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)

Share this post


Link to post
Share on other sites
  • 0

 

OnNPCKillEvent:	if ( strcharinfo( 3 ) != prt_fild04 || killedrid !=  1002 ) end;	getitem 7227, 1;	end;

shouldnt prt_fild04 be inside quotes.

Share this post


Link to post
Share on other sites
  • 0

 

I forgot to put " " lols :D

 

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 by Dastgir Pojee

Share this post


Link to post
Share on other sites
  • 0

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;}

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.