Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-26-2011, 12:16 AM
Nogross Nogross is offline
Registered User
Nogross's Avatar
Join Date: Feb 2011
Location: Germany
Posts: 23
Nogross is an unknown quantity at this point
Send a message via ICQ to Nogross
Thank you fowl, I learned much in youre code. Ty again. I understand all except the part with actionkickplayer wouldnt it be easier to add just a if (...) at func playerchats?
Reply With Quote
  #2  
Old 09-26-2011, 01:27 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Nogross View Post
Thank you fowl, I learned much in youre code. Ty again. I understand all except the part with actionkickplayer wouldnt it be easier to add just a if (...) at func playerchats?
I guess you're referring to the Events Team guild check.

It should be on both (server and client) sides.

PHP Code:
// .. other code ..
function onActionKickPlayer() { 
  
// Make sure the 'kicker' is on the Events Team 
  
if (player.guild == "Events Team") {
    
// May help you understand what's happening better.
    
echo(player.account SPC "kicking" SPC params[0]);
    
// Kick
  
}
}

//#CLIENTSIDE

function onPlayerChats() {
  if (
player.guild == "Events Team") {
    if (
player.chat == "/kick") {
      
// .. other code ..
    
}
  }

__________________
Quote:
Reply With Quote
  #3  
Old 09-26-2011, 04:56 PM
Nogross Nogross is offline
Registered User
Nogross's Avatar
Join Date: Feb 2011
Location: Germany
Posts: 23
Nogross is an unknown quantity at this point
Send a message via ICQ to Nogross
Quote:
Originally Posted by fowlplay4 View Post
I guess you're referring to the Events Team guild check.

It should be on both (server and client) sides.

PHP Code:
// .. other code ..
function onActionKickPlayer() { 
  
// Make sure the 'kicker' is on the Events Team 
  
if (player.guild == "Events Team") {
    
// May help you understand what's happening better.
    
echo(player.account SPC "kicking" SPC params[0]);
    
// Kick
  
}
}

//#CLIENTSIDE

function onPlayerChats() {
  if (
player.guild == "Events Team") {
    if (
player.chat == "/kick") {
      
// .. other code ..
    
}
  }

Okay thanks I understand now all. Ty for youre help guys !
Reply With Quote
  #4  
Old 09-26-2011, 06:57 PM
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
Just to point out something obvious, you really should create an array of the players in mouse range first and do a single trigger with that array instead of a trigger for each player
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 01:12 PM.


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