Dymerius
06-12-2006, 10:05 AM
Does anyone see anything wrong in the following quest code?
sub EVENT_SAY {
if ($text=~/hail/i) {
quest::say("Check");
}
if ($text=~/yes/i) {
quest::say("bindcheck on $name $userid");
quest::rebind(2,118.03,282.64,3.13);
quest::say("guildcheck");
quest::setguild(3,0);
}
}
Everything executes except for the setguild.
I've checked and double-checked. I have a guild with ID 3 and my guild_ranks db is in good order.
Any ideas?
sub EVENT_SAY {
if ($text=~/hail/i) {
quest::say("Check");
}
if ($text=~/yes/i) {
quest::say("bindcheck on $name $userid");
quest::rebind(2,118.03,282.64,3.13);
quest::say("guildcheck");
quest::setguild(3,0);
}
}
Everything executes except for the setguild.
I've checked and double-checked. I have a guild with ID 3 and my guild_ranks db is in good order.
Any ideas?