Jump to content
  • 0
ToiletMaster

Unable to use this particular item

Question

Hi guys,

 

i've created a custom item, however, is it possible to not allow the user to open the Box unless he has completed one of the quest?

 

here's the item that i have so far.

 

 

{    Id: 20009    AegisName: "Shady_Gift_Box"    Name: "Mr.Shady's Gift Box"    Type: 0    Buy: 500    Sell: 50    Weight: 10    Script: <"            if(questprogress(81000) != 2){            dispbottom "You shall not pass";            end;            }            else {            getitem 20005,5;            }            ">},

 

 

it works on how i actually wish, the only problem is that the item goes missing instead, being able to reuse again.

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Try this:

 

{    Id: 20009    AegisName: "Shady_Gift_Box"    Name: "Mr.Shady's Gift Box"    Type: 0    Buy: 500    Sell: 50    Weight: 10    KeepAfterUse: true    Script: <"            if(questprogress(81000) != 2){            dispbottom "You shall not pass";            end;            }            else {            getitem 20005,5;            delitem 20009,1;            }            ">}, 

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.