Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Kicking script (https://forums.graalonline.com/forums/showthread.php?t=70330)

xAndrewx 11-23-2006 05:08 PM

Kicking script
 
Add the /* */ part's in to a level and name the class 'level_objectkick'. ^^

HTML Code:

/*
function onCreated()
{
  this.levelGuild = "Andrew's Guild";
  this.kickLevel = {"levelname.nw", kickingx, kickingy};
  this.join("level_objectkick");
}
*/
function onPlayerChats()
{
  if(player.guild != this.levelGuild)
  {
    return false;
  }
  if(player.chat.substring(0, 5) == ":kick")
  {
    temp.currentPlayer = findPlayer(player.chat.substring(5).trim());
    if (temp.currentPlayer == "")
    {
      return false;
    }
    if (temp.currentPlayer.level.name != player.level.name)
    {
      return false;
    }
    temp.currentPlayer.setlevel2(this.kickLevel[0], this.kickLevel[1], this.kickLevel[2]);
  }
}


Crono 11-23-2006 05:35 PM

Rep ++

Vlad1 07-23-2012 05:34 AM

Nice Andrew looks useful


All times are GMT +2. The time now is 01:23 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.