local quest = {
[3333] = {
[10511] = 1,
[7409] = 1,
[10073] = 1
}
}
local look,addons = 364, 3 ---Outifit e addon
local exp = 200 ---Exp ganha
function onUse(cid, item, fromPosition, itemEx, toPosition)
local _quest = quest[item.actionid]
if _quest then
local prize = _quest[item.uid]
if prize and getPlayerStorageValue(cid, item.actionid) ~= 1 then
setPlayerStorageValue(cid, item.actionid, 1)
doPlayerAddItem(cid, item.uid, prize)
doPlayerAddExp(cid, exp)
doPlayerAddOutfit(cid, look, addons)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você completou a quest do ".. getItemNameById(item.uid) ..".")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "O baú está vazio.")
end
return true
end
end
info
Grupo: Infante
Registrado: 04/03/11
Posts: 1.6k
Reputação: +393
Char no Tibia: No Have

local quest = {
[3333] = {
[10511] = 1,
[7409] = 1,
[10073] = 1
}
}
local look,addons = 364, 3 ---Outifit e addon
local exp = 200 ---Exp ganha
function onUse(cid, item, fromPosition, itemEx, toPosition)
local _quest = quest[item.actionid]
if _quest then
local prize = _quest[item.uid]
if prize and getPlayerStorageValue(cid, item.actionid) ~= 1 then
setPlayerStorageValue(cid, item.actionid, 1)
doPlayerAddItem(cid, item.uid, prize)
doPlayerAddExp(cid, exp)
doPlayerAddOutfit(cid, look, addons)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você completou a quest do ".. getItemNameById(item.uid) ..".")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "O baú está vazio.")
end
return true
end
end
MANDA O TUTORIAL TBM-- PQ SOU BURRO E NAO SEI NADA SOBRE SCRIPT
info
Grupo: Infante
Registrado: 04/03/11
Posts: 1.6k
Reputação: +393
Char no Tibia: No Have

mais não tem erro
-----------Aki voce coloca o o id do bau e os itens se quiser adicionar mais e so
local quest = {
[3333] = { ------------Aki o id do bau
[10511] = 1, --------Aki o id do item e quantidade
[7409] = 1,
[10073] = 1
}
}
mais não tem erro
-----------Aki voce coloca o o id do bau e os itens se quiser adicionar mais e so
local quest = {
[3333] = { ------------Aki o id do bau
[10511] = 1, --------Aki o id do item e quantidade
[7409] = 1,
[10073] = 1
}
}
HMMM., MAS EU NAO ENTENDI E SE O PLAYER FOR FEMALE E CLICAR NO BAÚ VAI GANHAR ROUPA DE HOMEM?? ID DO OUTIFIT MALE = 206 ID DO OUTIFT FEMALE = 256 AJUDA AEW
info
Grupo: Infante
Registrado: 04/03/11
Posts: 1.6k
Reputação: +393
Char no Tibia: No Have

então para ser male e female faz assim
local quest = {
[3333] = {
[10511] = 1,
[7409] = 1,
[10073] = 1
}
}
local outfit = {34,36} -- male e female outfit
local add = {23, 23} ---male e female addons
local exp = 200 ---Exp ganha
function onUse(cid, item, fromPosition, itemEx, toPosition)
local _quest = quest[item.actionid]
if _quest then
local prize = _quest[item.uid]
if prize and getPlayerStorageValue(cid, item.actionid) ~= 1 then
setPlayerStorageValue(cid, item.actionid, 1)
doPlayerAddItem(cid, item.uid, prize)
doPlayerAddExp(cid, exp)
doPlayerAddOutfit(cid, look, addons)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você completou a quest do ".. getItemNameById(item.uid) ..".")
doPlayerAddOutfit(cid, getPlayerSex(cid) == 0 and outfit[1] or outfit[2], getPlayerSex(cid) == 0 and add[1] or add[2])
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "O baú está vazio.")
end
return true
end
end



info
Grupo: Cavaleiro
Registrado: 21/06/12
Posts: 155
Reputação: +3
Preciso do script + tutorial - Apos o player fizer a quest tera um baú no final da quest ao clicar ele ganha tal outfit, EXP, ITEM - ID =11640 Ja sabém - quem ajudar rep ++