mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-15 21:12:25 +00:00
QuestManager::CreateGroundObject converted to xyz_heading
This commit is contained in:
parent
c3471ed88e
commit
4c5117cabe
@ -2668,10 +2668,10 @@ XS(XS__CreateGroundObject)
|
|||||||
uint16 id = 0;
|
uint16 id = 0;
|
||||||
|
|
||||||
if(items == 5)
|
if(items == 5)
|
||||||
id = quest_manager.CreateGroundObject(itemid, x, y, z, heading);
|
id = quest_manager.CreateGroundObject(itemid, xyz_heading(x, y, z, heading));
|
||||||
else{
|
else{
|
||||||
uint32 decay_time = (uint32)SvIV(ST(5));
|
uint32 decay_time = (uint32)SvIV(ST(5));
|
||||||
id = quest_manager.CreateGroundObject(itemid, x, y, z, heading, decay_time);
|
id = quest_manager.CreateGroundObject(itemid, xyz_heading(x, y, z, heading), decay_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
XSRETURN_IV(id);
|
XSRETURN_IV(id);
|
||||||
|
|||||||
@ -685,11 +685,11 @@ int lua_get_level(int type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void lua_create_ground_object(uint32 item_id, float x, float y, float z, float h) {
|
void lua_create_ground_object(uint32 item_id, float x, float y, float z, float h) {
|
||||||
quest_manager.CreateGroundObject(item_id, x, y, z, h);
|
quest_manager.CreateGroundObject(item_id, xyz_heading(x, y, z, h));
|
||||||
}
|
}
|
||||||
|
|
||||||
void lua_create_ground_object(uint32 item_id, float x, float y, float z, float h, uint32 decay_time) {
|
void lua_create_ground_object(uint32 item_id, float x, float y, float z, float h, uint32 decay_time) {
|
||||||
quest_manager.CreateGroundObject(item_id, x, y, z, h, decay_time);
|
quest_manager.CreateGroundObject(item_id, xyz_heading(x, y, z, h), decay_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
void lua_create_ground_object_from_model(const char *model, float x, float y, float z, float h) {
|
void lua_create_ground_object_from_model(const char *model, float x, float y, float z, float h) {
|
||||||
|
|||||||
@ -2342,10 +2342,10 @@ int QuestManager::getlevel(uint8 type)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16 QuestManager::CreateGroundObject(uint32 itemid, float x, float y, float z, float heading, uint32 decay_time)
|
uint16 QuestManager::CreateGroundObject(uint32 itemid, const xyz_heading& position, uint32 decay_time)
|
||||||
{
|
{
|
||||||
uint16 entid = 0; //safety check
|
uint16 entid = 0; //safety check
|
||||||
entid = entity_list.CreateGroundObject(itemid, xyz_heading(x, y, z, heading), decay_time);
|
entid = entity_list.CreateGroundObject(itemid, position, decay_time);
|
||||||
return entid;
|
return entid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -207,7 +207,7 @@ public:
|
|||||||
void enabletitle(int titleset);
|
void enabletitle(int titleset);
|
||||||
bool checktitle(int titlecheck);
|
bool checktitle(int titlecheck);
|
||||||
void removetitle(int titlecheck);
|
void removetitle(int titlecheck);
|
||||||
uint16 CreateGroundObject(uint32 itemid, float x, float y, float z, float heading, uint32 decay_time = 300000);
|
uint16 CreateGroundObject(uint32 itemid, const xyz_heading& position, uint32 decay_time = 300000);
|
||||||
uint16 CreateGroundObjectFromModel(const char* model, float x, float y, float z, float heading, uint8 type = 0x00, uint32 decay_time = 0);
|
uint16 CreateGroundObjectFromModel(const char* model, float x, float y, float z, float heading, uint8 type = 0x00, uint32 decay_time = 0);
|
||||||
void ModifyNPCStat(const char *identifier, const char *newValue);
|
void ModifyNPCStat(const char *identifier, const char *newValue);
|
||||||
void UpdateSpawnTimer(uint32 id, uint32 newTime);
|
void UpdateSpawnTimer(uint32 id, uint32 newTime);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user