Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-23-2006, 05:08 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
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]);
  }
}
__________________
Reply With Quote
  #2  
Old 11-23-2006, 05:35 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Rep ++
__________________
Reply With Quote
  #3  
Old 07-23-2012, 05:34 AM
Vlad1 Vlad1 is offline
Registered User
Join Date: Apr 2012
Posts: 30
Vlad1 can only hope to improve
Nice Andrew looks useful
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:50 PM.


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