Jump to content
  • 0
megablox

Custom item not working correctly

Question

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

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

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.