Jump to content

Question

Posted

I was just wondering if there's any existing script for an NPC that could warp you to a GM Room.

How I want it to work is,

GMs and Admins are allowed to go to the GM Room

As for the normal players, they're not, unless they have a ticket (request) to get in.

I don't know if that's possible ?

Thank you

10 answers to this question

Recommended Posts

Posted
prontera,150,180,4 script GM ROOM 100,{
set .@reqitem, 512;  //set required item for non-gm
set .@reqitemamt, 1;  //set required item amount for non-gm
set .@gmroom$, "prontera"; //set gm map
set .@gmx, 151;   //set gm coordinates x
set .@gmy, 180;   //set gm coordinates y

if(getgroupid() <= 1) {
if(countitem(.@reqitem) < .@reqitemamt) {
 mes "[GM ROOM]";
 mes "You don't have any "+.@reqitemamt+" "+getitemname(.@reqitem);
 close;
}
 delitem .@reqitem, .@reqitemamt;
 warp .@gmroom$,.@gmx,.@gmy;
 end;
}
warp .@gmroom$,.@gmx,.@gmy;
end;
}

Posted

zhakastia,91,59,4    script    GM Warper    899,{

//Settings
   set .@map$, "s_atelier"; // Change to wherever your gm post is
   set .@mapx, 13; // X coords
   set .@mapy, 119; // Y coords
   set .@gmitem, 6101; // Item required to enter
   set .@gmamt, 1; // Ammount required
   if (getgmlevel() < 20) && (countitem(.@gmitem) >= .@gmamt) { goto requested; end; }
   if (getgmlevel() < 20) { goto nongm; end; }
   else { goto gmwarp; end; }

OnInit:
   //waitingroom "GM Outpost",0; // Uncomment to enable a waiting room
   end;

gmwarp:
   mes "[^0000FFGM Warper^000000]";
   mes "Hello "+strcharinfo(0)+".";
   mes "Do you wish to go to the outpost?";
   menu "Take me there.",yes,"Maybe later.",no;

yes:
   warp .@map$,.@mapx,.@mapy;
   end;

no:
   next;
   mes "[^0000FFGM Warper^000000]";
   mes "Alright, take care.";
   close;
   end;

nongm:
   mes "[^0000FFGM Warper^000000]";
   mes "I'm sorry but I can't help you unless a GM requests your presence.";
   close;
   end;

requested:
   mes "[^0000FFGM Warper^000000]";
   mes "I see your presence has been requested.";
   next;
   mes "[^0000FFGM Warper^000000]";
   mes "You may go in now.";
   close2;
   warp .@map$,.@mapx,.@mapy;
   delitem .@gmitem,.@gmamt;
   mapannounce .@map$,strcharinfo(0)+" has entered the GM Outpost upon request.",0;
   end;

}

Or use this, you can enable a waiting room and every time a request is fulfilled it will announce to your GM map.

In this case, I'm using an Attendance Card(item 6101) cause it seemed the most appropriate. ^^

Posted

But see I want it to automatically detect and accept GMs in the GM room.

And when the players click on the NPC, it will tell them they're not a GM and they need a ticket to get in if they want.

zhakastia,91,59,4    script    GM Warper    899,{

//Settings
   set .@map$, "s_atelier"; // Change to wherever your gm post is
   set .@mapx, 13; // X coords
   set .@mapy, 119; // Y coords
   set .@gmitem, 6101; // Item required to enter
   set .@gmamt, 1; // Ammount required
   if (getgmlevel() < 20) && (countitem(.@gmitem) >= .@gmamt) { goto requested; end; }
   if (getgmlevel() < 20) { goto nongm; end; }
   else { goto gmwarp; end; }

OnInit:
   //waitingroom "GM Outpost",0; // Uncomment to enable a waiting room
   end;

gmwarp:
   warp .@map$,.@mapx,.@mapy;
   end;

nongm:
   mes "[^0000FFGM Warper^000000]";
   mes "I'm sorry but I can't help you unless you have an Attendance Card.";
   close;
   end;

requested:
   mes "[^0000FFGM Warper^000000]";
   mes "I see you have an Attendance card..";
   next;
   mes "[^0000FFGM Warper^000000]";
   mes "You may go in now.";
   menu "Go in.",goin,"Not now.",notnow;

goin:
   warp .@map$,.@mapx,.@mapy;
   delitem .@gmitem,.@gmamt;
   mapannounce .@map$,strcharinfo(0)+" has entered the GM Outpost upon request.",0;
   end;

notnow:
   next;
   mes "[^0000FFGM Warper^000000]";
   mes "See you next time!";
   close;
   end;

}

Like this?

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