Jump to content
  • 0

OnUnequip Script


Noir

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  07/28/14
  • Last Seen:  

Hello guys. I'm new at scripting so I only understand the basics.
 

I was trying to make a custom item that gives you a merchant cart when equipped. (And it works)
What I want is that, when it is unequipped, then the cart will be removed too, but I can't seem to make it work.

{ sc_end MC_PUSHCART; setcart(0); }

Also, another thing...
I'm trying to make an item where it gives you bioethics,rest,call homun and resurrect homun.
The problem is that, I don't know what script to put. I want the character to autoskill Rest when the item is unequipped.

If anyone could help me, that would be great.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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

itemID,................, { }, { if( !checkcart() ) setcart; }, { setcart !checkcart(); }

checkcart + setcart

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  07/28/14
  • Last Seen:  

The cart still remains when I unequip the item. I did another one but this time it's a hunter's falcon, and it works. The falcon disappears whenever I remove the equipment.

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