Jump to content

Question

Posted

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

Posted (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 by Kenpachi
  • 1
Posted (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 by xMiland
Posted (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 by Neblim
Posted (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 by Neblim
Posted (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 by Neblim
Posted

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

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