Jump to content
  • 0

Equip with clothing script


IvanD

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

is this possible?

Script that change color of clothing (to clothing #300) when wearing apple of archer (clothing goes back when  AOA unequipped)

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   60
  • Joined:  09/23/17
  • Last Seen:  

20 minutes ago, IvanD said:

do you have a script for it sir? ?

i = getlook(LOOK_CLOTHES_COLOR); setlook LOOK_CLOTHES_COLOR,1;

setlook LOOK_CLOTHES_COLOR, i;

The top part you put in your OnEquip and the 2nd part is OnUnequip;

Edited by TheDerpySupport
  • Upvote 1
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

heck, don't use *setlook ... setlook will save to the character data ...

for example, like in this script, if you have use setlook here,
player can save the clothing color by logging out, and this will make the player permanently have that cloth color

-	script	ksdjhfksjf	-1,{
OnInit:
	// 1201 - knife ... 2301 - cotton shirt
	setitemscript 1201, "{ changelook LOOK_CLOTHES_COLOR, getlook(LOOK_CLOTHES_COLOR); }", 2;
	setitemscript 2301, "{ changelook LOOK_CLOTHES_COLOR, getlook(LOOK_CLOTHES_COLOR); }", 2;
	end;
}

db\re\item_combo_db.txt

1201:2301,{ changelook LOOK_CLOTHES_COLOR, 2; }

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   60
  • Joined:  09/23/17
  • Last Seen:  

42 minutes ago, IvanD said:

is this possible?

Script that change color of clothing (to clothing #300) when wearing apple of archer (clothing goes back when  AOA unequipped)

It is very doable however its a little messy because if you change your palette while the headgear is equipped you'd go back to the previous color you had

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

3 minutes ago, TheDerpySupport said:

It is very doable however its a little messy because if you change your palette while the headgear is equipped you'd go back to the previous color you had

do you have a script for it sir? ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

3 hours ago, TheDerpySupport said:

i = getlook(LOOK_CLOTHES_COLOR); setlook LOOK_CLOTHES_COLOR,1;

setlook LOOK_CLOTHES_COLOR, i;

The top part you put in your OnEquip and the 2nd part is OnUnequip;

thank you very very much! sir ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

7 hours ago, AnnieRuru said:

heck, don't use *setlook ... setlook will save to the character data ...

for example, like in this script, if you have use setlook here,
player can save the clothing color by logging out, and this will make the player permanently have that cloth color


-	script	ksdjhfksjf	-1,{
OnInit:
	// 1201 - knife ... 2301 - cotton shirt
	setitemscript 1201, "{ changelook LOOK_CLOTHES_COLOR, getlook(LOOK_CLOTHES_COLOR); }", 2;
	setitemscript 2301, "{ changelook LOOK_CLOTHES_COLOR, getlook(LOOK_CLOTHES_COLOR); }", 2;
	end;
}

db\re\item_combo_db.txt


1201:2301,{ changelook LOOK_CLOTHES_COLOR, 2; }

 

Thank you for the effort.. but I’m fine from what he gave..... but I have a new idea from what you gave thank you ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/03/13
  • Last Seen:  

On 6/5/2018 at 1:14 AM, TheDerpySupport said:

i = getlook(LOOK_CLOTHES_COLOR); setlook LOOK_CLOTHES_COLOR,1;

setlook LOOK_CLOTHES_COLOR, i;

The top part you put in your OnEquip and the 2nd part is OnUnequip;

hello thanks for the script i already tried it and it works, however I saw a problem when the item is equipped clicks the healer npc the color won't go back to normal when you unequipped it. Any help with this?  

Edited by Jholz27
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/03/13
  • Last Seen:  

nvm already solve it just use getlook instead of setlook

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