This is a code that will let GMs have unlimited stamina, unlimited cyclone, unlimited superman, and invisibility all in just one command.
First in Character.cs, go to public void TimerElapsed(object source, ElapsedEventArgs e)
Under it add this code:
Code:
if (GM) { Stamina = 100; Stamina -= 0; MyClient.SendPacket(General.MyPackets.Vital(UID, 9, Stamina)); BlueNameGone(); Invisible = true; CycloneOn = true; XpCircle = 0; XPActivated = DateTime.Now; ExtraXP = 20000; SMOn = true; MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat())); }
Code:
if (Splitter[0] == "/gamemaster") { if (Splitter[1] == "on") { MyChar.GM = true; } else if (Splitter[1] == "off") { MyChar.GM = false; } }
#Edit
Go define GM as a bool.