Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 05-10-2001, 07:18 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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?
  #2  
Old 05-10-2001, 07:22 AM
ReBBisH ReBBisH is offline
Atashi Obiru Daija
ReBBisH's Avatar
Join Date: Mar 2001
Location: USA
Posts: 1,107
ReBBisH is on a distinguished road
Send a message via ICQ to ReBBisH
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.
__________________
  #3  
Old 05-10-2001, 07:36 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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)
  #4  
Old 05-10-2001, 07:38 AM
ReBBisH ReBBisH is offline
Atashi Obiru Daija
ReBBisH's Avatar
Join Date: Mar 2001
Location: USA
Posts: 1,107
ReBBisH is on a distinguished road
Send a message via ICQ to ReBBisH
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.
__________________
  #5  
Old 05-10-2001, 08:09 AM
cell424 cell424 is offline
Registered User
Join Date: Mar 2001
Location: USA/PA
Posts: 184
cell424 is on a distinguished road
Send a message via AIM to cell424
Question...

Who can do this? The owner,co owner, guild admin and does the Script have to go into a NPC?
__________________
Trunks
  #6  
Old 05-10-2001, 08:13 AM
Psyker Psyker is offline
Tired Sloth
Join Date: Mar 2001
Posts: 6,217
Psyker will become famous soon enough
Send a message via AIM to Psyker Send a message via Yahoo to Psyker
Haha, Godspeed.

"Trunks", the NPC Admin can.
__________________
  #7  
Old 05-10-2001, 09:07 AM
Termina_GP4 Termina_GP4 is offline
Registered User
Join Date: May 2001
Posts: 297
Termina_GP4 is on a distinguished road
the guild stuff is good for stuff for things like resteraunts and stuff. like u can add staff to a store or something
__________________
click

or here

if you do i will give you a cookie
  #8  
Old 05-10-2001, 09:42 AM
Nai Nai is offline
Back!
Join Date: Mar 2001
Location: USA
Posts: 1,489
Nai is on a distinguished road
Send a message via AIM to Nai
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).
__________________
  #9  
Old 05-10-2001, 09:45 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool 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
__________________
Thanks,
-KJL
  #10  
Old 05-10-2001, 09:47 AM
Nai Nai is offline
Back!
Join Date: Mar 2001
Location: USA
Posts: 1,489
Nai is on a distinguished road
Send a message via AIM to Nai
You mean;

addguildmember West,Nai,Nai, Emporer of;


(P.S. That was an example ;-)
__________________
  #11  
Old 05-10-2001, 09:58 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool I beleve

that would probly glitch up...

you have 1 to many ,'s
__________________
Thanks,
-KJL
  #12  
Old 05-10-2001, 10:00 AM
Nai Nai is offline
Back!
Join Date: Mar 2001
Location: USA
Posts: 1,489
Nai is on a distinguished road
Send a message via AIM to Nai
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
__________________
  #13  
Old 05-10-2001, 11:25 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
  #14  
Old 05-10-2001, 11:27 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
  #15  
Old 05-10-2001, 08:59 PM
Nai Nai is offline
Back!
Join Date: Mar 2001
Location: USA
Posts: 1,489
Nai is on a distinguished road
Send a message via AIM to Nai
That's great Trunks! I
wonder if that works offline.
Well, I guess I will try it
out.
__________________
  #16  
Old 05-11-2001, 03:30 AM
cell424 cell424 is offline
Registered User
Join Date: Mar 2001
Location: USA/PA
Posts: 184
cell424 is on a distinguished road
Send a message via AIM to cell424
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]...

__________________
Trunks
  #17  
Old 05-11-2001, 09:50 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
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.
  #18  
Old 05-12-2001, 02:38 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
  #19  
Old 05-12-2001, 02:43 AM
Hawk Hawk is offline
??
Hawk's Avatar
Join Date: Mar 2001
Location: Canada B.C
Posts: 1,374
Hawk will become famous soon enough
Send a message via ICQ to Hawk Send a message via AIM to Hawk Send a message via Yahoo to Hawk
but, erm....
__________________
email--hawk at graal.net
AIM--Hawx0rz

waiting upon graal2001 //
  #20  
Old 05-16-2001, 11:06 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
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)
__________________
Eric Kraft
 


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 08:30 PM.


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