From a793421a373027c66955d5b89b12c0a3300bfccb Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 1 Feb 2014 14:48:28 -0800 Subject: [PATCH] Updated Lua General Functions (markdown) --- Lua-General-Functions.md | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/Lua-General-Functions.md b/Lua-General-Functions.md index 3506eaa..69c6d08 100644 --- a/Lua-General-Functions.md +++ b/Lua-General-Functions.md @@ -164,23 +164,9 @@ Mob get_owner(); ItemInst get_quest_item(); Void map_opcodes(); -- will refresh the internal opcode dispatch Void clear_opcode(Integer opcode); -- removes the internal opcode handler for the following opcode -``` -This is an example of how to use get_characters_in_instance - -``` - -function event_death_complete(e) - -- get the zone instance id - local instance_id = eq.get_zone_instance_id(); - local charid_list = eq.get_characters_in_instance(instance_id); - -- Lua loop basics: - -- k = key which is generally the current index of the array, not used in this example - -- v = value for the current key, in this example it would be the character ID - for k,v in pairs(charid_list) do - eq.target_global("lockout_ikky_g1", "1", "H17", 0,v, 0); - end -end - +Bool enable_recipe(Integer recipe_id); +Bool disable_recipe(Integer recipe_id); +Void clear_npctype_cache(Integer npctype_id); ``` SpawnPointOptions is a lua table that accepts the following values: