Qual é o seu pokétibia, PDA, DXP, ERONDINO?
Se possível poste um npc de task's.
info
Grupo: Infante
Registrado: 06/03/13
Posts: 1.6k
Reputação: +319
Gênero: Masculino
Char no Tibia: Lord Sorte

Qual é o seu pokétibia, PDA, DXP, ERONDINO?
Se possível poste um npc de task's.
10 horas atrás, kttallan disse:Qual é o seu pokétibia, PDA, DXP, ERONDINO?
Se possível poste um npc de task's.
pokexcyan, amanha de tarde vou procurar um npc aqui de task e te mando. foi mau fui ver tarde sua msg. mas de atardezinha mando. vlw mano
20 horas atrás, kttallan disse:Qual é o seu pokétibia, PDA, DXP, ERONDINO?
Se possível poste um npc de task's.
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
local task = {
["Junior"] = {{"Abra", 20}, {"Kadabra", 20}, {"Alakazam", 25}, {"Hypno", 20}},
}
if msgcontains(msg, 'task') or msgcontains(msg, 'Task') then
if isMyTaskComplete(cid, getNpcCid()) then
selfSay("Wow you have already complete my task! Ok then, take your reward!", cid)
doPlayerAddExperience(cid, 800000) --premio --Quase 2 leveis no nivel 101
doPlayerAddItem(cid, 2160, 10)
local sto = getMyTaskSto(cid, getNpcCid())
setPlayerStorageValue(cid, sto, -1)
setPlayerStorageValue(cid, 181611, 1) --storage da outfit
talkState[talkUser] = 0
return true
else
selfSay("Then, is a simple task, i want to you kill {20 Abras, 20 Kadabras, 20 Hypnos and 25 Alakazams}, you accept the task?", cid)
talkState[talkUser] = 2
end
elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'Yes')) and talkState[talkUser] == 2 then
if getMyTaskSto(cid, getNpcCid()) ~= -1 then
selfSay("You are already doing my task! go end it!", cid)
talkState[talkUser] = 0
return true
end
local sto = getFreeTaskStorage(cid)
if sto == -1 then
selfSay("You can't catch more tasks! You are already with the maximum of "..(maxTasks).." tasks!", cid)
talkState[talkUser] = 0
return true
end
selfSay("OK then... Go kill your targets!", cid)
setStorageArray(cid, sto, task)
talkState[talkUser] = 0
return true
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
ai amigo o npc, mas tenta colocar para pegar a task na alavanca e ser teleportado para o lugar aonde ta os pokemons, e se tivesse como sumonar esses pokemons na hora que eu puxar alavanca ficaria perfeitto, mas se n tiver td bem
olha achei esse script no forum de sumonar monstro na alavanca
function onUse(cid, item, fromPosition, itemEx, toPosition)--parte configurável--local posmonster = {x= posx, y = posy, z= posz} --posição que monstro nascerálocal monster = "Demon" --Nome do monstro que será spawnadolocal stor = 18992local msg1 = "Voce Precisa ser premium para puxar esta alavanca"--fim parte configurável, sem conhecimentos básicos não edite.--if isPremium(cid) == trueif (getPlayerStorageValue(cid, stor) == 0) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 1)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 1) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 2)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 2) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 3)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 3) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 4)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 4) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 5)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 5) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 6)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 6) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 7)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 7) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 8)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 8) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 9)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 9) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 0)doPlayerRemovePremiumDays(cid, 1)endelsedoPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, msg1)endreturn trueend
no caso seria mais de 1 tipo de monstro
Editado Janeiro 10 por Azon25
info
Grupo: Infante
Registrado: 06/03/13
Posts: 1.6k
Reputação: +319
Gênero: Masculino
Char no Tibia: Lord Sorte

1 hora atrás, Azon25 disse:local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
local task = {
["Junior"] = {{"Abra", 20}, {"Kadabra", 20}, {"Alakazam", 25}, {"Hypno", 20}},
}
if msgcontains(msg, 'task') or msgcontains(msg, 'Task') then
if isMyTaskComplete(cid, getNpcCid()) then
selfSay("Wow you have already complete my task! Ok then, take your reward!", cid)
doPlayerAddExperience(cid, 800000) --premio --Quase 2 leveis no nivel 101
doPlayerAddItem(cid, 2160, 10)
local sto = getMyTaskSto(cid, getNpcCid())
setPlayerStorageValue(cid, sto, -1)
setPlayerStorageValue(cid, 181611, 1) --storage da outfit
talkState[talkUser] = 0
return true
else
selfSay("Then, is a simple task, i want to you kill {20 Abras, 20 Kadabras, 20 Hypnos and 25 Alakazams}, you accept the task?", cid)
talkState[talkUser] = 2
end
elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'Yes')) and talkState[talkUser] == 2 then
if getMyTaskSto(cid, getNpcCid()) ~= -1 then
selfSay("You are already doing my task! go end it!", cid)
talkState[talkUser] = 0
return true
end
local sto = getFreeTaskStorage(cid)
if sto == -1 then
selfSay("You can't catch more tasks! You are already with the maximum of "..(maxTasks).." tasks!", cid)
talkState[talkUser] = 0
return true
end
selfSay("OK then... Go kill your targets!", cid)
setStorageArray(cid, sto, task)
talkState[talkUser] = 0
return true
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
ai amigo o npc, mas tenta colocar para pegar a task na alavanca e ser teleportado para o lugar aonde ta os pokemons, e se tivesse como sumonar esses pokemons na hora que eu puxar alavanca ficaria perfeitto, mas se n tiver td bem
olha achei esse script no forum de sumonar monstro na alavanca
function onUse(cid, item, fromPosition, itemEx, toPosition)--parte configurável--local posmonster = {x= posx, y = posy, z= posz} --posição que monstro nascerálocal monster = "Demon" --Nome do monstro que será spawnadolocal stor = 18992local msg1 = "Voce Precisa ser premium para puxar esta alavanca"--fim parte configurável, sem conhecimentos básicos não edite.--if isPremium(cid) == trueif (getPlayerStorageValue(cid, stor) == 0) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 1)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 1) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 2)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 2) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 3)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 3) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 4)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 4) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 5)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 5) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 6)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 6) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 7)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 7) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 8)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 8) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 9)doPlayerRemovePremiumDays(cid, 1)elseif (getPlayerStorageValue(cid, stor) == 9) thendoCreateMonster(monster, posmonster)setPlayerStorageValue(cid, stor, 0)doPlayerRemovePremiumDays(cid, 1)endelsedoPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, msg1)endreturn trueendno caso seria mais de 1 tipo de monstro
Cara eu vou tentar te ajudar aqui!, porém eu não garanto que seja rapido esses dias estou muito ocupado!.
24 minutos atrás, kttallan disse:Cara eu vou tentar te ajudar aqui!, porém eu não garanto que seja rapido esses dias estou muito ocupado!.
blz meu camarada, fico aguardando aqui
info
Grupo: Campones
Registrado: 21/05/09
Posts: 48
Reputação: +2
Char no Tibia: No have
galera eu preciso de um script que faça o seguinte. Te peça para matar 20 pokemons texemplo : 10 charizard 10 blastoise em seguida vc ganha um storage. para começar essa mini task, gostaria que player puxasse uma alavanca e fosse teleportado aonde estivesse esses pokemons.
rep + pra quem consegueguir. Obgd