Jump to content
  • 0

I would like to ask a script about Auto Kick in the Woe With Restricted items


abdol

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.02
  • Content Count:  43
  • Reputation:   0
  • Joined:  04/06/22
  • Last Seen:  

When i put item in item_noequipt. the Job Suits the stats are just gone but they are still in the job suits. i would like to request that everytime they enter the castle with the restricted item they will warp back to town and having a pop up to unequip first before entering the castle 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

-	script	sample	-1,{
	OnInit:
		setarray .map$, 
			"prtg_cas01", "prtg_cas02", "prtg_cas03", "prtg_cas04", "prtg_cas05", 
			"payg_cas01", "payg_cas02", "payg_cas03", "payg_cas04", "payg_cas05", 
			"gefg_cas01", "gefg_cas02", "gefg_cas03", "gefg_cas04", "gefg_cas05", 
			"aldeg_cas01", "aldeg_cas02", "aldeg_cas03", "aldeg_cas04", "aldeg_cas05", 
			"arug_cas01", "arug_cas02", "arug_cas03", "arug_cas04", "arug_cas05", 
			"schg_cas01", "schg_cas02", "schg_cas03", "schg_cas04", "schg_cas05";
		
		.@size = getarraysize(.map$);
		for (.@i = 0; .@i < .@size; .@i++)
			setmapflag .map$[.@i], mf_loadevent;
		end;
		
	OnPCLoadMapEvent:
		if (inarray(.map$, strcharinfo(3)) != -1) {
			if (isequippedcnt(5001, 5002, 5003) >= 1) {
				mes "You have equipped with restricted items. Please remove them.";
				close2;
				warp "SavePoint", 0, 0;
			}
		}
		end;
}

try

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.02
  • Content Count:  43
  • Reputation:   0
  • Joined:  04/06/22
  • Last Seen:  

It is Working! Thanks! Btw sir Emistry do you have an item script or npc like when you equip an item your dex is fixed 130. for champ vs champ 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

11 hours ago, abdol said:

It is Working! Thanks! Btw sir Emistry do you have an item script or npc like when you equip an item your dex is fixed 130. for champ vs champ 

create another topic for your other request.

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