From c12e57b26d4bd5214beb5b419ffc79bcfce86821 Mon Sep 17 00:00:00 2001 From: TurmoilToad Date: Thu, 13 Dec 2018 11:52:24 -0500 Subject: [PATCH] attacknpc, attacknpctype, buryplayercorpse, castspell, changedeity, checktitle, clear_npctype_cache, clear_proximity, clear_zone_flag --- Perl-API.md | 55 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 46 insertions(+), 9 deletions(-) diff --git a/Perl-API.md b/Perl-API.md index b9cba52..622a991 100644 --- a/Perl-API.md +++ b/Perl-API.md @@ -1225,19 +1225,56 @@ quest::checktitle(2); #:: Returns bool       npc_type_id _(int)_ +      **Usage:** + +      Clears the NPC Table. + +### clear_proximity + +      **Parameter(s):** + +      None. + +      **Usage:** + +      Clears an NPC's defined proximity. + +      **Example:** + +```perl +sub EVENT_SPAWN { + #:: Create a proximity, 50 units across + quest::set_proximity($x - 25, $x + 25, $y - 25, $y + 25); +} + +sub EVENT_ENTER { + #:: Shout a message when the event is triggered + quest::shout("Congratulations $name, you have won the race!"); + #:: Clear the proximity since second place is the first loser + quest::clear_proximity(); +} +``` + +### clear_zone_flag + +      **Parameter(s):** + +      zone_id _(uint32)_ + +      **Usage:** + +      Used to clear the Zone Flag, by ID, of a client character. + +      **Example:** + +```perl +#:: Clear the character's Zone Flag (Sleeper's Key) for 128 - The Sleeper's Tomb (sleeper) +quest::clear_zone_flag(128); +``` (Work in Progress) ```perl - - - - - - - -quest::clear_proximity() -quest::clear_zone_flag(uint32 zone_id) quest::clearspawntimers() quest::collectitems(int item_id, [bool remove_item = true]) quest::completedtasksinset(int task_set)