Jump to content
  • 0

How can we make an item work only in a specific map?


Buda Beads

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   1
  • Joined:  08/16/14
  • Last Seen:  

example:

 

an item (ex. 501) will take effect only in prontera...

 

 

thanks master scripters again!!!

 

 

 

 

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

every item that gives you sth (heal, effect, bonus stat, etc) will have some scripts on the OnEquip (OnUse) section. for 501, it will be:

 


501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ itemheal rand(45,65),0; },{},{}

so, add this:

if (strcharinfo(3) == "prontera") { }

so it will be like this:

 


501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ if (strcharinfo(3) == "prontera") { itemheal rand(45,65),0; } },{},{}

 

notice the colors

Edited by Winz
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...