Screwy Primary/Secondary Command [Resolved]

Old bugs stored here for reference.
LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: Screwy Primary/Secondary Command

Post by LethalEncounter » Sun Dec 13, 2009 6:34 am

bolly wrote:WorldDatabase::LoadGroundSpawns(){

was missing

if(primary_command_list)
{
spawn->SetPrimaryCommands(primary_command_list);
spawn->primary_command_list_id = atoul(row[4]);
}

if(secondary_command_list)
{
spawn->SetSecondaryCommands(secondary_command_list);
spawn->secondary_command_list_id = atoul(row[5]);
}

also objects and maybe even widgets?

for the other spell range issue: i'm now working with target type 1 and a range of 35 (it was at 0 - which would work with target type 0 i guess!)
OK, yah you are right. The commands were correct because they were properly retrieved from World based on the number. Just the id number wasn't be set.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: Screwy Primary/Secondary Command

Post by LethalEncounter » Sun Dec 13, 2009 6:59 am

bolly wrote:Just to note, when setting the target type to 0, Chop certainly shows up as the bar comes on screen. Only when changing it to target_type 1 do you get the range issue you are talking about
Again, this is a problem with your spell data. A target type of 0 means it will use the caster as the target which works because the distance between the caster and the target will be 0. A range of 0 for any other target type (except aoe) will not work as you cannot get close enough to a spawn to make the range 0. The correct range for the harvest items is 5 I believe.

bolly
Retired
Posts: 389
Joined: Mon Sep 21, 2009 3:03 pm
Location: Leeds, UK

Re: Screwy Primary/Secondary Command

Post by bolly » Sun Dec 13, 2009 7:07 am

that's groovy, i guess since starting i had type 0 and it had worked but the correctly enforced type helped find my mistakes in db - you can see where i get confused with the issue being related to the /spawn details problem - no doubt there's more to come!

Locked

Who is online

Users browsing this forum: No registered users and 1 guest