Zaon Posted July 15, 2013 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
Xynvaroth Posted July 15, 2013 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
Zaon Posted July 15, 2013 Author 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
Xynvaroth Posted July 16, 2013 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
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.
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.