Jump to content
  • 0

Request NPC headgear position change


enteike

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  06/15/12
  • Last Seen:  

Hi everyone.

 

I need an npc who trade the same item for another of diferent slot; example i have red wings (mid) so if i go to this npc in exchange of one TCG he will turn that wings to low and viceversa.

 

Thanks in advance.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  89
  • Reputation:   7
  • Joined:  02/27/12
  • Last Seen:  

To do that, you need to add another custom wing (with the same sprite) that is set to low headgear.

 

On your npc, you can add something like these:

if (countitem(W) == 1 && countitem(X) == Y) {
delitem w, 1;
delitem x, y;
getitem z, 1;
end;
}

W being your mid custom wing id

X being your tcg id

Y quantity of tcq needed

Z being your low custom wing id

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