Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-05-2008, 05:29 PM
Ngoc999 Ngoc999 is offline
Registered User
Ngoc999's Avatar
Join Date: Oct 2008
Posts: 20
Ngoc999 is an unknown quantity at this point
Exclamation Tag

How i can make tags like (Owner) (Co-Owner) That things?
Reply With Quote
  #2  
Old 11-05-2008, 05:44 PM
[email protected] gamerfreakie@hotmail.com is offline
Registered User
gamerfreakie@hotmail.com's Avatar
Join Date: Nov 2007
Location: Holland
Posts: 77
gamerfreakie@hotmail.com is an unknown quantity at this point
Send a message via AIM to gamerfreakie@hotmail.com Send a message via MSN to gamerfreakie@hotmail.com
What do you mean?
-Script
-Folder tags

Folder tags :
Put a document name guildguildname.txt in the folder with
accountname:nickname in it and for more ppl:

accountname:nicknameaccountname:nickname
(Ex:voltry:voltryngoc99:ngo)

And the script :
I dont known
Reply With Quote
  #3  
Old 11-05-2008, 06:23 PM
thatdwarf thatdwarf is offline
Former UN Dev Admin
Join Date: Nov 2005
Posts: 42
thatdwarf is on a distinguished road
As far as a script would go, addguildmember(guild, accnt, nick); is how you would add members to a guild. If the compiler does not find a file guildname.txt, with guildname being the name of the guild, it will automatically create a file.

Most used functions:

PHP Code:
addguildmember(guildaccntnick);
removeguildmember(guildaccntnick);
removeguild(guild); 
I do not have the documentation in front of me, so if anybody see's any errors with those functions, let me know :]

Just as a very basic example script:

PHP Code:
function onPlayerchats()
{
    if(
player.account == "Admin-Accnt")
    {
        
tokens player.chat.tokenize();
        switch(
tokens[0])
        {
            case 
":newguild" :
                
addguildmember(tokens[1], player.accountplayer.nick);
                break;
            case 
":remguild" :
                
removeguild(tokens[1]);
                break;
        }
    }

Hope this helps!

Last edited by thatdwarf; 11-05-2008 at 06:27 PM.. Reason: Code Edit
Reply With Quote
  #4  
Old 11-05-2008, 07:05 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
http://forums.graalonline.com/forums...ad.php?t=71885

__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #5  
Old 11-06-2008, 12:21 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by [email protected] View Post
Folder tags :
Put a document name guildguildname.txt in the folder
As an additional note, guilds with spaces have an underscore instead of a space (levels/guilds/guildCan't_Touch_This.txt)
__________________
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 05:29 PM.


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