1
[Actions] Actions y Scripts el Mar Sep 11, 2018 1:04 pm
alan_carte

Nuevo Miembro

Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...
local config = {
keyid = 2088, --itemid de la key
aid = 1000, --actionid que le dara y que la puerta tendra
storage = 5000 ----> storage para que no se repita la quest
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if (getPlayerStorageValue(cid, config.storage) < 1) then
setPlayerStorageValue(cid, config.storage, 1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,"You have found a key.")
local key = doPlayerAddItem(cid, config.keyid, 1)
doSetItemActionId(key, ""..config.aid.."")
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,"This chest is empty.")
end
return true
end
Permisos de este foro:
No puedes responder a temas en este foro.
|
|