Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Guild tags (https://forums.graalonline.com/forums/showthread.php?t=2513)

Admins 05-10-2001 07:18 AM

New script functions:

NPC Code:

addguildmember guild,accountname,nickname;

removeguildmember guild,accountname;

removeguild guild;



I think the command names explain for
what they can be used :-) These commands
change the local server guild tags, not
the global ones. May be there should
also be something for listing guild members?

ReBBisH 05-10-2001 07:22 AM

Perhaps when scripting an NPC, for say a "Guild House" there could be a

showguildmembers, Guild Name

command to have a "Listing or Directory" of the Current Members.

Admins 05-10-2001 07:36 AM

In a sign? Should it display the account name
or nickname or both?
May be one sign page per guild tag entry
(probably as sign message code to be inserted
in a sign)

ReBBisH 05-10-2001 07:38 AM

Maybe something like this.

It shows the Nick Name and what I think would be really neat, perhaps the 2nd frame of the head that person is using so it would show what he/she looks like and has their nickname. All automated through the NPC Server/Game Coding of course.

cell424 05-10-2001 08:09 AM

Question...
 
Who can do this? The owner,co owner, guild admin and does the Script have to go into a NPC?

Psyker 05-10-2001 08:13 AM

Haha, Godspeed.

"Trunks", the NPC Admin can.

Termina_GP4 05-10-2001 09:07 AM

the guild stuff is good for stuff for things like resteraunts and stuff. like u can add staff to a store or something

Nai 05-10-2001 09:42 AM

Wow! Thank you for making
this script Stefan! This script
will work perfect for my server
because the server is RPing
and nothing else. There are 2
Kingdoms, East and West. I
can use that script for adding
people automaticly to either
the (West) tag or (East).

KJS 05-10-2001 09:45 AM

this will work good for me
 
it will be cool for me so I dont have to log
onto ftp to make staff tags.

so I can make a weapon or something (or a npc in a house)

and be like

addpolice <accountname> <nickname>
rmvpolice <accountname> <nickname>

it was a good idea to make that becuase I know it is a pain to just go on ftp to add 1 more guild member to a guild

Nai 05-10-2001 09:47 AM

You mean;

addguildmember West,Nai,Nai, Emporer of;


(P.S. That was an example ;-)

KJS 05-10-2001 09:58 AM

I beleve
 
that would probly glitch up...

you have 1 to many ,'s

Nai 05-10-2001 10:00 AM

It would still work because
the code is mean't for only
the guildcode,account,nick
so any other commas would
not glitch it up and would
make it in the tag

Admins 05-10-2001 11:25 AM

yes right like with setani or setstring where it
accepts commas in the last argument

godspeed: it creates the guild file when
it doesn't exist

Admins 05-10-2001 11:27 AM

Forgot to mention: when you have
a guild with a space in the name then it
needs to be replaced with _,
like
addguildmember Pirate_Crew,Captain Stefan;
May be i will fix this

Nai 05-10-2001 08:59 PM

That's great Trunks! I
wonder if that works offline.
Well, I guess I will try it
out.

cell424 05-11-2001 03:30 AM

Sorry about that....
 
I just dont want people to think of me as some Newbie Staff that can script or anything.....And yes the script works offline, but it only lays Green Rupees....It is bugged I am fixing it...If you could help me out with it plz email me at [email protected]...


kyle0654 05-11-2001 09:50 PM

How about:

getmembers guildname, string;

it would read all members of guild guildname into the string, string, with a space inbetween each name. Then you can just tokenize the string and do with it what you want.

Perhaps a command to add text on the end of a sign would be useful with that though, so if you wanted to display all members in a guild, you could do:

setstring guild, guildname;
tokenize string;

say2 Guild members in #s(guild);#b
for (i = 0; i < tokenscount; i++) {
AddtoSign #s(#t(i))#b;
}

it would then send the sign at the end of the script to the player. You could also use this for items a store sells and other things. It'd basically be building a sign within the script.

Admins 05-12-2001 02:38 AM

Hmmm you could use a this. string
for building the list, but its not
possible to put #b into a string because
it would be removed when assigning it

so everything would be displayed in one line
hmmm

Hawk 05-12-2001 02:43 AM

but, erm....

Er1c 05-16-2001 11:06 AM

Not only would it all be on one line, but if the guild had many members, they would not all show because of the max string length. Just make the NPC keep track of the guild members as you add them... It's not that hard. (Not giving any more code because it winds up everywhere)


All times are GMT +2. The time now is 05:56 AM.

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