Jump to content
  • 0
IvanD

Equip with clothing script

Question

is this possible?

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

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0
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

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites
  • 0
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? 😄

Share this post


Link to post
Share on other sites
  • 0
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 🙂

Share this post


Link to post
Share on other sites
  • 0

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; }

 

Share this post


Link to post
Share on other sites
  • 0
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 😁

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)
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

Share this post


Link to post
Share on other sites
  • 0

nvm already solve it just use getlook instead of setlook

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.

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.