Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-23-2006, 05:46 PM
michael7849 michael7849 is offline
Playerworld21 Manager
Join Date: Aug 2006
Posts: 81
michael7849 is an unknown quantity at this point
Specific guild kicker

well i had twinny script this so all credit goew sto him

PHP Code:
function onActionServerside(cmdplrplrk)
{
  
pl findplayer(plr);
  if (
cmd == "kickplr")
  {
    if (
pl.level != NULL)
    {
      
pl.chat format("You've been kicked from (Guild) by %s",plrk);

      
pl.setlevel2("sand_a1.nw",10.6,14);
      
triggeraction(player.x,player.y,"clientside",name,plr,1);
    }else{
      
triggeraction(player.x,player.y,"clientside",name,plr,0);
    }
  }
}
//#CLIENTSIDE
function onPlayerChats()
{
  
tok player.chat.tokenize();
  if (
tok.starts("/kick"))
  {
     if (
tok[1] != NULL && player.level.starts("(level)"))
     {
       
//temp.kplayers.loadvars("Kick_Log-1.txt");
       
plrname tok[1];
       
player.chat format("Attempting to kick %s",plrname);
       
triggeraction(0,0,"serverside",name,"kickplr",plrname,player.account);
       
//sleep(.30);
       //player.chat = format("Kicked... %s",plrname);
       //temp.kplayers.savevars("Kick_Log-1.txt", 0);
       //return false;
     
}
  }
}

function 
onActionClientside(plrnamerpl)
{
  if (
rpl != NULL)
  {
    
sleep(.30);
    
player.chat format("You have successfully kicked %s from the restruant.",plrname);
  }else{
    
sleep(.30);
    
player.chat format("Failed to kick %s because (s)he is not online.",plrname);
  }

__________________
Graal Account: michael7849
Graal Nick: element
AIM: Garbagemonkey32
MSN: [email protected]
Email: [email protected]
Server: Playerworld21

PRIVATE MESSAGE ME HERE

Buddy me

My profile

Last edited by Darlene159 : Today at 12:30AM. Reason: Added more spam to your post.

Stefan you need to read your pms more...

G OTO MY myspace.com/mikeandu

YES I AM EMO/GOTH

Last edited by Skyld; 11-25-2006 at 02:01 AM.. Reason: Use PHP tags! >:O
Reply With Quote
  #2  
Old 11-24-2006, 10:41 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Format the script x.x
Reply With Quote
  #3  
Old 11-25-2006, 05:13 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Changed a bit since i've last seen it =o
Reply With Quote
  #4  
Old 11-25-2006, 05:27 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
player.chat = format("You have successfully kicked %s from the restruant.",plrname);



Talk about typo
Reply With Quote
  #5  
Old 11-25-2006, 05:41 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
I must have made the base for it.. i don't use format() and i don't remember using setTimer(0.30) =/

Also you use pl, plr and rpl...whats the go with that?
Reply With Quote
  #6  
Old 11-25-2006, 12:48 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
Quote:
well i had twinny script this so all credit goew sto him
did you even ask him before posting it to begin with?
__________________
Reply With Quote
  #7  
Old 11-25-2006, 02:59 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Gerami View Post
did you even ask him before posting it to begin with?
I think they just edited the originally script, like adding those setTimer's
too make it look like it is loading etc..
__________________
Reply With Quote
Reply


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 09:24 AM.


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