Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-07-2008, 08:44 PM
Ven-elexver1
Sarnak
 
Join Date: Dec 2007
Posts: 60
Default setguild::HELP

sill not got setguild working i know they are a way yo make a npc auto join you to a guild i have sen it done . but as how they did it I'm not sure all i can find is this fix but i don't know how or where to run it ...............................

XS(XS__setguild);
XS(XS__setguild)
{
dXSARGS;
if (items != 2)
Perl_croak(aTHX_ "Usage: setguild(new_guild_id, new_rank)");

unsigned long new_guild_id = (unsigned long)SvUV(ST(0));
int new_rank = (int)SvIV(ST(1));

quest_manager.setguild(new_guild_id, new_rank);

XSRETURN_EMPTY;
}

Its all Greek to me!
Reply With Quote
  #2  
Old 04-08-2008, 05:29 PM
Ven-elexver1
Sarnak
 
Join Date: Dec 2007
Posts: 60
Default

hum. i have still had no luck finding out what to do with this code .or getting my npc to auto add players to guild 1. Once you say join I can show my quest if that helps ?
Reply With Quote
  #3  
Old 04-08-2008, 05:48 PM
Striat
Sarnak
 
Join Date: Aug 2006
Posts: 60
Default

Okay, should be in the quest section.

You'll need to make sure your guild table has the guild in it you're trying to join. Also, need to make sure guild_ranks set for the guild.

So, for example, you could use

quest::setguild(1,2);

The 1 corresponds to the guildid and 2 refers to rank for that guild.
Reply With Quote
  #4  
Old 04-08-2008, 06:36 PM
Ven-elexver1
Sarnak
 
Join Date: Dec 2007
Posts: 60
Default

yea is in wrong place your right . but yea my guild is made and set as ID 1 rank is 0 and rank is set member 0 but its still not working i have looked all over forums i have found about 4 post but none have a fix. i know it works because a server on here has it running but not sure how they did it.
Reply With Quote
  #5  
Old 04-08-2008, 06:49 PM
Ven-elexver1
Sarnak
 
Join Date: Dec 2007
Posts: 60
Default

heres my quest
#npcsname.pl

sub EVENT_SAY {

if ($text =~/Hail/i){
quest::say ("Greetings, $name.The Followers of Light is a Light Race Only Guild You must pick a guild based on your race before you exit Tutorial Light Races are humman Barbarian Erudite High Elf Wood Elf Half Elf Dwarf Halfling Gnome froglok Vah Shir Are you ready to [join] ?"); }

if ($text =~ /join/i) {quest::setguild(3,0);}
}
Reply With Quote
  #6  
Old 04-08-2008, 07:24 PM
Aramid
Discordant
 
Join Date: May 2006
Posts: 356
Default

Quote:
Originally Posted by Ven-elexver1
yea is in wrong place your right . but yea my guild is made and set as ID 1 rank is 0 and rank is set member 0 but its still not working i have looked all over forums i have found about 4 post but none have a fix. i know it works because a server on here has it running but not sure how they did it.
A stupid question I'm sure, but in this post you say your Guild ID is 1.

But in your code
Quote:
Originally Posted by Ven-elexver1
if ($text =~ /join/i) {quest::setguild(3,0);}
Your trying to assign ID of 3. Which is it?

Also, does the NPC execute this part of the code?

Quote:
Originally Posted by Ven-elexver1
if ($text =~/Hail/i){
quest::say ("Greetings, $name.The Followers of Light is a Light Race Only Guild You must pick a guild based on your race before you exit Tutorial Light Races are humman Barbarian Erudite High Elf Wood Elf Half Elf Dwarf Halfling Gnome froglok Vah Shir Are you ready to [join] ?"); }
__________________
Random Segments of Code....
Reply With Quote
  #7  
Old 04-08-2008, 07:53 PM
Ven-elexver1
Sarnak
 
Join Date: Dec 2007
Posts: 60
Default

sorry friend i have 2 npc's for two guilds Followers of light is ID 3 and the DarkBrotherhood is guild ID 1 . Both are set to rank 0 members .My Npc's will do the hail = part of the quest and you can type join but at that point i get nothing i have tried 2 diff Char and a player logged in and tried but the quest will not add you to the Guild i also checked Guild member list in Navicat its not adding any one
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 -4. The time now is 12:33 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3