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! |
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 ?
|
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. |
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.
|
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);} } |
Quote:
But in your code Quote:
Also, does the NPC execute this part of the code? Quote:
|
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
|
The Guys at Raid Addicts server has it working on a npc so im sure it can be done
|
Yes, it can and I just did it on my server and it works as advertised. Maybe it's the way you have it laid out....
Code:
sub EVENT_SAY { |
K ill try that lay out . i just been reseting the server after i do quest i use a quest editor so ill copy your quest and paste it BRB
|
ok, but no need to reset the server, just type in the #reloadpl with a character with GM Status (might not need be that high). saves you a lot of time.
|
humm still not working on thing i did was add #LightLord.pl then skiped a line and add your quest like i have done most quest but its the same he will respond to hail but not join
|
Quote:
Are there any members in the guild now? Can the Guild Leader invite someone in the normal way? You aren't already in the guild by any chance are you? |
i was looking at most quests on other npc's in tutorialb and this is what i see thay dont have #LightLord .pl or any npc name most have #zone: Tutrialb and that is all the queen does have her name on it but some where in this part could be the issue maybe im no quest wrighter so I'm not sure
|
guild leader can invite normal
I'm not in a guild Only guild leader is in guild right now |
All times are GMT -4. The time now is 07:26 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.