Jump to content
  • 0
Sign in to follow this  
leloush

setlook to the old look

Question

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..

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

when equip

blahblah = getlook 7;

setlook 7,1;

 

when de equipped:

setlook 7, blahblah;

blahblah = 0;

 

look like this ^^

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

 

Edited by leloush

Share this post


Link to post
Share on other sites

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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.