Thread: Guild Script
View Single Post
  #7  
Old 08-25-2007, 07:13 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
Quote:
Originally Posted by zokemon View Post
Yet horribly insecure!
Come now Zero, he wasn't looking for an extremely complex way of doing several commands. He just wanted a simple way to change the player's guild via chat. o.o

Quote:
Originally Posted by xXziroXx View Post
Wrong. Missed a semi-colon.

PHP Code:
function onActionServerside(acct, gname) {
  
temp.pl = findplayer(acct);
  
temp.pl.guild = gname;
}
//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat.starts("/guild")) {
    
temp.tokens = player.chat.tokenize();
    
temp.blah = temp.tokens[0].length() + 1;
    
triggerserver("weapon", this.name, player.account, player.chat.substring(temp.blah));
  }
} 
Trifles.
__________________
Stan.
Reply With Quote