Scarlet Butterfly Posted May 5, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 62 Reputation: 0 Joined: 04/30/12 Last Seen: March 21, 2015 Share Posted May 5, 2012 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 Quote Link to comment Share on other sites More sharing options...
F0xxy Posted May 5, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 224 Reputation: 22 Joined: 03/23/12 Last Seen: April 21, 2020 Share Posted May 5, 2012 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? Quote Link to comment Share on other sites More sharing options...
deathscythe13 Posted May 5, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 118 Reputation: 7 Joined: 01/25/12 Last Seen: February 11, 2023 Share Posted May 5, 2012 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; } Quote Link to comment Share on other sites More sharing options...
F0xxy Posted May 5, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 224 Reputation: 22 Joined: 03/23/12 Last Seen: April 21, 2020 Share Posted May 5, 2012 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. ^^ Quote Link to comment Share on other sites More sharing options...
Scarlet Butterfly Posted May 5, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 62 Reputation: 0 Joined: 04/30/12 Last Seen: March 21, 2015 Author Share Posted May 5, 2012 I get this error.... Quote Link to comment Share on other sites More sharing options...
deathscythe13 Posted May 5, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 118 Reputation: 7 Joined: 01/25/12 Last Seen: February 11, 2023 Share Posted May 5, 2012 (edited) change to if (!getgmlevel()) Edited May 5, 2012 by deathscythe13 Quote Link to comment Share on other sites More sharing options...
Scarlet Butterfly Posted May 5, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 62 Reputation: 0 Joined: 04/30/12 Last Seen: March 21, 2015 Author Share Posted May 5, 2012 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. Quote Link to comment Share on other sites More sharing options...
deathscythe13 Posted May 5, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 118 Reputation: 7 Joined: 01/25/12 Last Seen: February 11, 2023 Share Posted May 5, 2012 Oops sorry my bad it should have been if(!getgmlevel()) Quote Link to comment Share on other sites More sharing options...
deathscythe13 Posted May 5, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 118 Reputation: 7 Joined: 01/25/12 Last Seen: February 11, 2023 Share Posted May 5, 2012 try foxxy's its way better Quote Link to comment Share on other sites More sharing options...
Scarlet Butterfly Posted May 5, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 62 Reputation: 0 Joined: 04/30/12 Last Seen: March 21, 2015 Author Share Posted May 5, 2012 Thank you! Quote Link to comment Share on other sites More sharing options...
F0xxy Posted May 5, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 224 Reputation: 22 Joined: 03/23/12 Last Seen: April 21, 2020 Share Posted May 5, 2012 Glad I've been of help Quote Link to comment Share on other sites More sharing options...
Question
Scarlet Butterfly
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
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.