-- licencja GNU i jush, z dedykacja dla noobka od Ldrozd'a :p
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemid.uid == 1234 then -- uniqueid statuy
setPlayerStorageValue(cid, 6969, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "hIhahauahdjdtmjghkujnlgyjtfgv.")
elseif itemid.uid == 1235 then --uniqueid drzwi
if getPlayerStorageValue(cid,6969) == 1 then
doTransformItem(item.uid, 1226) -- id drzwi po nacisnieciu
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You may kurwa enter xD")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Pierwiej pomacaj figurke.")
end
end
return true
end
<action uniqueid="1234" script="skrypcior.lua" />
<action uniqueid="1235" script="skrypcior.lua" />
-- licencja GNU i jush, z dedykacja dla noobka od Ldrozda :p
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemid.uid == 1234 then -- uniqueid statuy
setPlayerStorageValue(cid, 6969, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "hIhahauahdjdtmjghkujnlgyjtfgv.")
elseif itemid.uid == 1235 then --uniqueid drzwi
if getPlayerStorageValue(cid,6969) == 1 then
doTransformItem(item.uid, 1213) -- id drzwi po nacisnieciu
doTeleportThing(cid, {x=688,y=1039,z=7}) -- pozycja drzwi
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You may kurwa enter xD")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Pierwiej pomacaj figurke.")
end
end
return true
end
<movevent type="StepIn"uniqueid="1238" event="script" value="skrypcior.lua"/>
function onStepIn(cid, item, position, fromPosition)
doorpos = {x=123, y=123, z=7, stackpos=1} -- Pozycja drzwi
getdoor = getThingfromPos(doorpos)
if item.uid == 1238 then
doTransformItem(item.getdoor, 1214)
end
return TRUE
end