Thread: Guild Script
View Single Post
  #3  
Old 08-25-2007, 03:56 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
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));
  }
} 
Should work.
__________________
Stan.
Reply With Quote