Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-13-2007, 09:29 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Unhappy problem with addguildmember..

Hey, i want this to add to the guildguildname.txt,
so if i chat /AddGuild guildname accountname nickname it wound appear in the
guildguildname.txt
ex: /addguild LAT Deas_Voice Neo (then my account and nick appear in the guildLAT.txt as Deas_Voice:Neo)

PHP Code:
//#SERVERSIDE
function onActionServerSide() {
  if (
params[0] == "AddGuild") {
    
with (findplayer(params[0])) {
    
addguildmember( @params[1],params[0],player.nick);
 
//addguildmember(str guildname, str accountname, str nickname);
      
}
    }
  }

//#CLIENTSIDE
function onPlayerChats(){
 if (
player.chat.starts ("/AddGuild ")) {
triggerserver("gui",this.name,"AddGuild",player.account,player.chat.substring(10));
  }

get it?
and im also wondring whats the param for playernick so i used player.nick
please help me
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
 


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 06:14 AM.


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