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![Stick Out Tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
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
![UTmNg.png](/proxy.php?image=http%3A%2F%2F4.imgland.net%2FUTmNg.png&hash=1b8e53fcbf85e1407e6b967904fa71be)
![ctt8Co.png](/proxy.php?image=http%3A%2F%2F4.imgland.net%2Fctt8Co.png&hash=ea77251415bf5b1263f44868b737a10b)
Last edited: