Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tag (https://forums.graalonline.com/forums/showthread.php?t=82663)

Ngoc999 11-05-2008 05:29 PM

Tag
 
How i can make tags like (Owner) (Co-Owner) That things?:cry:

[email protected] 11-05-2008 05:44 PM

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 :D

thatdwarf 11-05-2008 06:23 PM

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!

xXziroXx 11-05-2008 07:05 PM

http://forums.graalonline.com/forums...ad.php?t=71885

:)

cbk1994 11-06-2008 12:21 AM

Quote:

Originally Posted by [email protected] (Post 1439437)
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)


All times are GMT +2. The time now is 02:34 AM.

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