Ir para conteúdo
  • 0

script mini task


Azon25

Pergunta

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

Link para o comentário
Compartilhar em outros sites

5 respostass a esta questão

Posts Recomendados

  • 0
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

Link para o comentário
Compartilhar em outros sites

  • 0
20 horas atrás, kttallan disse:

Qual é o seu pokétibia, PDA, DXP, ERONDINO?

Se possível poste um npc de task's.

Spoiler

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

Spoiler
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 por Azon25
Link para o comentário
Compartilhar em outros sites

  • 0
1 hora atrás, Azon25 disse:
  Mostrar conteúdo oculto

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

  Mostrar conteúdo oculto
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

 

Cara eu vou tentar te ajudar aqui!, porém eu não garanto que seja rapido esses dias estou muito ocupado!.

Link para o comentário
Compartilhar em outros sites

  • 0
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

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...