Jump to content
  • 0

Unequip some equipment when enter on certain map


eirwanda182

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  09/21/16
  • Last Seen:  

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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

-	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
Link to comment
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.   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.

×
×
  • Create New...