Jump to content
  • 0

Custom item not working correctly


megablox

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   8
  • Joined:  04/08/12
  • Last Seen:  

So, I made a custom item along with more custom items.

11049,Coin_Box,Refining Coin Box,0,1000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem rand(11039, 11048),rand(1, 100) }

It's basically a Coin Box which once used should give a random amount of coins (between IDs 11039 and 11048, both included) between 1 and 100, and then the box should remove itself.

It is actually being categorized as a "misc" item, so I can't use it.

The usage should be kind of like a Gift Box, how can I fix that?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

That's because the item type is 0.. you have to change it to 2

Also don't forgot the ,{},{} after your 1, 100) }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   8
  • Joined:  04/08/12
  • Last Seen:  

That's because the item type is 0.. you have to change it to 2

Also don't forgot the ,{},{} after your 1, 100) }

Thanks, I tried that and the item is now being recognised as an usable item. However, if I try using it, nothing happens.

This is what I have now:

11049,Coin_Box,Coin Box,2,1000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem rand(11039, 11048),rand(1, 100) },{},{}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   8
  • Joined:  04/08/12
  • Last Seen:  

Yay, it's working now! Thank you very much ^_^

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...