Jump to content
  • 0

Unequip some equipment when enter on certain map


Question

Posted

Hello rAthena, im new to the script and  need some help to fix this error

i'm using this script, i found this script on rAthena and they said would unequip the item whenever they re-equip it again.

and i saw this error on map server and keep spaming when player stay on map.

 

i want the script looks like this:

- Unequip when player enter the map and unequip when they trying to using the blocked equipment

 

 

Thank you rAthena.

Quote

-    script    cvc    -1,{

OnPCLoadMapEvent:
while( strcharinfo(3) == "guild_vs1" ){
        unequip EQI_GARMENT;
        unequip EQI_ARMOR;
        sleep2 2000;
        }
    end;
}

image.png.d521e19829c2e3720bb7484952d2496a.png

1 answer to this question

Recommended Posts

  • 1
Posted (edited)
-	script	cvc	-1,{

	OnPCLoadMapEvent:
		while (strcharinfo(3) == "guild_vs1") {
			if (getequipid(EQI_GARMENT) > 0)
				unequip EQI_GARMENT;
			if (getequipid(EQI_ARMOR) > 0)
				unequip EQI_ARMOR;
			sleep2 2000;
		}
		end;
	
}

guild_vs1	mapflag	loadevent

 

Edited by Patskie
  • Upvote 1

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...