Jump to content
  • 0

Battlegrounds restriction


ragnazorg

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  250
  • Reputation:   44
  • Joined:  11/13/11
  • Last Seen:  

Hi I'm using this for my woe restriction for third jobs and trans

-    script    resrtiction    -1,{

OnPCLoadMapEvent:

if (!agitcheck()) { end; }

getmapxy .@map$,.@x,.@y,0;

setarray .@castlemaps$[0],"arug_cas04","schg_cas02","schg_cas03";

I wonder since !agitcheck checks the running woe what about Battlegrounds?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  250
  • Reputation:   44
  • Joined:  11/13/11
  • Last Seen:  

nvm. Close the topic please.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  186
  • Reputation:   51
  • Joined:  11/14/11
  • Last Seen:  

nvm. Close the topic please.

Maybe someone else is interested in this too?

If you solved your problem, you should also say how.

Basicly, there are 2 simple ways.

#1 check for users on the battleground map, i.e.

getmapusers("bat_b02"); // Flavius
getmapusers("bat_a01"); // Tierra

#2 after joining the battleground you receive a quest. Each Battleground has its own quest.

So just check the quest i.e.

set(.@questTime, checkQuest(2070, PLAYTIME));
// Value of .@questTime (taken from script_commands.txt)

-1 = Quest not started (not in quest log)
0  = the time limit has not yet been reached
1  = the time limit has not been reached but the quest is marked as complete
2  = the time limit has been reached

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