Zaon Posted July 15, 2013 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 60 Reputation: 0 Joined: 07/30/12 Last Seen: April 19, 2018 Share Posted July 15, 2013 Hi, does anyone know how to do this? http://wiki.essence-ro.com/index.php?title=Headgear_Disguising I'd like to use this for my server if possible. Quote Link to comment Share on other sites More sharing options...
Xynvaroth Posted July 15, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 254 Reputation: 72 Joined: 07/10/13 Last Seen: October 9, 2017 Share Posted July 15, 2013 (edited) Are you looking for something like that: release-script.googlecode.com/svn/Premium disguise headgear.txt (sorry, the tag doesn't seem to properly show the link) ? If yes, then the part where the look is actually changed is this: OnPCLoginEvent: if (hastop) changelook 4,premiumtop; if (hasmid) changelook 5,premiummid; if (haslow) changelook 3,premiumlow; end; The NPC will let the player select the headgar they would like to see on his or her character and saves the headgear's view id into the premiumtop, premiummid or the premiumlow variable. In addition, the variable hastop, hasmid or haslow will contain 1 if a player has saved a disguise headgar and 0 if he or she hasn't (which I would not suggest, because you could just check whether premiumtop, premiumid or premiumlon is set or not without needing an other variable).Whenever a player logs in, it will then change the look of the player to the earlier saved view id. Edited July 15, 2013 by Xynvaroth Quote Link to comment Share on other sites More sharing options...
Zaon Posted July 15, 2013 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 60 Reputation: 0 Joined: 07/30/12 Last Seen: April 19, 2018 Author Share Posted July 15, 2013 (edited) When I change the headgear the disguise gets removed until I reconnect, is there anyway to make this permanent until I change it? Edited July 15, 2013 by djmmac07 Quote Link to comment Share on other sites More sharing options...
Xynvaroth Posted July 16, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 254 Reputation: 72 Joined: 07/10/13 Last Seen: October 9, 2017 Share Posted July 16, 2013 There is not a really good solution which I can think of. You could be running a NPC script with an infinite loop which would - each second - check and redisguise all those players who have set a headgear disguise, but this would consume much resources. I would suggest you to implement an usable item which players can use to (re)diguise. You can just copy the code below the OnPCLoginEvent label. Quote Link to comment Share on other sites More sharing options...
Zaon Posted July 16, 2013 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 60 Reputation: 0 Joined: 07/30/12 Last Seen: April 19, 2018 Author Share Posted July 16, 2013 I'll try that. Thanks Quote Link to comment Share on other sites More sharing options...
Question
Zaon
Hi, does anyone know how to do this? http://wiki.essence-ro.com/index.php?title=Headgear_Disguising
I'd like to use this for my server if possible.
Link to comment
Share on other sites
4 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.