Jump to content
Close
Sign in to follow this  
Sayadjin

Normal Bug na Anihi

Recommended Posts

Bom Dia galera do TK... bom to com um erro simples. porém não consigo concertar.

-- Anihi Quest Chets - By The Sleeper

function onUse(cid, item, fromPosition, itemEx, toPosition)
elseif item.uid == 6000 then
queststatus = getPlayerStorageValue(cid,6000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você escolheu o 100 Crystal Coin")
doPlayerAddItem(cid,2160,100)
setPlayerStorageValue(cid,6000,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você ja escolheu seu premio.")
end
elseif item.uid == 6001 then
queststatus = getPlayerStorageValue(cid,6000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você escolheu 1 Anihi Club.")
doPlayerAddItem(cid,8928,1)
setPlayerStorageValue(cid,6000,1)
end
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você ja escolheu seu premio.")
end
elseif item.uid == 6002 then
queststatus = getPlayerStorageValue(cid, 6000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você escolheu um Anihi Sword")
doPlayerAddItem(cid,8930,1)
setPlayerStorageValue(cid,6000,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você ja escolheu seu premio.")
end
elseif item.uid == 6003 then
queststatus = getPlayerStorageValue(cid,6000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você escolheu uma Anihi Staff")
doPlayerAddItem(cid,8910,1)
setPlayerStorageValue(cid,6000,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você ja escolheu seu premio.")
end
elseif item.uid == 6005 then
queststatus = getPlayerStorageValue(cid,6000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você escolheu uma Anihi Star")
doPlayerAddItem(cid,7366,1)
setPlayerStorageValue(cid,6000,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você ja escolheu seu premio.")
end
elseif item.uid == 6007 then
queststatus = getPlayerStorageValue(cid,6000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você escolheu uma Anihi Axe")
doPlayerAddItem(cid,8924,1)
setPlayerStorageValue(cid,6000,1)
end
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você ja escolheu seu premio.")
end
elseif item.uid == 6006 then
queststatus = getPlayerStorageValue(cid, 6000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você escolheu uma Anihi Heal Boots")
doPlayerAddItem(cid,6132,1)
setPlayerStorageValue(cid,6000,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você ja escolheu seu premio.")
end
else
return 0
end

return 1
end

Meu Script... e da Esse erro no distro

[02/03/2016 11:47:31] [Error - LuaScriptInterface::loadFile] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/annihilator1.lua)
[02/03/2016 11:47:31] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Error - LuaScriptInterface::loadFile] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/annihilator1.lua)
[02/03/2016 11:47:31] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Error - LuaScriptInterface::loadFile] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/annihilator1.lua)
[02/03/2016 11:47:31] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Error - LuaScriptInterface::loadFile] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/annihilator1.lua)
[02/03/2016 11:47:31] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Error - LuaScriptInterface::loadFile] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/annihilator1.lua)
[02/03/2016 11:47:31] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Error - LuaScriptInterface::loadFile] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/annihilator1.lua)
[02/03/2016 11:47:31] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Error - LuaScriptInterface::loadFile] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'
[02/03/2016 11:47:31] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/annihilator1.lua)
[02/03/2016 11:47:31] data/actions/scripts/annihilator1.lua:4: 'end' expected (to close 'function' at line 3) near 'elseif'

REP + Estárei aguardando. Obg

UP!

UP!

@xWhiteWolf tem como vc me da uma ajudinha aqui ?


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

Open Tibia Server

Quer aprender a criar seu próprio servidor de Tibia? Então está no lugar certo, aqui você encontrará milhares de tutorias, scripts, códigos, mapas e utilitários para que você possa fazer o seu próprio servidor de Tibia começando do zero.

Redes Sociais

Anuncie no Tibia King

Precisa de mais visibilidade em seus projetos? Quer fazer um plano publicitário para o seu servidor? Anuncie no Tibia King e faça sua divulgação, possuímos centenas de acessos simultâneos e milhares diários, com certeza será a sua solução!

×
×
  • Create New...