mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Quest API] Cleanup Signal Methods in Perl/Lua. (#2604)
# Perl - Add `$client->Signal(signal_id)`. # Notes - Some places still had signal as `uint32` versus `int`. - Rename `signal` to `signal_id` where valid so we don't have conflicts.
This commit is contained in:
+4
-4
@@ -3701,12 +3701,12 @@ void QuestManager::CrossZoneSetEntityVariable(uint8 update_type, int update_iden
|
||||
safe_delete(pack);
|
||||
}
|
||||
|
||||
void QuestManager::CrossZoneSignal(uint8 update_type, int update_identifier, int signal, const char* client_name) {
|
||||
void QuestManager::CrossZoneSignal(uint8 update_type, int update_identifier, int signal_id, const char* client_name) {
|
||||
auto pack = new ServerPacket(ServerOP_CZSignal, sizeof(CZSignal_Struct));
|
||||
CZSignal_Struct* CZS = (CZSignal_Struct*)pack->pBuffer;
|
||||
CZS->update_type = update_type;
|
||||
CZS->update_identifier = update_identifier;
|
||||
CZS->signal = signal;
|
||||
CZS->signal_id = signal_id;
|
||||
strn0cpy(CZS->client_name, client_name, 64);
|
||||
worldserver.SendPacket(pack);
|
||||
safe_delete(pack);
|
||||
@@ -3811,11 +3811,11 @@ void QuestManager::WorldWideSetEntityVariable(uint8 update_type, const char* var
|
||||
safe_delete(pack);
|
||||
}
|
||||
|
||||
void QuestManager::WorldWideSignal(uint8 update_type, int signal, uint8 min_status, uint8 max_status) {
|
||||
void QuestManager::WorldWideSignal(uint8 update_type, int signal_id, uint8 min_status, uint8 max_status) {
|
||||
auto pack = new ServerPacket(ServerOP_WWSignal, sizeof(WWSignal_Struct));
|
||||
WWSignal_Struct* WWS = (WWSignal_Struct*)pack->pBuffer;
|
||||
WWS->update_type = update_type;
|
||||
WWS->signal = signal;
|
||||
WWS->signal_id = signal_id;
|
||||
WWS->min_status = min_status;
|
||||
WWS->max_status = max_status;
|
||||
worldserver.SendPacket(pack);
|
||||
|
||||
Reference in New Issue
Block a user