Jump to content
  • 0

Equip with clothing script


Question

Posted

is this possible?

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

8 answers to this question

Recommended Posts

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

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

  • 0
Posted (edited)
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
  • 0
Posted
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 ?

  • 1
Posted

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

 

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

  • 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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...