Some of you may have already noticed that grids are not adding to the database correctly.
When you use the following command, #grid add xxx 3 0 for example, it adds wrong things to the DB. It should greate a grid number xxx, add 3 in the "type" row, 0 in the "type2" row and the zoneid in the "zoneid" row.
Instead of that, it puts the zoneid number in the "type" row and the other numbers that should be added in "type" & "type2" rows in wrong rows.
The waypoint are working, you just have to set manually the "zoneid" & the types of grids. After it is done, the #wp add xxx y z will work.
So if you could fix the #grid add command, it'd be really great.
Also, there are a few things I'd like to be added in the code (if its not hard btw).
First, I'd like to have a command that can be used in a perl quest to check the waypoint the NPC is currently walking on. I'd like to trigger an event at a designed WP. The "sub EVENT_WAYPOINT" trigger already exists, but it triggers at every weapon. I've tried something like this
Code:
sub EVENT_WAYPOINT
{
if($wp == 10)
{
quest::say("Hey, I'm at waypoint 10 !!");
}
elsif($wp == 15)
{
quest::say("Hey, I'm at waypoint 15 !!");
}
}
but it does not work. So if you could add a command like $wp to report the waypoint number the NPC is walking on it'd be really great.
Second, I'd like to know if you could code or tell me a way to make sitting NPCs.
Well, that's all for now, thanks a lot if you can do something
