SOLVED SCRIPTS, THANKS TO CYBERM AND ANOTHERS PEOPLES WHO'S HELP TO FIX THEM.
first (Movements):
second, action:
Please i need help, thanks a lot!
first (Movements):
LUA:
-- Script By RaikND, set StorageID Tile "First SCRIPT on movements"
function onStepIn(cid, item, position)
local cfg = {
level = 30,
storage = 30104,
textCompleted = "Ya tienes accesos para entrar a la Blue Djinn!",
cancelText = "Mission completada"
}
lvl = getPlayerLevel(cid)
if item.actionid == cfg.storage and lvl >= cfg.level == -1 then
getCreatureStorage(cid, cfg.storage)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, cfg.textCompleted)
doPlayerSetStorageValue(cid, cfg.storage, 1)
else
doPlayerSendCancel(cid, cfg.cancelText)
end
return false
end
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if doPlayerRemoveItem(cid, 2472, 1) then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Aqui tienes tu dinero.")
doPlayerAddItem(cid, 2160, 20)
else
doPlayerSendCancel(cid, "You dont have This item.")
end
return false
end
Please i need help, thanks a lot!
Last edited: