mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 07:02:35 +00:00
updated the door sample to use standard format on variables
parent
7ca8a9346f
commit
9ec2bc51c8
@ -81,10 +81,10 @@ end
|
|||||||
```
|
```
|
||||||
-- player.lua example of access and changing the lockpick value of a door.
|
-- player.lua example of access and changing the lockpick value of a door.
|
||||||
function event_click_door(e)
|
function event_click_door(e)
|
||||||
local DoorID = e.door:GetDoorID();
|
local door_id = e.door:GetDoorID();
|
||||||
local entity_list = eq.get_entity_list();
|
local entity_list = eq.get_entity_list();
|
||||||
e.self:Message(15,"You clicked on DoorID: "..DoorID);
|
e.self:Message(15,"You clicked on door: "..door_id);
|
||||||
local door = entity_list:FindDoor(DoorID);
|
local door = entity_list:FindDoor(door_id);
|
||||||
e.self:Message(15,"GetLockPick was: "..door:GetLockPick());
|
e.self:Message(15,"GetLockPick was: "..door:GetLockPick());
|
||||||
if (entity_list:FindDoor(DoorID):GetLockPick() == 0) then
|
if (entity_list:FindDoor(DoorID):GetLockPick() == 0) then
|
||||||
door:SetLockPick(-1);
|
door:SetLockPick(-1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user