Page 2 of 2
Re: Screwy Primary/Secondary Command
Posted: Sun Dec 13, 2009 6:34 am
by LethalEncounter
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.
Re: Screwy Primary/Secondary Command
Posted: Sun Dec 13, 2009 6:59 am
by LethalEncounter
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.
Re: Screwy Primary/Secondary Command
Posted: Sun Dec 13, 2009 7:07 am
by bolly
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!