XPRIMEX
Semi-Dead
- Joined
- Jun 19, 2012
- Messages
- 293
- Reaction score
- 14
Hey, this is just a very simple script I made. if you need anything changed withing it simply go to my REQUEST thread by clicking the link below
Picklocking System : > HERE < (Request Thread)
Description : When the picklock (set id to your comfort) is used on a closed
door there is a XX% that the door will be unlocked or that your pick will break
and the door remain Locked
Picklocking System
Actions.xml
PicklockingSystem.lua
thanks for helping me out Evan
Place action id 1213 on the item you put in this line :
Change this to make the picklocking easire/harder
the doors will relock after it is closed.
REPP ++ Evan + Me if u'll be using it
Picklocking System : > HERE < (Request Thread)
Description : When the picklock (set id to your comfort) is used on a closed
door there is a XX% that the door will be unlocked or that your pick will break
and the door remain Locked
Picklocking System
Actions.xml
Lua:
<action itemid="5941" event="script" value="picklocksystem1.lua"/>
PicklockingSystem.lua
Lua:
---Picklock System
--By XPRIMEX
--A HUUUUUGE thanks to Evan
-- Edit The Ids to your pleasure :P
function onUse(cid, item, fromPosition, itemEx, toPosition)
local chance = math.random (1,100)
if item.itemid == 5941 and itemEx.itemid == 1213 then
if itemEx.actionid == 1213 then
if chance <= 50 then
doTransformItem (itemEx.uid, 1214) ---Door Id
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "The door has been unlocked !")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You failed to pick the lock and broken your pick in the attempt.")
doPlayerRemoveItem(cid, 5941, 1)
end
end
end
return true
end
thanks for helping me out Evan
- - - How To Use It :- - -
Place action id 1213 on the item you put in this line :
Lua:
if item.itemid == 5941 and itemEx.itemid == 1213 ---Here
Change this to make the picklocking easire/harder
Lua:
if chance <= 90 then
the doors will relock after it is closed.
REPP ++ Evan + Me if u'll be using it
Le system in action
Last edited: