MegaRPG Module: Admin Commands

By LucSatise on Jul 26, 2008

This is the Commands for Admins to Use: All Admin Commands here are done via PM

`FHeal -- Heals Nick `FEnter -- Forces Nick into Battle Arena if Registered and Logged In. `FLeave -- Forces Nick Out of Battle Arena `GiveXP -- Gives Nick Specified Amount of Experience `FLogout -- Forces Nick to Logout. `FLogin -- Forces Nick to login `Ban -- Logs Nick out and Bans them from Channel. (Will not be able to Ban Admins or Bot)

on +400:NICK:{
  ruser $nick
  auser 400 $newnick
}
on +500:NICK:{
  ruser $nick
  auser 500 $newnick
}
on 400:TEXT:*:?:{
  if ($1 == `FHeal) { heal $2 }
  if ($1 == `FEnter) {
    if ($readini(Players.ini,$2,LoggedIn) == Yes) {
      writeini Players.ini $2 Fighting Yes
      mode %MainChannel +h $2
      msg %MainChannel $Left 15 $+ $2 $+ 14(15 $+ $readini(Players.ini,$2,Character_Name) $+ 14) has entered the Battle Arena $Right
      if ($readini(Admins.ini,Admin,$2) == No) { set %BattleArena $addtok(%BattleArena,$2,32) }
      if ($readini(Admins.ini,Admin,$2) == Yes) { set %BattleArena $Addtok(%BattleArena,12 $+ $2 $+ 15,32) }
    }
  }
  if ($1 == `FLeave) {
    leaveArena $2
  }
  if ($1 == `GiveXP) {
    if (!$readini(Players.ini,$2,Registered)) { notice $nick $left $2 is not registered! $right | halt }
    writeini Players.ini $2 EXP $calc($readini(Players.ini,$2,EXP) + $3)
    notice $2 $Left You have Recieved $3 Experience as a Reward $right
    levelcheck $2
  }
  if ($1 == `FLogout) && ($2 ison %MainChannel) {
    if (!$readini(Players.ini,$2,Registered)) { notice $nick $left $2 is not registered! $right | halt }
    writeini Players.ini $2 LoggedIn No
    leaveArena $2
    mode %MainChannel -v $2
    msg %MainChannel $left $2 Has been Logged Out By Force. $right
  }
  if ($1 == `FLogin) && ($2 ison %MainChannel) {
    if (!$readini(Players.ini,$2,Registered)) { notice $nick $left $2 is not registered! $right | halt }
    writeini Players.ini $2 LoggedIn Yes
    mode %MainChannel +v $2
    msg %MainChannel $left $2 Has Logged in By Force $right
    writeFile $2
  }
  if ($1 == `Ban) {
    if ($ulevel($2) == 400) { halt }
    if ($2 == $me) { halt }
    if ($ulevel($2) == 500) { halt }
    if (!$readini(Players.ini,$2,Registered)) { notice $nick $left $2 is not registered! $right | halt }
    writeini Players.ini $2 LoggedIn No
    leaveArena $2
    mode %MainChannel -v $2
    msg %MainChannel $left $2 Has been Logged Out By Ban. $right
    ban -k %MainChannel $2 $Left Banned by Admin. $Right
  }
}
Sign in to comment.
rayrayray   -  Feb 27, 2011

Hmm dosent seam to work for me unless im doing somthing wrong, i uploaded it to my remotes. then i whent on my over nick thats admin, and oper and tryed it and nothing happend :S

 Respond  
Darkkeeper   -  Jul 29, 2008

bitch slaps rayth XD

 Respond  
LucSatise   -  Jul 27, 2008

yh theres a reason i change nick to logout so u cant flogin on me ;)

 Respond  
Darkkeeper   -  Jul 27, 2008

lol he has this game set up on the server im on, and i happen to be an admin of it o.o\"

 Respond  
ChunkieMonkey   -  Jul 27, 2008

XD Dark

 Respond  
Darkkeeper   -  Jul 26, 2008

orlly hatches evil plans

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.