Jump to content
  • 0

[Request]GM Login


Diconfrost VaNz

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

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.

Link to comment
Share on other sites

17 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  764
  • Reputation:   220
  • Joined:  11/14/11
  • Last Seen:  

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 by Kenpachi
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  95
  • Reputation:   26
  • Joined:  11/15/11
  • Last Seen:  

- 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 by xMiland
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

WTF?i thought this one is not this easy!so my code made in my mind was right!

btw, thanks miland xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

i'll try this two scripts :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

nothing of the two is working for me? xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  764
  • Reputation:   220
  • Joined:  11/14/11
  • Last Seen:  

Any error messages in the map server console?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  95
  • Reputation:   26
  • Joined:  11/15/11
  • Last Seen:  

nothing of the two is working for me? xD

Use tabs on the npc header.

-<tab>script<tab>gmloginannounce<tab>-1,{
Edited by xMiland
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

okay :)

testing the script that kenpachi made :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

how to disable the warp portal here?

@warp lhz_in03 26 161

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   4
  • Joined:  12/05/11
  • Last Seen:  

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 by Neblim
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   4
  • Joined:  12/05/11
  • Last Seen:  

The door inside is the second script line I posted.

lhz_in03,12,162,0    warp    #to_lhz        1,1,lighthalzen,321,322

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

no the white portal i mean xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   4
  • Joined:  12/05/11
  • Last Seen:  

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 by Neblim
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

oh yeah...my bad xD

how about @warp lhz_in03 18 99

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   4
  • Joined:  12/05/11
  • Last Seen:  

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 by Neblim
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

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

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