Jump to content
  • 0
Imbecile

Specific Item Drop?

Question

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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