• 0

add slot in item without losing cards and enchantments


Good night people. I have a question:

How do I make a npc put a slot in an item? I know the structure is simple it swaps the version without a slot for a slot.

delitem 5022.1; // Helm_Of_Sun
getitem 5353.1; // Helm_Of_Sun_

The question is whether the item already has a letter or spell. How do I keep the state they were in.

for example:

delitem 1119; // Tsurugi [1] with a card and an enchantment
getitem 1120; // Tsurugi [2] with the same card and with the same spell

I know it's possible .. because at a Bro event this was done.

Thanks in advance for your support.

Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

you need to get the inventory list and check for the item that the player selected , than get all it information

delete the item than give the player new item using getitem2 or getitem3 if you use random options system

getinventorylist {<char_id>};

getitem2 and getitem3

Edited by sader1992
that > than

Share this post

Link to post
Share on other sites
  • 0

You need to use getitem2 and getitem3 to respawn an identical item, with the same cards/attributes, plus your extra slot.


pick item

check item info and save


spawn new item with info

add slot



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.

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.