Jump to content
  • 0

Item display message when not used on defined map


BFPkiller

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

Hello everyone.

I have a question for you.

Is it posible to make a item displaying a message when it's not used on it's pre-defined map ?
I use this item and it may only be used on a specific map only like the code below.

So what i mean is, it should display a message like "This item can only be used in DarkMall." , when people use it in prontera for example.

Thanks in advance !

{ if( strcharinfo(3) != "darkmall" ) buyingstore 2; },{},{}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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

{ if( strcharinfo(3) != "darkmall" ) { mes "Only usable at darkmall map."; close; } else { buyingstore 2; } },{},{}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

14 hours ago, Emistry said:

{ if( strcharinfo(3) != "darkmall" ) { mes "Only usable at darkmall map."; close; } else { buyingstore 2; } },{},{}

 

Thanks !! this works flawless , can it also be scripted it doesnt consume the item when used on other maps then darkmall ??

Thanks in advance !

Edited by BFPkiller
Link to comment
Share on other sites

  • 0

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

2 hours ago, BFPkiller said:

can it also be scripted it doesnt consume the item when used on other maps then darkmall ??

change to item type 11 or 18 if not mistaken, then use delitem to delete it upon used in darkmall.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

7 hours ago, Emistry said:

 then use delitem to delete it upon used in darkmall.

Thanks for your reply !

and how would i do that ?

 

EDIT

 

I got it 

{ if( strcharinfo(3) != "darkmall" ) { mes "This item can only be used in the Black Market."; close; } else { buyingstore 2; delitem 12548,1; } }

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