kito2
www.masteria.net
Ok I made and found the first part, to obtain de broken piece of amulets with this scripts:
And the part of the door and when using the koshei amulet over the death lich boss:
And the door to pass:
But I need this scripts:
The two statues have their torches lighted (pos x and pos y), and use the middle clock (aid z), you would hear a "CLICK" on n tile:
Light off itemid: 3697
Light on itemid: 3698
And it will transform this m tile to the itemid 7519, if you use the clock again, it will close, or if you turn off the light of the statues (both or one) it will close too.
LUA:
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid, item.uid) == -1 then
doPlayerAddItem(cid,item.uid,1)
doCreatureSay(cid, "You have found a piece of a broken amulet!", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 3400, 1)
else
doCreatureSay(cid, "There is nothing here.", TALKTYPE_ORANGE_1)
end
return true
end
And the part of the door and when using the koshei amulet over the death lich boss:
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid == 3025 then
if item.itemid == 8266 then
getPlayerStorageValue(cid, 36205)
doSendAnimatedText(getPlayerPosition(cid), "At least!", TEXTCOLOR_RED)
setPlayerStorageValue(cid, 36205,1)
doRemoveItem(cid, item.uid, 1)
end
end
end
And the door to pass:
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 36205 then
if {getPlayerStorageValue(cid, 36205) and getPlayerStorageValue(cid, 8262) and getPlayerStorageValue(cid, 8263) and getPlayerStorageValue(cid, 8264) and getPlayerStorageValue(cid, 8265) == -1 then
doPlayerSendTextMessage(cid, 22, "You may not pass!")
else
doPlayerSendTextMessage(cid, 22, "You may pass.")
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, 1)
end
return 1
end
return 0
end
But I need this scripts:
The two statues have their torches lighted (pos x and pos y), and use the middle clock (aid z), you would hear a "CLICK" on n tile:
Light off itemid: 3697
Light on itemid: 3698
And it will transform this m tile to the itemid 7519, if you use the clock again, it will close, or if you turn off the light of the statues (both or one) it will close too.
Last edited: