mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Dynamic Zones] Implement dz templates (#2345)
This allows shared tasks to create dz instances automatically through the `dz_template_id` field instead of using quest scripts. Quest apis were also added to create expeditions from template ids.
This commit is contained in:
@@ -1804,6 +1804,11 @@ Expedition* Perl_Client_CreateExpedition(Client* self, std::string zone_name, ui
|
||||
return self->CreateExpedition(zone_name, version, duration, expedition_name, min_players, max_players, disable_messages);
|
||||
}
|
||||
|
||||
Expedition* Perl_Client_CreateExpeditionFromTemplate(Client* self, uint32_t dz_template_id)
|
||||
{
|
||||
return self->CreateExpeditionFromTemplate(dz_template_id);
|
||||
}
|
||||
|
||||
void Perl_Client_CreateTaskDynamicZone(Client* self, int task_id, perl::reference table_ref)
|
||||
{
|
||||
perl::hash table = table_ref;
|
||||
@@ -2452,6 +2457,7 @@ void perl_register_client()
|
||||
package.add("CreateExpedition", (Expedition*(*)(Client*, perl::reference))&Perl_Client_CreateExpedition);
|
||||
package.add("CreateExpedition", (Expedition*(*)(Client*, std::string, uint32, uint32, std::string, uint32, uint32))&Perl_Client_CreateExpedition);
|
||||
package.add("CreateExpedition", (Expedition*(*)(Client*, std::string, uint32, uint32, std::string, uint32, uint32, bool))&Perl_Client_CreateExpedition);
|
||||
package.add("CreateExpeditionFromTemplate", &Perl_Client_CreateExpeditionFromTemplate);
|
||||
package.add("CreateTaskDynamicZone", &Perl_Client_CreateTaskDynamicZone);
|
||||
package.add("DecreaseByID", &Perl_Client_DecreaseByID);
|
||||
package.add("DeleteItemInInventory", (void(*)(Client*, int16))&Perl_Client_DeleteItemInInventory);
|
||||
|
||||
Reference in New Issue
Block a user