Jump to content
  • 0

PVP warper w/ Restriction


karazu

Question


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

I wato to request a PVP warper NPC that has some restrction on some class

like the:

PVP MAP 1 all class can enter

PVP MAP 2 only the Trans Class can Enter

PVP MAP 3 only the 3rd Class can Enter

can somebody make me 1?

anyone?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

Try this:

http://upaste.me/386c160ed622f78

Loaded in mapserver and had no errors

You still need to add the map names though..

Edited by Nameless2you
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

thank man! iwill test it!

I tested it but it doesn't block any class like all the job can enter in all the 3 rooms..

present script

prontera,150,150,5 script PvP-Warper 99,{
set .@room1$,"guild_vs3"; //Insert map name into quotation marks & adjust to your desire
set .@room2$,"pvp_n_6-3"; //Insert map name into quotation marks & adjust to your desire
set .@room3$,"pvp_n_7-3"; //Insert map name into quotation marks & adjust to your desire
set .@name$,"[PvP Warper]"; //NPC Dialogue name
mes .@name$;
mes "Hello, I'm the PvP Warper I can warp you to one of the 3 PvP maps available.";
mes "Please select one of the warps for me to continue.";
switch(select("All Class:Trans Class:3rd Class")){
case 1:
warp .@room1$,0,0;
end;
case 2:
if(Class >= 4000 || Class <= 4022){ //Allows any Trans Class, High Novice - Paladin
warp .@room2$,0,0;
end;
}
close;
case 3:
if(Class >= 4054 || Class <= 4087){ //Allows Rune Knight to Mechanic, no matter if they rebirthed before or not
warp .@room3$,0,0;
end;
}
close;
}
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

Try replacing the || with &&

modified the above url's paste as well to fit the fix

Edited by Nameless2you
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

its working now thank you!

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