From 9ec2bc51c8d5dfdae02173351d85b881447c1c39 Mon Sep 17 00:00:00 2001 From: Sorvani Date: Tue, 9 Jul 2013 07:11:37 -0700 Subject: [PATCH] updated the door sample to use standard format on variables --- Lua-Examples.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lua-Examples.md b/Lua-Examples.md index f8c4528..58c2977 100644 --- a/Lua-Examples.md +++ b/Lua-Examples.md @@ -81,10 +81,10 @@ end ``` -- player.lua example of access and changing the lockpick value of a door. function event_click_door(e) - local DoorID = e.door:GetDoorID(); + local door_id = e.door:GetDoorID(); local entity_list = eq.get_entity_list(); - e.self:Message(15,"You clicked on DoorID: "..DoorID); - local door = entity_list:FindDoor(DoorID); + e.self:Message(15,"You clicked on door: "..door_id); + local door = entity_list:FindDoor(door_id); e.self:Message(15,"GetLockPick was: "..door:GetLockPick()); if (entity_list:FindDoor(DoorID):GetLockPick() == 0) then door:SetLockPick(-1);