Jump to content
  • 0

PvP Warper


MukkiesftKies

Question


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   7
  • Joined:  03/13/12
  • Last Seen:  

I have 3 map for pvp.

1. guild_vs3

2. pvp_y_1-2

3. arena

 

Map number 1 and 2 can use everyday.
But map number 3 only can use on saturday and sunday.

So I want pvp warper work like that.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

prontera,100,200,3	script	PvP Warper	78,{

mes .Npc_Name$;
mes "Hello! Which PvP area do you wanna go?";
switch(@menu = select(implode(.map$,":"))){
	next;
	mes .Npc_Name$;
	case 1:
	case 2:
		mes "Goodluck!";
		if(!@menu-1) {
			warp .map$[@menu-1],50,50;
		}
		else warp .map$[@menu-1],100,200;
		break;
	case 3:
		if(!gettime(4) || gettime(4) == 6) {
			warp .map$[@menu-1],100,100;
		}
		else mes "I only work on weekends.";
		break;
}
end;


OnInit:
	.Npc_Name$ = strcharinfo(1);
	setarray .map$[0],"guild_vs3","pvp_y_1-2","arena";
	end;

}

Try.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   7
  • Joined:  03/13/12
  • Last Seen:  

 parse_simpleexpr: unmatch ')'
     1 : {
     2 :
     3 : mes .Npc_Name$;
     4 : mes "Hello! Which PvP area do you wanna go?";
*    5 : switch(@menu '=' select(implode(.map$,":"))){
     6 :        next;
     7 :        mes .Npc_Name$;
     8 :        case 1:
     9 :        case 2:
    10 :                mes "Goodluck!";

I found error at line 5. I use eathena SVN r15266M.

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