Ir para conteúdo

anderson127

Campones
  • Total de itens

    41
  • Registro em

  • Última visita

Posts postados por anderson127

  1. e aquele npc ali em cima
     

    local keywordHandler = KeywordHandler:new()
    local npcHandler = NpcHandler:new(keywordHandler)
    NpcSystem.parseParameters(npcHandler)
    local talkState = {}
    
    function doBuyPokemonWithCasinoCoins(cid, poke) npcHandler:onSellpokemon(cid) end
    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 getPlayerAllTowerItens(cid)
    	if getPlayerItemCount(cid, 12163) >= 1000 and getPlayerItemCount(cid, 12161) >= 1000 and getPlayerItemCount(cid, 19500) >= 1500 and getPlayerItemCount(cid, 19501) >= 2000 and getPlayerItemCount(cid, 19540) >= 200 and getPlayerItemCount(cid, 15092) >= 100 and getPlayerItemCount(cid, 15098) >= 100 and getPlayerItemCount(cid, 15094) >= 100 and getPlayerItemCount(cid, 19536) >= 50 then
    		return true
    	end
    	return false
    end
    
    function doRemoveItensTower(cid)
    	doPlayerRemoveItem(cid, 12163, 1000)
    	doPlayerRemoveItem(cid, 12161, 1000)
    	doPlayerRemoveItem(cid, 19500, 1500)
    	doPlayerRemoveItem(cid, 19501, 2000)
    	doPlayerRemoveItem(cid, 19540, 200)
    	doPlayerRemoveItem(cid, 15092, 100)
    	doPlayerRemoveItem(cid, 15098, 100)
    	doPlayerRemoveItem(cid, 15094, 100)
    	doPlayerRemoveItem(cid, 19536, 50)
    	return true
    end
    
    function creatureSayCallback(cid, type, msg)
    
    if(not npcHandler:isFocused(cid)) then
    return false
    end
    
    if (msgcontains(msg, 'Embedded Tower') or msgcontains(msg, 'embedded tower')) then
    
    	if getPlayerStorageValue(cid, 509001) >= 1 then
    		selfSay("Não preciso mais de sua ajuda, você agora pode explorar a Embedded Tower!")	
    		return true
    	end
    
    	if getPlayerStorageValue(cid, 659875) == -1 then 
    		 selfSay("Antes de tudo preciso checar se eis forte o suficiente para poder entrar lá, você poderia trazer-me {50x Giant Ruby}, {100x Sharpe Leave}, {100x Pawn}, {100x Crimson Feather}, {200x Linearly Guided Hypnosis}, {2000x enchanted gem}, {2000x Rubber Ball}, {1500x Earth Ball}, {1000x Seed}, {1000x water gem}?", cid)
    		 talkState[cid] = 1
    	else
    		 selfSay("Você já fez seus pedidos?", cid)
    		 talkState[cid] = 2
    	end
    
    elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[cid] == 1 and getPlayerStorageValue(cid, 659875) == -1 then
    
    	  if getPlayerAllTowerItens(cid) then
    	
    		doRemoveItensTower(cid)
    		selfSay("É dito uma lenda à qual a antiga civilização pokémon adorava 3 grandes deuses que trariam prosperidade, hoje são representado-os pelas {Pedra Sagrada da Floresta}, {Pedra Sagrada da Terra} e a {Pedra Sagrada do Mar}, volte quando feito seus {pedidos}!", cid)
    		setPlayerStorageValue(cid, 659875, 1)
    	  
    	  else
    	 
             selfSay("Lembre-se, os itens são {50x Giant Ruby}, {100x Sharpe Leave}, {100x Pawn}, {100x Crimson Feather}, {200x Linearly Guided Hypnosis}, {2000x enchanted gem}, {2000x Rubber Ball}, {1500x Earth Ball}, {1000x Seed}, {1000x water gem}...", cid)
             talkState[cid] = 0
             return true
          end
       
    elseif msgcontains(msg, 'pedidos') and getPlayerStorageValue(cid, 659875) == 1 then
           selfSay("Você já fez seus pedidos?", cid)
           talkState[cid] = 2
           
    elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[cid] == 2 and getPlayerStorageValue(cid, 659875) == 1 then
    
    		if getPlayerStorageValue(cid, 60900) >= 1 and getPlayerStorageValue(cid, 60901) >= 1 and getPlayerStorageValue(cid, 60902) >= 1 then
    			setPlayerStorageValue(cid, 509001, 1)
    			setPlayerStorageValue(cid, 78501, 1)
    			selfSay("Pronto agora você pode acessar a tower!", cid)
    			talkState[talkUser] = 0		
    		else
    			selfSay("Você não fez seus pedidos às 3x pedras sagradas;", cid)
    			talkState[talkUser] = 0	
    		end
        
    elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) then
         selfSay("So good bye...", cid)
         talkState[cid] = 0
         return false 
    end
    
    end
    npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
    npcHandler:addModule(FocusModule:new())
  2. local keywordHandler = KeywordHandler:new()
    local npcHandler = NpcHandler:new(keywordHandler)
    NpcSystem.parseParameters(npcHandler)
    local talkState = {}
    
    function doBuyPokemonWithCasinoCoins(cid, poke) npcHandler:onSellpokemon(cid) end
    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 getPlayerAllTowerItens(cid)
    	if getPlayerItemCount(cid, 12163) >= 1000 and getPlayerItemCount(cid, 12161) >= 1000 and getPlayerItemCount(cid, 19500) >= 1500 and getPlayerItemCount(cid, 19501) >= 2000 and getPlayerItemCount(cid, 19540) >= 200 and getPlayerItemCount(cid, 15092) >= 100 and getPlayerItemCount(cid, 15098) >= 100 and getPlayerItemCount(cid, 15094) >= 100 and getPlayerItemCount(cid, 19536) >= 50 then
    		return true
    	end
    	return false
    end
    
    function doRemoveItensTower(cid)
    	doPlayerRemoveItem(cid, 12163, 1000)
    	doPlayerRemoveItem(cid, 12161, 1000)
    	doPlayerRemoveItem(cid, 19500, 1500)
    	doPlayerRemoveItem(cid, 19501, 2000)
    	doPlayerRemoveItem(cid, 19540, 200)
    	doPlayerRemoveItem(cid, 15092, 100)
    	doPlayerRemoveItem(cid, 15098, 100)
    	doPlayerRemoveItem(cid, 15094, 100)
    	doPlayerRemoveItem(cid, 19536, 50)
    	return true
    end
    
    function creatureSayCallback(cid, type, msg)
    
    if(not npcHandler:isFocused(cid)) then
    return false
    end
    
    if (msgcontains(msg, 'Embedded Tower') or msgcontains(msg, 'embedded tower')) then
    
    	if getPlayerStorageValue(cid, 509001) >= 1 then
    		selfSay("Não preciso mais de sua ajuda, você agora pode explorar a Embedded Tower!")	
    		return true
    	end
    
    	if getPlayerStorageValue(cid, 659875) == -1 then 
    		 selfSay("Antes de tudo preciso checar se eis forte o suficiente para poder entrar lá, você poderia trazer-me {50x Giant Ruby}, {100x Sharpe Leave}, {100x Pawn}, {100x Crimson Feather}, {200x Linearly Guided Hypnosis}, {2000x enchanted gem}, {2000x Rubber Ball}, {1500x Earth Ball}, {1000x Seed}, {1000x water gem}?", cid)
    		 talkState[cid] = 1
    	else
    		 selfSay("Você já fez seus pedidos?", cid)
    		 talkState[cid] = 2
    	end
    
    elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[cid] == 1 and getPlayerStorageValue(cid, 659875) == -1 then
    
    	  if getPlayerAllTowerItens(cid) then
    	
    		doRemoveItensTower(cid)
    		selfSay("É dito uma lenda à qual a antiga civilização pokémon adorava 3 grandes deuses que trariam prosperidade, hoje são representado-os pelas {Pedra Sagrada da Floresta}, {Pedra Sagrada da Terra} e a {Pedra Sagrada do Mar}, volte quando feito seus {pedidos}!", cid)
    		setPlayerStorageValue(cid, 659875, 1)
    	  
    	  else
    	 
             selfSay("Lembre-se, os itens são {50x Giant Ruby}, {100x Sharpe Leave}, {100x Pawn}, {100x Crimson Feather}, {200x Linearly Guided Hypnosis}, {2000x enchanted gem}, {2000x Rubber Ball}, {1500x Earth Ball}, {1000x Seed}, {1000x water gem}...", cid)
             talkState[cid] = 0
             return true
          end
       
    elseif msgcontains(msg, 'pedidos') and getPlayerStorageValue(cid, 659875) == 1 then
           selfSay("Você já fez seus pedidos?", cid)
           talkState[cid] = 2
           
    elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[cid] == 2 and getPlayerStorageValue(cid, 659875) == 1 then
    
    		if getPlayerStorageValue(cid, 60900) >= 1 and getPlayerStorageValue(cid, 60901) >= 1 and getPlayerStorageValue(cid, 60902) >= 1 then
    			setPlayerStorageValue(cid, 509001, 1)
    			setPlayerStorageValue(cid, 78501, 1)
    			selfSay("Pronto agora você pode acessar a tower!", cid)
    			talkState[talkUser] = 0		
    		else
    			selfSay("Você não fez seus pedidos às 3x pedras sagradas;", cid)
    			talkState[talkUser] = 0	
    		end
        
    elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) then
         selfSay("So good bye...", cid)
         talkState[cid] = 0
         return false 
    end
    
    end
    npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
    npcHandler:addModule(FocusModule:new())

    tipo ai eu tenho que adicionar apenas essa funçao que vc falou ou refazer todos os npc mesmo?

  3. 		local boostlevel = getItemAttribute(getPlayerSlotItem(getCreatureMaster(thing.uid), 8).uid, "boost") or 0
    		local isDittoBall = isInArray({"Ditto", "Shiny Ditto"}, getItemAttribute(getPlayerSlotItem(getCreatureMaster(thing.uid), 8).uid, "poke")) and true or false
    		if getCreatureMaster(thing.uid) == cid then
    			local myball = getPlayerSlotItem(cid, 8).uid
    			table.insert(str, "You see your "..doCorrectString(getCreatureName(thing.uid)).. (isDittoBall and " (Ditto)" or "") ..".\n")
    			if boostlevel > 0 then
    				table.insert(str, "\nBoost level: +"..boostlevel..".")
    			end
    			if isGod(cid) then
    				table.insert(str, "Hit Points: "..getCreatureHealth(thing.uid).." / "..getCreatureMaxHealth(thing.uid)..".\n")
    				table.insert(str, "Looktype: ".. getCreatureOutfit(thing.uid).lookType ..".")
    			end 
    			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str))
    		else
    			local health = "\nHit points: "..getCreatureHealth(thing.uid).."/"..getCreatureMaxHealth(thing.uid).."."
    			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..doCorrectString(getCreatureName(thing.uid)).. (isDittoBall and " (Ditto)" or "") ..".\nIt belongs to "..getCreatureName(getCreatureMaster(thing.uid)).."." .. (isGod(cid) and health .. "\nLooktype: ".. getCreatureOutfit(thing.uid).lookType .."." or "") )
    			local houseId = getHouseFromPos(position)
    			if houseId and getItemNameById(thing.itemid):find("door") then
    
       if getHouseOwner(houseId) ~= 0 then
          house_owner = getPlayerNameByGUID(getHouseOwner(houseId))
       else
          house_owner = "Nobody"
       end
    
       house_name = getHouseName(houseId)
       house_town = getTownName(getHouseTown(houseId))
       house_size = getHouseTilesCount(houseId)
       house_price = getHousePrice(houseId)
       
       local house_information = string.format("house_data|%s|%s|%s|%u|%u", house_name, house_owner, house_town, house_size, house_price)
       return doSendPlayerExtendedOpcode(cid, 199, house_information) and false
    else
    		end
    		return false
    	end
    	return true
    end

    o meu deu erro pode me dizer oq tem de errado?

  4. •Catch Exp System.

     

    •Task Daily System.

     

    •Task Catch Daily System.

     

    • Auto Stacking System.

     

    • Player passa por dentro de outros Players(Não sei o nome deste sistema kk).

     

    • Player pode usar potions, revive, soltar poke andando sem parar.

     

    • Varias Pokeballs novas.

     

    • Task System.

     

    tem tudo no pokemasterx e base dxp entao da para vc retirar dela

  5. desculpa perguntar estou querendo aprender fazer modulos e eu tenho 1 de outro ot client com source e tudo gostaria de colocar ele em outro otc mais n estou conseguindo poderia me dizer se tenho que adicionar algo na source do otclient para que funcione algum modulo novo?

  6. [attachment=16821:digi (1).png][attachment=16822:digi (2).png][attachment=16823:digi (3).png][attachment=16824:digi (4).png][attachment=16825:digi (5).png][attachment=16826:digi (6).png][attachment=16827:digi (7).png][attachment=16828:digi (8).png][attachment=16829:digi (9).png][attachment=16830:digi (10).png][attachment=16831:digi (11).png][attachment=16832:digi (12).png]

    esses sao os digimon que eu n sei os nome e pq tem tantos drimogemon colorido e ogreimon tbm

    post-353696-0-68522600-1387463315_thumb.png

    post-353696-0-10097900-1387463324_thumb.png

    post-353696-0-76284600-1387463351_thumb.png

    post-353696-0-99640700-1387463357_thumb.png

    post-353696-0-12033400-1387463364_thumb.png

    post-353696-0-15880000-1387463370_thumb.png

    post-353696-0-18840300-1387463376_thumb.png

    post-353696-0-10123600-1387463382_thumb.png

    post-353696-0-30850400-1387463396_thumb.png

    post-353696-0-84277300-1387463419_thumb.png

    post-353696-0-35342000-1387463426_thumb.png

    post-353696-0-95519900-1387463432_thumb.png

  7. oi boa noite primeiro de td.

    eu queria saber o nome de todos os digimons que tem no serve ali na seção de download de servidores derivados pq eu estou criando um serve mais tem digimon que eu n conheço e n consgiguo reconhecer e com os nomes vo preucurar as foto pra saber quais sao pra quem me ajudar rep ++++ sabendo o nome td fica mais facil

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...