Jump to content
  • 0

jobrestrict not working


manabeast

Question


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

why this script not working? i want disable all Job accept 3rd job only can Enter this map

//*********************************************************************************************************************************************************************************
//***--Topic Link :  ***\( ^ ~ ^ )/***
//***http://www.eathena.ws/board/index.php?showtopic=264445
//***
//*********************************************************************************************************************************************************************************
//***-- Script by :  ***\( ^ ~ ^ )/***
//***-- Emistry
//***
//*********************************************************************************************************************************************************************************
//***-- Contact Info : ***\( ^ ~ ^ )/***
//***-- My Email : [email protected]
//***
//*********************************************************************************************************************************************************************************
//***-- Messages :  ***\( ^ ~ ^ )/***
//***-- Drop me a private message or email if you are looking for my helps ^^.
//***-- Beside that, I am looking for a Server to work with ^^ .
//***-- I will do my best to help you ^^.
//***-- More Details ? PM Me ^^.
//***
//*********************************************************************************************************************************************************************************
//***Although these scripts might not suit or follow with what you have requested completely. But i still wish you can give it a try before reject the works.
//***
//*********************************************************************************************************************************************************************************


- script jobrestrict -1,{
OnPCLoadMapEvent:
if(strcharinfo(3)!="dicastes01" || strcharinfo(3)!="dicastes02" ) end;
if(Class>=0 && Class<=4021 ){
mes "[ ^0000FF Castle Guardian's^000000  ]";
mes "Hello "+strcharinfo(0)+", ";
mes "You are now allow to enter this Map.";
next;
mes "[ ^0000FF Castle Guardian's^000000  ]";
mes "-----^FF0000 Castle Guardian's^000000-----";
mes "Below 3rd Classes Are Not Allow To Enter This map";
next;
announce strcharinfo(0)+" , GET OUT !!! You cant enter this map because your Low  Class!!!",bc_self;
dispbottom "You cant enter this map because your Grade Low";
warp "prontera",155,155;
end;
}
dispbottom "Welcome to Dicastes01. ";
end;
}

dicastes01 mapflag loadevent
dicastes02 mapflag loadevent

Edited by manabeast
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


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

change

if(strcharinfo(3)!="dicastes01" || strcharinfo(3)!="dicastes02" ) end;

into this

if(strcharinfo(3)!="dicastes01" && strcharinfo(3)!="dicastes02" ) end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

thanks.

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