setlook to the old look

leloush

New member
Messages
269
Points
0
Location
in front of my laptop =)
Emulator
hi just wondering if its possible to do on item script like this

> setlook 7,1; - DONE

> and save the cloth color, because when de equipped this item i just want to turn them back to original what they look before wearing this item..

the changelook or setlook was done.. but the revert to original no luck i think it needs a function  ? i dont know how to do this can someone make a sample..

thanks..

 
when equip

blahblah = getlook 7;

setlook 7,1;

when de equipped:

setlook 7, blahblah;

blahblah = 0;

look like this ^^

 
I remember I done something like this before, but has to careful about stacking

for example, this custume setlook into something else

and there is also a battleground script uses setlook to differentiate the team

( I think its this script -> http://rathena.org/board/topic/75477-custom-bg/?p=176806 )

so, the player can join in the battleground, wear this costume, after battleground finished, unequip the costume

now the player will be having the red/blue color costume which should be only available for the battleground

you have to find some way to make them unequip before joining the event

 
I remember I done something like this before, but has to careful about stacking

for example, this custume setlook into something else

and there is also a battleground script uses setlook to differentiate the team

( I think its this script -> http://rathena.org/board/topic/75477-custom-bg/?p=176806 )

so, the player can join in the battleground, wear this costume, after battleground finished, unequip the costume

now the player will be having the red/blue color costume which should be only available for the battleground

you have to find some way to make them unequip before joining the event
hi annie.. can u please this script if its okay to use in atleast 5items (script)

function script test {OnInit: if (isequipped(2236)){ @oldlook = getlook (7); @oldlok = getlook (6); setlook 7,113; setlook 6,1; end; }else{ setlook 7, @oldlook; setlook 6, @oldlok; end; } }
and here's the item script(just wondering if its ok to call the same function in deequip script)

{callfunc "test";},{},{callfunc "test";} 
i wonder if this script will work flawlesly without causing lagg to the server.. or any etc that will cause a problem to the server (idont have a bg that is using setlook)

thanks
 
Last edited by a moderator:
Back
Top