Naõ Testei Mais Muito util continue assim xD ![]()
- Fórum
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- [Action] Quest System
2
1.9k
2 semanas depois...
info
Grupo: Campones
Registrado: 01/05/10
Posts: 25
Reputação: +5
Char no Tibia: Veriel Tukul

29 de agosto de 2010 às 01:50

info
Grupo: Campones
Registrado: 09/08/10
Posts: 27
Reputação: +9
Alguns servidores não possui o sistema de quest, aquele que você só coloca o ID do item no baú e ja ta pronta a quest.
Em data/actions/actions.xml adicione essa tag:
Em data/actions/scripts crie um arquivo com o nome quest_system.lua:
function onUse(cid, item, frompos, item2, topos) prize = item.uid count = item.actionid if prize > 0 and prize < 9000 then queststatus = getPlayerStorageValue(cid,prize) if queststatus == -1 then if count > 1 then doPlayerSendTextMessage(cid,22,'You have found '.. count ..' of ' .. getItemName(prize) .. '.') doPlayerAddItem(cid,prize,count) setPlayerStorageValue(cid,prize,1) else doPlayerSendTextMessage(cid,22,'You have found a ' .. getItemName(prize) .. '.') doPlayerAddItem(cid,prize,1) setPlayerStorageValue(cid,prize,1) end else doPlayerSendTextMessage(cid,22,"It is empty.") end return 1 else return 0 end endEditado Agosto 18 por kwovan