Jump to content
  • 0

Battlegrounds restriction


Question

Posted

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?

2 answers to this question

Recommended Posts

  • 0
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...