mano... o sistema de atks passivos n tem nd a ver com sistema de transforma em shiny e blablabla.. ;x tanto q meu onSpawn nem ta ali... n sei oq pode ta dando no teu serv.. ;x talvez tu esteja mudando algu errado, ou tu edito alguma coisa importante num dos arquivos q eu enviei dai se tu trocar os arquivos podem dar problema n sei... ;x
@all
to na facul agora.. mas assim q chegar em casa irei atualizar o sistema de passivo denovo.. pos achei 2 problemas com ele... ;x fuiz












info
Grupo: Campones
Registrado: 22/10/11
Posts: 19
Reputação: +2
Bom galera, irei postar alguns npc de quest!
Quest de Apple Bite: Julie
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 if(msgcontains(msg, 'help')) then selfSay('Yes, please, get my apples back, it was 30! No matter their aspect, thats for revenge!') talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if (getPlayerStorageValue(cid,252601) > 0) then selfSay('Sorry, but I already brought the 30 apple bites!') else if(doPlayerRemoveItem(cid,12173,30)) then setPlayerStorageValue(cid,252601,1) doPlayerAddExp(cid, 1000) doPlayerAddItem(cid,2152,3) doPlayerAddItem(cid,2148,25) selfSay('Thanks a lot, thats a shame they ate all the apples, Ill still heave my revenge! Well, get this as a reward!') else selfSay('Sorry, but you do not have the 30 apple bites ordered to bring me!') end end return true end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())Quest da Venom Stone: Colin
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 if(msgcontains(msg, 'help')) then selfSay('Yes, I need help, Ill need 5 bat wings, 5 nail, 3 tooths, 3 mushrooms and 3 fur. At level 22 you can get better prizes. Are you sure you want to finish it now?') talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if (getPlayerLevel(cid) <= 22) then selfSay('You do not have the necessary level to help me!') else if (getPlayerStorageValue(cid,252605) > 0) then selfSay('Thank you but you already gave me the necessary items!') else if(doPlayerRemoveItem(cid,12182,5)) then doPlayerRemoveItem(cid,12157,5) doPlayerRemoveItem(cid,12175,3) doPlayerRemoveItem(cid,12183,3) doPlayerRemoveItem(cid,12181,3) setPlayerStorageValue(cid,252605,1) doPlayerAddExp(cid, 2000) doPlayerAddItem(cid,11443,1) selfSay('Thanks a lot, take this!') else selfSay('Sorry, but you do not bring the necessary items!') end end return true end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())Quest do Bag of Pollem: Mia
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 if(msgcontains(msg, 'help')) then selfSay('My Butterfree is really sad, she cant use powder attacks, I want to make it stronger, can you bring me 25 pollen bags?') talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if (getPlayerStorageValue(cid,252603) > 0) then selfSay('Sorry, but I already brought the 25 pollen bags!') else if(doPlayerRemoveItem(cid,12153,25)) then setPlayerStorageValue(cid,252603,1) doPlayerAddExp(cid, 2000) doPlayerAddItem(cid,2152,10) selfSay('Thanks a lot, my Butterfree is going to be well.') else selfSay('Sorry, but you do not have the 25 pollen bags ordered to bring me!') end end return true end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())Editado Março 15 por zFuzion