TFS 0.4 protocol 8.6
Good night friends. I would like some help to make a part of this quest script, what I need is to check the storage 39000 value 7 so that the player cannot repeat the same action (complete te quest again). I thank you all.
Good night friends. I would like some help to make a part of this quest script, what I need is to check the storage 39000 value 7 so that the player cannot repeat the same action (complete te quest again). I thank you all.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tilepos5 = {x=33115, y=31702, z=12}
local tilepos3 = {x=33114, y=31700, z=12}
local tilepos4 = {x=33115, y=31700, z=12}
local tilepos6 = {x=33116, y=31700, z=12}
local tilepos7 = {x=33114, y=31701, z=12}
local tilepos8 = {x=33115, y=31701, z=12}
local tilepos9 = {x=33116, y=31701, z=12}
if(itemEx.uid == 6669) and (itemEx.itemid == 8759) then
if getPlayerStorageValue(cid, 1996) == 1 then
doPlayerRemoveItem(cid, 7494, 1)
doSendMagicEffect(tilepos5,15)
doSendMagicEffect(tilepos3,5)
doSendMagicEffect(tilepos4,5)
doSendMagicEffect(tilepos6,5)
doSendMagicEffect(tilepos7,5)
doSendMagicEffect(tilepos8,5)
doSendMagicEffect(tilepos9,5)
setPlayerStorageValue(cid, 39000, 7)
doCreatureSay(cid, 'Você destruiu com sucesso o Shadow Nexus!', TALKTYPE_ORANGE_1)
doPlayerSendTextMessage(cid,22,"Seu Questlog foi atualizado!")
else
doPlayerSendCancel(cid, MESSAGE_INFO_DESCR, "message to cancel")
end
return TRUE
end
end