Jump to content
  • 0

How to add effects if player has item.


Meister

Question


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Example.

 

If player approaches a NPC and has this particular item. He/she will have a special effect. Visible by the character only..

 

How to do it? Thank you.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

use OnTouch

 

prontera,147,153,3	script	Mary	71,3,3,{
	end;

OnTouch:
	getitem 607,1;
	specialeffect 123,SELF;
	end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

use OnTouch

 

prontera,147,153,3	script	Mary	71,3,3,{
	end;

OnTouch:
	getitem 607,1;
	specialeffect 123,SELF;
	end;
}

I only have this quest.. why is that 71,3,3?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

I only have this quest.. why is that 71,3,3?

 

<npc sprite>,<x>,<y>

 

where x,y refer to the range that tigger the Label..

 

g7W3TVk.jpg

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Ty!

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...