Diconfrost VaNz Posted December 6, 2011 Posted December 6, 2011 I dn't know if this is a scr or a just a script. Btw, this is the description. Whenever a GM logins ingame, it will warp him to a place(a place to be a GMs Private Room), and it will automatically give the GM the command of @speed 0 and will broadcast to the whole server that this GM is online. Quote
Kenpachi Posted December 6, 2011 Posted December 6, 2011 (edited) I'm at work and can't test it, but this should work the way you want: - script GMLogin -1,{OnPCLoginEvent:if(GetGMLevel() >= .GMLevel){ Warp("map", x, y); AtCommand("@speed 0"); Announce("GM" + StrCharInfo(0) + " has logged in.", bc_all, .AnnounceColor);}End();OnInit:Set(.GMLevel, 80);Set(.AnnounceColor, 0x0000FF);End();}[/codeBOX]Just edit the two variables in the OnInit and the map name and coords in [i]Warp()[/i].//EDIT: Not fast enough.... Edited December 6, 2011 by Kenpachi Quote
1 xMiland Posted December 6, 2011 Posted December 6, 2011 (edited) - script gmloginannounce -1,{ OnPcLoginEvent: if(getgmlevel() > 0) { announce "Gamemaster "+strcharinfo(0)+" has signed in.",bc_all,0x00FF66; // Edit this line for the warp coordinates // warp "prontera",50,50; ///////////////////////////////// atcommand "@speed 0"; end; } end; } Edited December 6, 2011 by xMiland Quote
Diconfrost VaNz Posted December 6, 2011 Author Posted December 6, 2011 WTF?i thought this one is not this easy!so my code made in my mind was right! btw, thanks miland xD Quote
Diconfrost VaNz Posted December 6, 2011 Author Posted December 6, 2011 i'll try this two scripts Quote
Diconfrost VaNz Posted December 6, 2011 Author Posted December 6, 2011 nothing of the two is working for me? xD Quote
Kenpachi Posted December 6, 2011 Posted December 6, 2011 Any error messages in the map server console? Quote
xMiland Posted December 6, 2011 Posted December 6, 2011 (edited) nothing of the two is working for me? xD Use tabs on the npc header. -<tab>script<tab>gmloginannounce<tab>-1,{ Edited December 6, 2011 by xMiland Quote
Diconfrost VaNz Posted December 6, 2011 Author Posted December 6, 2011 okay testing the script that kenpachi made Quote
Diconfrost VaNz Posted December 6, 2011 Author Posted December 6, 2011 how to disable the warp portal here? @warp lhz_in03 26 161 Quote
Neblim Posted December 6, 2011 Posted December 6, 2011 (edited) npc/quests/quests_lighthalzen.txt Find (The door outside) lighthalzen,324,322,0 script #li_door 45,2,2,{ OnTouch_: if ((lhz_curse > 19) && (lhz_curse < 23)) { mes "^3355FFThe door is locked.^000000"; set lhz_curse,lhz_curse+1; close; } else if (lhz_curse > 23) { mes "^3355FFThe door is locked.^000000"; next; mes "[Citizen]"; mes "I'm sorry, but another"; mes "epidemic is starting to"; mes "spread around the slums."; mes "We're not going outside and we're keeping our children safe!"; next; mes "[Citizen]"; mes "Not to be unfriendly,"; mes "but you should be careful"; mes "too. The living conditions"; mes "of this area aren't exactly"; mes "sanitary, you know?"; close; } else { warp "lhz_in03",15,162; } end; } and (the door inside house) lhz_in03,12,162,0 warp #to_lhz 1,1,lighthalzen,321,322 Comment them out. //lighthalzen,324,322,0 script #li_door 45,2,2,{ //OnTouch_: // if ((lhz_curse > 19) && (lhz_curse < 23)) { // mes "^3355FFThe door is locked.^000000"; // set lhz_curse,lhz_curse+1; // close; // } // else if (lhz_curse > 23) { // mes "^3355FFThe door is locked.^000000"; // next; // mes "[Citizen]"; // mes "I'm sorry, but another"; // mes "epidemic is starting to"; // mes "spread around the slums."; // mes "We're not going outside and we're keeping our children safe!"; // next; // mes "[Citizen]"; // mes "Not to be unfriendly,"; // mes "but you should be careful"; // mes "too. The living conditions"; // mes "of this area aren't exactly"; // mes "sanitary, you know?"; // close; // } // else { // warp "lhz_in03",15,162; // } // end; //} and //lhz_in03,12,162,0 warp #to_lhz 1,1,lighthalzen,321,322 However, do note these are a part of some quest which becomes impossible to complete if you wish to have them removed. Edited December 6, 2011 by Neblim Quote
Diconfrost VaNz Posted December 6, 2011 Author Posted December 6, 2011 no not the npcs...i mean the warp portal on that room xD or can you suggest a map that i can make as GMs Room Quote
Neblim Posted December 6, 2011 Posted December 6, 2011 The door inside is the second script line I posted. lhz_in03,12,162,0 warp #to_lhz 1,1,lighthalzen,321,322 Quote
Diconfrost VaNz Posted December 6, 2011 Author Posted December 6, 2011 no the white portal i mean xD Quote
Neblim Posted December 6, 2011 Posted December 6, 2011 (edited) I am confused now... If you mean the warp portal which takes you back to Lighthalzen in the south west part of that room, it is this line: lhz_in03,12,162,0 warp #to_lhz 1,1,lighthalzen,321,322 in npc/quests/quests_lighthalzen.txt Comment it out as instructed in my first post and the portal will not be there anymore... Edited December 6, 2011 by Neblim Quote
Diconfrost VaNz Posted December 6, 2011 Author Posted December 6, 2011 oh yeah...my bad xD how about @warp lhz_in03 18 99 Quote
Neblim Posted December 6, 2011 Posted December 6, 2011 (edited) npc/warps/cities/lighthalzen.txt lhz_in03,20,99,0 warp lhz_house2_2-2 1,1,lhz_in03,17,31 Tip: In case you have set yourself as a GM client side, right click the portal to get its name and find it with the help of ctrl + f. Edited December 6, 2011 by Neblim Quote
Diconfrost VaNz Posted December 6, 2011 Author Posted December 6, 2011 how about @warp lhz_in03 16 31 i can't find that one okay...i saw it now Thanks problem solved Thanks to everyone. This is the script i'm using now. derived from the script of kenpachi and the idea of miland with a help of Neblim for the warps. - script GMLogin -1,{OnPCLoginEvent: if(GetGMLevel() >= .GMLevel) { Warp("lhz_in03", 27, 99); AtCommand("@speed 0"); Announce("Warning: " + StrCharInfo(0) + " has logged in.", bc_all, .AnnounceColor); } End(); OnInit: Set(.GMLevel, 80); Set(.AnnounceColor, 0x00FF66); End(); } // -- Mapflags lhz_in03 mapflag nowarp lhz_in03 mapflag nowarpto lhz_in03 mapflag noteleport lhz_in03 mapflag nosave lhz_in03 mapflag nomemo lhz_in03 mapflag nobranch Quote
Question
Diconfrost VaNz
I dn't know if this is a scr or a just a script.
Btw, this is the description.
Whenever a GM logins ingame, it will warp him to a place(a place to be a GMs Private Room), and it will automatically give the GM the command of @speed 0 and will broadcast to the whole server that this GM is online.
17 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.