#261 spawns table needs a water spawn and flying spawn type support

Closed
opened 3 years ago by image · 2 comments
image commented 3 years ago

Need a flag to allow these options to be set by spawn

Need a flag to allow these options to be set by spawn
image commented 3 years ago
Collaborator
alter table spawn_npcs add column water_type tinyint(1) unsigned not null default 0;
alter table spawn_npcs add column flying_type tinyint(1) unsigned not null default 0;
``` alter table spawn_npcs add column water_type tinyint(1) unsigned not null default 0; alter table spawn_npcs add column flying_type tinyint(1) unsigned not null default 0; ```
image commented 3 years ago
Collaborator

supplementing with using the code values until we have all the DB entries updated in spawn_npcs


    RULE_INIT(R_Spawn, UseHardCodeWaterModelType, "1"); // uses alternate method of setting water type by model type (hardcoded) versus relying on just DB
    RULE_INIT(R_Spawn, UseHardCodeFlyingModelType, "1"); // uses alternate method of setting flying type by model type (hardcoded) versus relying on just DB

if flying type / water type isn't set already, then we will check by model type by a hard coded set. Once we have DB in place these rules can be disabled (0)

supplementing with using the code values until we have all the DB entries updated in spawn_npcs ``` RULE_INIT(R_Spawn, UseHardCodeWaterModelType, "1"); // uses alternate method of setting water type by model type (hardcoded) versus relying on just DB RULE_INIT(R_Spawn, UseHardCodeFlyingModelType, "1"); // uses alternate method of setting flying type by model type (hardcoded) versus relying on just DB ``` if flying type / water type isn't set already, then we will check by model type by a hard coded set. Once we have DB in place these rules can be disabled (0)
image referenced this issue from a commit 3 years ago
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.