IvanD Posted June 5, 2018 Group: Members Topic Count: 61 Topics Per Day: 0.02 Content Count: 110 Reputation: 0 Joined: 11/13/17 Last Seen: July 24, 2022 Share Posted June 5, 2018 is this possible? Script that change color of clothing (to clothing #300) when wearing apple of archer (clothing goes back when AOA unequipped) Quote Link to comment Share on other sites More sharing options...
0 TheDerpySupport Posted June 5, 2018 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 208 Reputation: 60 Joined: 09/23/17 Last Seen: July 28, 2021 Share Posted June 5, 2018 (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 June 5, 2018 by TheDerpySupport 1 Quote Link to comment Share on other sites More sharing options...
1 AnnieRuru Posted June 5, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted June 5, 2018 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; } Quote Link to comment Share on other sites More sharing options...
0 TheDerpySupport Posted June 5, 2018 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 208 Reputation: 60 Joined: 09/23/17 Last Seen: July 28, 2021 Share Posted June 5, 2018 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 Quote Link to comment Share on other sites More sharing options...
0 IvanD Posted June 5, 2018 Group: Members Topic Count: 61 Topics Per Day: 0.02 Content Count: 110 Reputation: 0 Joined: 11/13/17 Last Seen: July 24, 2022 Author Share Posted June 5, 2018 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? Quote Link to comment Share on other sites More sharing options...
0 IvanD Posted June 5, 2018 Group: Members Topic Count: 61 Topics Per Day: 0.02 Content Count: 110 Reputation: 0 Joined: 11/13/17 Last Seen: July 24, 2022 Author Share Posted June 5, 2018 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 Quote Link to comment Share on other sites More sharing options...
0 IvanD Posted June 6, 2018 Group: Members Topic Count: 61 Topics Per Day: 0.02 Content Count: 110 Reputation: 0 Joined: 11/13/17 Last Seen: July 24, 2022 Author Share Posted June 6, 2018 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 Quote Link to comment Share on other sites More sharing options...
0 Bolby91 Posted May 19, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 60 Reputation: 0 Joined: 07/03/13 Last Seen: February 12 Share Posted May 19, 2020 (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 May 19, 2020 by Jholz27 Quote Link to comment Share on other sites More sharing options...
0 Bolby91 Posted May 19, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 60 Reputation: 0 Joined: 07/03/13 Last Seen: February 12 Share Posted May 19, 2020 nvm already solve it just use getlook instead of setlook Quote Link to comment Share on other sites More sharing options...
Question
IvanD
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.