passu

Campones
TOTAL DE ITENS10
REGISTRO EMagosto 09, 2010
ÚLTIMA VISITAmarço 26, 2025
1 Seguidores
Sobre passu
Campones
Perfil
GêneroNão informado
Informações
Tibia CharacterEstilo Tarzan
Forma que conheci o xTibiaAmigos
SouOT-Admin
Últimos Visitantes
3759 visualizações
  • RigBy

    maio 19, 2024
  • Frenvius

    janeiro 10, 2024
  • Shoorkill

    novembro 06, 2023
  • tharciovieira

    outubro 05, 2022
  • mohanwell

    novembro 07, 2021
  • GamerGoiano

    junho 04, 2020
  • LuizFFF

    junho 20, 2018
  • HazusHK

    maio 11, 2018
  • kyon14

    abril 10, 2018
  • Sarab

    outubro 23, 2017

Atividade

colocar tempo e...passu respondeu ao tópico de FelipeXT em Scripts
passu<p> <br /> --------------------------------------------------------------------------------------------<br /> ------------------------------------ Advanced Addon NPC ------------------------------------<br /> -------------------------------- Script made by teh_pwnage ---------------------------------<br /> --------------- Special thanks to: mokerhamer, Xidaozu and Jiddo, deaths'life --------------<br /> ------------------------------- Thanks also to everyone else -------------------------------<br /> ------------------------------ NPC based on Evolutions V0.7.7 ------------------------------<br /> -------------------------------------------------------------------------------------------- </p> <p> local keywordHandler = KeywordHandler:new()<br /> local npcHandler = NpcHandler:new(keywordHandler)<br /> NpcSystem.parseParameters(npcHandler) </p> <p> -- OTServ event handling functions start<br /> function onCreatureAppear(cid)                npcHandler:onCreatureAppear(cid) end<br /> function onCreatureDisappear(cid)             npcHandler:onCreatureDisappear(cid) end<br /> function onCreatureSay(cid, type, msg)                         npcHandler:onCreatureSay(cid, type, msg) end<br /> function onThink()                         npcHandler:onThink() end </p> <p> -- OTServ event handling functions end </p> <p> local function Kick(cid)<br /> if isPlayer(cid) == TRUE then<br /> doRemoveCreature(cid)<br /> end<br /> end </p> <p> function creatureSayCallback(cid, type, msg)<br />     -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.<br />     if(npcHandler.focus ~= cid) then<br />         return false<br />     end </p> <p>     preco = getPlayerLevel(cid)*4<br />         bless = getPlayerBlessing(cid,1)<br />     vezes = getResets(cid)<br />     rubys = (getPlayerLevel(cid)*4000)*(vezes*30*5)/1000000<br />     if vezes == 0 then<br />     dmspirits = 15<br />     shessences = 10<br />     else<br />     dmspirits = (15+(20*vezes))<br />     shessences = (10+(20*vezes))<br />     end<br />         if msgcontains(msg, 'necklace') then<br />             selfSay('I only need a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth, accept change all for a Elemental necklace?')<br />             talk_state = 1 </p> <p>         elseif msgcontains(msg, 'amulet') then<br />             selfSay('I only need a Ialamar, frozzen, sickness, Samantha, Mastafar, priest and eletric, accept change all for a Spirit Elemental amulet?')<br />             talk_state = 2 </p> <p>         elseif msgcontains(msg, 'magic') then<br />             selfSay('I only need a Merlian, relic of the hell, Broonier, Thordain, dark wyzard, angel and gaya, accept change all for a Elemental magic amulet?')<br />             talk_state = 3 </p> <p>         elseif msgcontains(msg, 'energyze') then<br />             selfSay('I can energyze your necklace for 50k, amulet for 100k or your magic amulet for 150k, do you want energyze?')<br />             talk_state = 4 </p> <p>         elseif msgcontains(msg, 'bless') or msgcontains(msg, 'blessing') then<br />             selfSay('Desculpe eu nao tenho mas o poder de bless')<br />             talk_state = 5 </p> <p>         elseif msgcontains(msg, 'reset') then<br />         if vezes == -1 or vezes == 0 then<br />             selfSay('\nResetar um Deus? Hmm... Primeira vez? Ok, eu vou fazê-lo libertar desta vez, mas preciso que você me entregue 100 demonic essences,tudo bem?!Nao se esquece que no primeiro reset apos virar deus vou lhe cobrar 15 shadow herbs e 10 blood herbs!')<br />             talk_state = 6<br />         else<br />             selfSay('\nResetar um Deus? Hmm ... Claro que posso, mas preciso que você me entregue ' .. dmspirits .. ' shadow herbs, ' .. shessences .. ' blood herbs e ' .. rubys .. ' ruby coins, tudo bem?')<br />             talk_state = 6<br />         end </p> <p> <br />         elseif msgcontains(msg, 'job') then<br />             selfSay('I am a servent of Merlian!') </p> <p>         elseif msgcontains(msg, 'offer') then<br />             selfSay('I can do an element item or energyze your element item, i only need all "necklace", "amulet" ou "magic" amulet, also can bless a little mortal and reset a god!') </p> <p>         elseif msgcontains(msg, 'sell') then<br />             selfSay('I am not a merchant!') </p> <p>         elseif msgcontains(msg, 'buy') then<br />             selfSay('I am not a merchant!') </p> <p>         elseif msgcontains(msg, 'quest') then<br />             selfSay('Ha! You are only a novice!') </p> <p>         elseif msgcontains(msg, 'mission') then<br />             selfSay('Ha! You are only a novice!') </p> <p> -- neck<br />     elseif talk_state == 1 then<br />     if msgcontains(msg, 'yes') then<br />         if getPlayerItemCount(cid,2198) &gt;= 1 and getPlayerItemCount(cid,2161) &gt;= 1 and getPlayerItemCount(cid,2170) &gt;= 1 and getPlayerItemCount(cid,2171) &gt;= 1 and getPlayerItemCount(cid,2172) &gt;= 1 and getPlayerItemCount(cid,2201) &gt;= 1 then<br />             selfSay('Its all yours!')<br />             doPlayerSendTextMessage(cid,22,"Voce recebeu um Elemental necklace.")<br />               doSendMagicEffect(getPlayerPosition(cid),12)<br />             doPlayerRemoveItem(cid,2198,1)<br />             doPlayerRemoveItem(cid,2161,1)<br />             doPlayerRemoveItem(cid,2170,1)<br />             doPlayerRemoveItem(cid,2171,1)<br />             doPlayerRemoveItem(cid,2172,1)<br />             doPlayerRemoveItem(cid,2201,1)<br />             doPlayerAddItem(cid,2197,1)<br />             talk_state = 0<br />             else<br />             selfSay('You dont have this itens!')<br />             talk_state = 0<br />             end<br />         end<br /> -- amulet </p> <p>     elseif talk_state == 2 then<br />     if msgcontains(msg, 'yes') then<br />         if getPlayerItemCount(cid,2129) &gt;= 1 and getPlayerItemCount(cid,2133) &gt;= 1 and getPlayerItemCount(cid,2130) &gt;= 1 and getPlayerItemCount(cid,2199) &gt;= 1 and getPlayerItemCount(cid,2135) &gt;= 1 and getPlayerItemCount(cid,2126) &gt;= 1 and getPlayerItemCount(cid,2131) &gt;= 1 then<br />             selfSay('Its all yours!')<br />             doPlayerSendTextMessage(cid,22,"Voce recebeu um Spirit Elemental amulet.")<br />               doSendMagicEffect(getPlayerPosition(cid),12)<br />             doPlayerRemoveItem(cid,2129,1)<br />             doPlayerRemoveItem(cid,2133,1)<br />             doPlayerRemoveItem(cid,2130,1)<br />             doPlayerRemoveItem(cid,2199,1)<br />             doPlayerRemoveItem(cid,2135,1)<br />             doPlayerRemoveItem(cid,2126,1)<br />             doPlayerRemoveItem(cid,2131,1)<br />             doPlayerAddItem(cid,2173,1)<br />             talk_state = 0<br />             else<br />             selfSay('You dont have this itens!')<br />             talk_state = 5<br />             end<br />         end </p> <p>     elseif talk_state == 3 then<br />     if msgcontains(msg, 'yes') then<br />         if getPlayerItemCount(cid,2218) &gt;= 1 and getPlayerItemCount(cid,2142) &gt;= 1 and getPlayerItemCount(cid,2132) &gt;= 1 and getPlayerItemCount(cid,2136) &gt;= 1 and getPlayerItemCount(cid,2138) &gt;= 1 and getPlayerItemCount(cid,2200) &gt;= 1 and getPlayerItemCount(cid,2196) &gt;= 1 then<br />             selfSay('Its all yours!')<br />             doPlayerSendTextMessage(cid,22,"Voce recebeu um Elemental magic amulet.")<br />               doSendMagicEffect(getPlayerPosition(cid),12)<br />             doPlayerRemoveItem(cid,2218,1)<br />             doPlayerRemoveItem(cid,2142,1)<br />             doPlayerRemoveItem(cid,2132,1)<br />             doPlayerRemoveItem(cid,2136,1)<br />             doPlayerRemoveItem(cid,2138,1)<br />             doPlayerRemoveItem(cid,2200,1)<br />             doPlayerRemoveItem(cid,2196,1)<br />             doPlayerAddItem(cid,2125,1)<br />             talk_state = 0<br />             else<br />             selfSay('You dont have this itens!')<br />             talk_state = 5<br />             end<br />         end<br /> -- energ </p> <p>     elseif talk_state == 4 then<br />     if msgcontains(msg, 'yes') and getPlayerItemCount(cid,2197) &gt;= 1 then<br />         if pay(cid,50000) then<br />             selfSay('Its all yours!')<br />             doPlayerSendTextMessage(cid,22,"Voce energizou seu Elemental necklace.")<br />               doSendMagicEffect(getPlayerPosition(cid),12)<br />             doPlayerRemoveItem(cid,2197,1)<br />             doPlayerAddItem(cid,13682,1)<br />             talk_state = 0<br />             else<br />             selfSay('You dont have this money!')<br />             talk_state = 0<br />             end </p> <p>     elseif msgcontains(msg, 'yes') and getPlayerItemCount(cid,2173) &gt;= 1 then<br />         if pay(cid,100000) then<br />             selfSay('Its all yours!')<br />             doPlayerSendTextMessage(cid,22,"Voce energizou seu Spirit Elemental amulet.")<br />               doSendMagicEffect(getPlayerPosition(cid),12)<br />             doPlayerRemoveItem(cid,2173,1)<br />             doPlayerAddItem(cid,13683,1)<br />             talk_state = 0<br />             else<br />             selfSay('You dont have this money!')<br />             talk_state = 0<br />             end </p> <p>     elseif msgcontains(msg, 'yes') and getPlayerItemCount(cid,2125) &gt;= 1 then<br />         if pay(cid,150000) then<br />             selfSay('Its all yours!')<br />             doPlayerSendTextMessage(cid,22,"Voce energizou seu Elemental magic amulet.")<br />               doSendMagicEffect(getPlayerPosition(cid),12)<br />             doPlayerRemoveItem(cid,2125,1)<br />             doPlayerAddItem(cid,13684,1)<br />             talk_state = 0<br />             else<br />             selfSay('You dont have this money!')<br />             talk_state = 0<br />             end </p> <p>     elseif msgcontains(msg, 'yes') and getPlayerItemCount(cid,2197) &gt;= 0 and getPlayerItemCount(cid,2125) &gt;= 0 and getPlayerItemCount(cid,2173) &gt;= 0 then<br />             selfSay('You dont have this item!')<br />             talk_state = 0 </p> <p>         end </p> <p> -- bless </p> <p>     elseif talk_state == 5 then<br />     if msgcontains(msg, 'afsdgsdufhfush2212121') then<br />     if bless then<br />         selfSay('You are already blessed my little mortal.')<br />         talk_state = 0<br />         else<br />         if isPremium(cid) then<br />     if pay(cid,preco*700000000000) then<br />         selfSay('Receive this bless mortal, with the gods touch i bless you!')<br />         doPlayerSendTextMessage(cid,22,"Voce nao recebeu a benção de Isolda.")<br />           doSendMagicEffect(getPlayerPosition(cid),12)<br />         talk_state = 0<br />         else<br />         selfSay('Desculpe me,mas nao trabalho com bless')<br />         talk_state = 0<br />         end<br />         else<br />         selfSay('Sorry but only can bless a mortal premmy.')<br />         talk_state = 0<br />         end </p> <p>         end<br />         end </p> <p> -- reset<br />       local exhaustedstorage = 401504<br />     if getResets(cid) == 7 then<br />     selfSay('voce so pode resetar 7 vezes comigo!')<br />     return true<br />     end<br />     elseif talk_state == 6 then<br />     --rubys = (getPlayerLevel(cid)*4000)*(vezes*10)/1000000)<br />     if msgcontains(msg, 'yes') then<br />     <br />         if(os.time() &lt; getPlayerStorageValue(cid, exhaustedstorage)) then<br />         doPlayerSendCancel(cid,"Tempo restante para poder resetar novamente " .. getPlayerStorageValue(cid, exhaustedstorage) - os.time() .. " segundos.")<br />         selfSay('Desculpe, voce precisa esperar 12hrs para resetar novamente!')<br />         talk_state = 0<br />         return TRUE<br />         end<br />     <br />         if isPremium(cid) then<br />         if getPlayerLevel(cid) &gt;= 500 then<br />         if getPlayerVocation(cid) &gt;= 9 then<br />     --if pay(cid,(getPlayerLevel(cid)*4000)*(vezes*10)) then<br />      </p> <p>         if getPlayerVocation(cid) == 13 then    -- deuses<br />         if getPlayerLevel(cid) &gt;= 500 then<br />     if getPlayerItemCount(cid,13685) &gt;= rubys and getPlayerItemCount(cid,2804) &gt;= dmspirits and getPlayerItemCount(cid,2798) &gt;= shessences then<br />         selfSay('Welcome new god!')<br />         doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.")<br />         health = getPlayerMaxHealth(cid)<br />         mana = getPlayerMaxMana(cid)<br />                 doResetLevel(cid)<br />         setPlayerMaxHealth(cid, (health/10)*(vezes+1))<br />         doPlayerAddHealth(cid,(health/10)*(vezes+1))<br />         setPlayerMaxMana(cid, (mana/15)*(vezes+1))<br />         doPlayerAddMana(cid,(mana/15)*(vezes+1))<br />                setPlayerMaxCapacity(cid,360)<br />                               setPlayerStorageValue(cid, exhaustedstorage, os.time() + 1) ------------ tempo reset segundos <br />         doPlayerAddMagicLevel(cid,10)<br />           doSendMagicEffect(getPlayerPosition(cid),12)<br />         doPlayerAddResets(cid,1)<br />         doPlayerRemoveItem(cid,13685,rubys)<br />         doPlayerRemoveItem(cid,2804,dmspirits)<br />         doPlayerRemoveItem(cid,2798,shessences)<br />                 addEvent(Kick, 1*2000,cid)<br />         talk_state = 0<br />         else<br />         selfSay('Você não trouxe o que eu pedi...')<br />         talk_state = 0<br />         end<br />         else<br />         selfSay('Volte aqui quando estiver mais forte, jovem aprendiz.')<br />         talk_state = 0<br />         end<br />     end<br />         if getPlayerVocation(cid) == 14 then<br />         if getPlayerLevel(cid) &gt;= 500 then<br />     if getPlayerItemCount(cid,13685) &gt;= rubys and getPlayerItemCount(cid,2804) &gt;= dmspirits and getPlayerItemCount(cid,2798) &gt;= shessences then<br />         selfSay('Welcome new god!')<br />         doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.")<br />         health = getPlayerMaxHealth(cid)<br />         mana = getPlayerMaxMana(cid)<br />                 doResetLevel(cid)<br />         setPlayerMaxHealth(cid, (health/10)*(vezes+1))<br />         doPlayerAddHealth(cid,(health/10)*(vezes+1))<br />         setPlayerMaxMana(cid, (mana/15)*(vezes+1))<br />         doPlayerAddMana(cid,(mana/15)*(vezes+1))<br />            setPlayerMaxCapacity(cid,360)<br />         doPlayerAddMagicLevel(cid,10)<br />           doSendMagicEffect(getPlayerPosition(cid),12)<br />         doPlayerAddResets(cid,1)<br />         doPlayerRemoveItem(cid,13685,rubys)<br />         doPlayerRemoveItem(cid,2804,dmspirits)<br />         doPlayerRemoveItem(cid,2798,shessences)<br />                 addEvent(Kick, 1*2000,cid)<br />                 setPlayerStorageValue(cid, exhaustedstorage, os.time() + 1) ------------ tempo reset segundos <br />         talk_state = 0<br />         else<br />         selfSay('Você não trouxe o que eu pedi...')<br />         talk_state = 0<br />         end<br />         else<br />         selfSay('Volte aqui quando estiver mais forte, jovem aprendiz.')<br />         talk_state = 0<br />         end<br />     end<br />         if getPlayerVocation(cid) == 15 then<br />         if getPlayerLevel(cid) &gt;= 500 then<br />     if getPlayerItemCount(cid,13685) &gt;= rubys and getPlayerItemCount(cid,2804) &gt;= dmspirits and getPlayerItemCount(cid,2798) &gt;= shessences then<br />         selfSay('Welcome new god!')<br />         doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.")<br />            <br />         health = getPlayerMaxHealth(cid)<br />         mana = getPlayerMaxMana(cid)<br />                 doResetLevel(cid)<br />         setPlayerMaxHealth(cid, (health/10)*(vezes+1))<br />         doPlayerAddHealth(cid,(health/10)*(vezes+1))<br />         setPlayerMaxMana(cid, (mana/15)*(vezes+1))<br />         doPlayerAddMana(cid,(mana/15)*(vezes+1))<br />                 setPlayerMaxCapacity(cid,360)<br />         doPlayerAddMagicLevel(cid,1)<br />         doPlayerAddSkill(cid,4,10) <br />         doPlayerAddSkill(cid,5,10) <br />           doSendMagicEffect(getPlayerPosition(cid),12)<br />         doPlayerAddResets(cid,1)<br />         doPlayerRemoveItem(cid,13685,rubys)<br />         doPlayerRemoveItem(cid,2804,dmspirits)<br />         doPlayerRemoveItem(cid,2798,shessences)<br />                 addEvent(Kick, 1*2000,cid)<br />                 setPlayerStorageValue(cid, exhaustedstorage, os.time() + 1) ------------ tempo reset segundos <br />         talk_state = 0<br />         else<br />         selfSay('Você não trouxe o que eu pedi...')<br />         talk_state = 0<br />         end<br />         else<br />         selfSay('Volte aqui quando estiver mais forte, jovem aprendiz.')<br />         talk_state = 0<br />         end<br />     end<br />         if getPlayerVocation(cid) == 16 then<br />         if getPlayerLevel(cid) &gt;= 500 then<br />     if getPlayerItemCount(cid,13685) &gt;= rubys and getPlayerItemCount(cid,2804) &gt;= dmspirits and getPlayerItemCount(cid,2798) &gt;= shessences then<br />         selfSay('Welcome new god!')<br />         doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.")<br />         health = getPlayerMaxHealth(cid)<br />         mana = getPlayerMaxMana(cid)<br />                 doResetLevel(cid)<br />         setPlayerMaxHealth(cid, (health/10)*(vezes+1))<br />         doPlayerAddHealth(cid,(health/10)*(vezes+1))<br />         setPlayerMaxMana(cid, (mana/15)*(vezes+1))<br />         doPlayerAddMana(cid,(mana/15)*(vezes+1))<br />                 setPlayerMaxCapacity(cid,360)<br />         doPlayerAddSkill(cid,0,10) <br />         doPlayerAddSkill(cid,1,10) <br />         doPlayerAddSkill(cid,2,10) <br />         doPlayerAddSkill(cid,3,10) <br />         doPlayerAddSkill(cid,5,10) <br />           doSendMagicEffect(getPlayerPosition(cid),12)<br />         doPlayerAddResets(cid,1)<br />         doPlayerRemoveItem(cid,13685,rubys)<br />         doPlayerRemoveItem(cid,2804,dmspirits)<br />         doPlayerRemoveItem(cid,2798,shessences)<br />                 addEvent(Kick, 1*2000,cid)<br />                 setPlayerStorageValue(cid, exhaustedstorage, os.time() + 1) ------------ tempo reset segundos <br />         talk_state = 0<br />         else<br />         selfSay('Você não trouxe o que eu pedi...')<br />         talk_state = 0<br />         end<br />         else<br />         selfSay('Volte aqui quando estiver mais forte, jovem aprendiz.')<br />         talk_state = 0<br />         end<br />     end </p> <p>     if getResets(cid) &lt;= 0 and getPlayerVocation(cid) &gt;= 13 and getPlayerLevel(cid) &gt;= 500 then<br />         setPlayerStorageValue(cid,7777,1)<br />     end<br />     <br />         if getPlayerVocation(cid) &gt;= 9 and getPlayerVocation(cid) &lt; 13 then    -- semis<br />     if getPlayerItemCount(cid,6500) &gt;= 100 then<br />         selfSay('Oh! Now you are a god!') </p> <p>             if getPlayerVocation(cid) &gt;= 9 and getPlayerVocation(cid) &lt; 11 then<br />         doPlayerAddMagicLevel(cid,5)<br />                 setPlayerMaxCapacity(cid,360)<br />         end<br />             if getPlayerVocation(cid) == 11 then<br />         doPlayerAddMagicLevel(cid,1)<br />         doPlayerAddSkill(cid,4,5)<br />         doPlayerAddSkill(cid,5,5)<br />                 setPlayerMaxCapacity(cid,360)<br />         end<br />             if getPlayerVocation(cid) == 12 then<br />                 doPlayerAddSkill(cid,0,5)<br />                 doPlayerAddSkill(cid,1,5)<br />                 doPlayerAddSkill(cid,2,5)<br />                 doPlayerAddSkill(cid,3,5)<br />                 doPlayerAddSkill(cid,5,5)<br />                 setPlayerMaxCapacity(cid,360)<br />         end </p> <p>         doPlayerSendTextMessage(cid,22,"Você evoluiu seu espírito a Deus.")<br />                 doResetLevel(cid)<br />         setPlayerMaxHealth(cid,185)<br />         doPlayerAddHealth(cid,185)<br />         setPlayerMaxMana(cid,35)<br />         doPlayerAddMana(cid,35)<br />         doPlayerSetVocation(cid, getPlayerVocation(cid)+4)<br />           doSendMagicEffect(getPlayerPosition(cid),12)<br />         doPlayerRemoveItem(cid,6500,100)<br />                 addEvent(Kick, 1*2000,cid)<br />         talk_state = 0 </p> <p>         else<br />         selfSay('Sorry, but you dont have the 100 demoniac essense!')<br />         talk_state = 0<br />         end<br />     end </p> <p>         else<br />         selfSay('Sorry, but only gods i can do that!')<br />         talk_state = 0<br />         end<br />         else<br />         selfSay('Volte aqui quando estiver mais forte, jovem aprendiz.')<br />         talk_state = 0<br />         end<br />         else<br />         selfSay('Sorry but only can reset a god premmy.')<br />         talk_state = 0<br />         end </p> <p>         end<br />         --end </p> <p> ------------------------------------------------ confirm no ------------------------------------------------<br />         elseif msgcontains(msg, 'no') and (talk_state &gt;= 1 and talk_state &lt;= 34) then<br />             selfSay('Ok than.')<br />             talk_state = 0<br />         end<br />     -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.<br />     return true<br /> end </p> <p> function teste(cid) </p> <p> end </p> <p> npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)<br /> npcHandler:addModule(FocusModule:new()) </p>
Stamina Potionpassu respondeu ao tópico de srkapetinha em Scripts
papamix reagiu a uma resposta no tópico: Mapa Dragon Souls Este E Full Mesmo
Sistema De Resetpassu respondeu ao tópico de vitimdumau em Scripts
[Fechado]passu respondeu ao tópico de passu em Lixeira Pública
passuOi