Ir para conteúdo

Noob II

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Curtir
    Noob II recebeu reputação de NyckDragon em [Pedido] Level System Poketibia   
    Olha ai > 
     
  2. Gostei
    Noob II recebeu reputação de jacksonsns em Adicionar Storage e remover outra Storage   
    setPlayerStorageValue(cid, STORAGE, -1) Essa é a função de remover storage, não sei se é só isso que você quer 
  3. Gostei
    Noob II recebeu reputação de Sentsuizan em habilitar pvp system   
    vai em data/lib/050-function.lua e verifica se tem isso dentro se não tiver adiciona:

    function getTileZoneInfo(pos) local tmp = getTileInfo(pos) if(tmp.pvp) then return 2 end if(tmp.nopvp) then return 1 end return 0 end
     
    Depois vai em data/lib/somefunctions.lua e procura por essa função:

    function canAttackOther(cid, pid)
    abaixo disso: 

    local master2 = isSummon(pid) and getCreatureMaster(pid) or pid
    coloca isso:

    if getTileInfo(getThingPos(cid)).pvp then return "Can" end
  4. Obrigado
    Noob II recebeu reputação de ftsystem em BUG NA DISTRO - Unknown event name   
    Isso é uma tag em algum xml dos pokémons do seu servidor, abra o notepad++, aperte ctrl+f e clique na aba localizar em arquivos, em localizar você coloca a palavra removewall3 e em pasta você seleciona a do seu servidor e só apertar em localizar todos agora
     
     
     
    dps que achar você dar duplo clique na linha e remove. 
  5. Curtir
    Noob II recebeu reputação de edumasterrrr em [Pedido] Level System Poketibia   
    Olha ai > 
     
  6. Gostei
    Noob II recebeu reputação de gacjogos em (Resolvido)script de livro   
    Crie um arquivo chamado Livro.lua na pasta data/actions/scripts e coloca isso:
     

    function onUse(cid, item, frompos, item2, topos)     doPlayerPopupFYI(cid, 'Coloque aqui\nOs Horarios.')      return TRUE end
     
    no actions.xml adicione essa tag com o ID do livro:
     

    <action itemid="1950" event="script" value="Livro.lua"/>
     
    Use \n para pular uma linha 
  7. Gostei
    Noob II recebeu reputação de Dornellas em [ME AJUDE] Systema de Held OTC   
    Troque o script por esse ai:
     


     
    Esse script original do servidor está cheio de gambiarra junto com o MOD!
    Ai alterei ele quase todo para funcionar normal, teste ai
  8. Gostei
    Noob II recebeu reputação de Eduardo1534 em [Ajuda]Piso que teleporta   
    Só passa no tile se usa x item 
     

    local pos = {x = 1226, y = 800, z = 7} local itemid = 8978 -- ID do item  function onStepIn(cid, item, position, fromPosition) if getPlayerItemCount(cid,itemid) >= 1 then if getPlayerAccess(cid) then doTeleportThing(cid, pos)  doSendMagicEffect(getThingPos(cid), 37) end return true end end
     
    Se quiser que o item seja removido só adicionar essa linha no script
     

    doPlayerRemoveItem(cid, itemid, 1)
  9. Gostei
    Noob II deu reputação a Golf em Tutorial Mod OtClient   
    Olá, amigos esta muito tempo parado e sem tempo para meche no meu otserv por isso esto liberando um sistema meu de tutorial client.
     
    Oque ele faz, ele abre uma janela com menus e seus texto para ajudar os player a ter uma boa jogabilidade ao o game.
    -versão:todas
    Opcodes: Nao precisa de opcodes, roda em qual quer versão otclient.
     
    1- abra a pasta do otclient>mods>game_tutorial.zip
    2- abra a pasta do otclient>mods>game_tutorial>configs.lua
    2.1 em configs.lua voce vai configura todo os text que a no seu tutorial.
     
    3- Menu texto
    tutorialsIndex = { "1. Exp", "2. Exp", "3. Exp" } 4- oque a no menu texto
    }, {name = "1.2 Exp", text = [[EXP: - EXP - HEXP - EXP - EXP Tibia King:100 ]] }, {name = "1.3 Exp", text = [[EXP: - EXP - HEXP - EXP - EXP Tibia King:100 ]] } } Se gosto mais rep.
     



  10. Gostei
    Noob II deu reputação a moskitinho em Sign Pain Ningendo   
    Fala camaradas,
     
    Só pra não ficar parado fiz uma sign aqui de um dos Pain, o caminho dos homens.
     
    Na sign foram usados: Stock, Motion Blur, Pixelate, Displace, Splatter Brush, C4D e alguns Gradients para tratar a imagem e no final o Sharpen nosso de cada dia.
     

     
    MSK @ http://orig11.deviantart.net/adad/f/2017/052/0/c/pain_ningendo_by_msk_by_msklotz-dazxv1j.png  
  11. Gostei
    Noob II deu reputação a Vodkart em [8.6][MODS] AutoLoot By Account! [+Item]   
    Sistema removido.
     
     
    Nova versão sem Bugs somente no Discord: vodkart#6090
  12. Gostei
    Noob II deu reputação a Sekk em Ideias para criar eventos/sistemas   
    Eu particularmente não sei absolutamente nada sobre derivados kkk nem suas funções... Já o Vodka.. quem sabe, da a ideia que veremos
  13. Gostei
    Noob II deu reputação a moskitinho em Sign Jolie 2017   
    Olá galera 
     
    Quem é vivo sempre aparece... E nada como voltar tentando fazer arte... Estou muito mas muuuuito enferrujado... Sem definição de estilo, mas tentei fazer o que lembrava e estava ao meu alcance. Vou ser se leio uns tutoriais por ai pra ver se sai um job bom mesmo, mas é a Angelina né guys... 
     

     
    LINK: http://orig12.deviantart.net/443c/f/2017/049/6/8/sign_jolie_2017_by_msklotz-dazhh4p.png  
  14. Gostei
    Noob II recebeu reputação de PedroSTT em Suporte em relação a WebSite   
    1° Você sabe que quando pegar outros layouts e trocar pelo antigo irar ter que alterar o diretorio da pasta no config.php tbm né?
     
    2° Se quiser pode editar tbm, mas se alterar o nome ou algo do tipo tbm terá que alterar em outros arquivos 
     
    3° adicione essa lá e testa > captcha.rar
  15. Gostei
    Noob II deu reputação a Sekk em Sistema de dar item por comando   
    talkactions/scripts/giveitem.lua
    function onSay(cid, words, param) local param = param.explode(param, ',') if param then if isPlayer(getCreatureByName(param[1])) == TRUE then doPlayerSendTextMessage(getCreatureByName(param[1]), 22, "Você acabou de receber um item!") doPlayerAddItem(getCreatureByName(param[1]), param[2], param[3]) end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") end return TRUE end talkaction.xml
    <talkaction log="yes" access="5" words="/giveitem" event="script" value="giveitem.lua"/>  
     
    /giveitem PLAYER, ID ITEM, QUANTIA
  16. Gostei
    Noob II deu reputação a Vodkart em [MODS] - [8.6] Perfect Zombie System [Automático] [V1.0]   
    Qual dúvida ou erro poste no tópico que estarei respondendo.
     
     
    Obs: Antes que me falem besteiras, coloquei para os GM'S, CM'S E GOD'S não contarem no evento, então testem apenas com jogadores.
     
    Zombie.xml
    <?xml version="1.0" encoding="ISO-8859-1"?> <mod name="Perfect Zombie System" version="8.6" author="Vodkart" contact="tibiaking.com" enabled="yes"> <config name="zombie_config"><![CDATA[ zombie_config = { storages = {172100, 172101, 172102}, -- n edite players = {min = 2, max = 30}, -- min, max players no evento rewards = {items ={{2160,10},{2494,1}}, trophy = 5805}, timeToStartEvent = 30, -- segundos para começar o evento CheckTime = 5, -- tempo que o TP fica aberto para os jogadores adrentarem o evento teleport = {{x=147, y=55, z=7}, {x=125 , y=304, z=7}}, -- position do tp onde aparece, position para onde o jogador vai ao entrar no tp arena = {{x=110,y=297,z=7},{x=145,y=321,z=7}}, -- area positions monster_name = "Zombie Event", timeBetweenSpawns = 20, min_Level = 20 } zombie_days = { ["Monday"] = {"13:00","18:00","20:00","22:00"}, ["Tuesday"] = {"13:00","18:00","22:50","22:00"}, ["Wednesday"] = {"21:57","18:00","20:00","23:17"}, ["Thursday"] = {"13:00","18:00","20:00","22:00"}, ["Friday"] = {"13:00","18:00","21:45","22:00"}, ["Saturday"] = {"13:00","18:00","20:00","22:00"}, ["Sunday"] = {"13:00","18:00","20:00","22:00"} } function removeZombieTp() local t = getTileItemById(zombie_config.teleport[1], 1387).uid return t > 0 and doRemoveItem(t) and doSendMagicEffect(zombie_config.teleport[1], CONST_ME_POFF) end function ZerarStoragesZombie() for _, stor in pairs(zombie_config.storages) do setGlobalStorageValue(stor, 0) end end function getPlayersInZombieEvent() local t = {} for _, pid in pairs(getPlayersOnline()) do if isInRange(getPlayerPosition(pid), zombie_config.arena[1], zombie_config.arena[2]) and getPlayerAccess(pid) < 3 then t[#t+1] = pid end end return t end function getZombieRewards(cid, items) local backpack = doPlayerAddItem(cid, 1999, 1) -- backpackID for _, i_i in ipairs(items) do local item, amount = i_i[1],i_i[2] if isItemStackable(item) or amount == 1 then doAddContainerItem(backpack, item, amount) else for i = 1, amount do doAddContainerItem(backpack, item, 1) end end end end function isWalkable(pos, creature, proj, pz)-- by Nord if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function HaveCreatureZombie(area, remove) for x = area[1].x - 1, area[2].x + 1 do for y = area[1].y - 1, area[2].y + 1 do local pos = {x=x, y=y, z=area[1].z} local m = getTopCreature(pos).uid if remove ~= false and m ~= 0 and isMonster(m) then doRemoveCreature(m) end end end end function spawnZombie() if #getPlayersInZombieEvent() > 1 then local pos = {x=math.random(zombie_config.arena[1].x, zombie_config.arena[2].x), y=math.random(zombie_config.arena[1].y,zombie_config.arena[2].y), z=zombie_config.arena[1].z} if not isWalkable(pos, false, false, false) then spawnZombie() else doSummonCreature(zombie_config.monster_name, pos) doSendDistanceShoot({x = pos.x - math.random(4, 6), y = pos.y - 5, z = pos.z}, pos, CONST_ANI_FIRE) addEvent(doSendMagicEffect, 150, pos, CONST_ME_HITBYFIRE) addEvent(doSendMagicEffect, 150, pos, CONST_ME_FIREAREA) doSendMagicEffect(pos, CONST_ME_MORTAREA) setGlobalStorageValue(zombie_config.storages[2], getGlobalStorageValue(zombie_config.storages[2]) <= 0 and 1 or getGlobalStorageValue(zombie_config.storages[2])+1) doBroadcastMessage("A zombie has spawned! There is currently " .. getGlobalStorageValue(zombie_config.storages[2]) .. " zombies in the zombie event!", MESSAGE_STATUS_CONSOLE_RED) addEvent(spawnZombie, zombie_config.timeBetweenSpawns *1000) end end end function CheckZombieEvent(delay) if getGlobalStorageValue(zombie_config.storages[1]) ~= (zombie_config.players.max+1) then if delay > 0 and getGlobalStorageValue(zombie_config.storages[1]) < zombie_config.players.max then doBroadcastMessage("Zombie event starting in " .. delay .. " minutes! The teleport will be closed when the event start!", MESSAGE_STATUS_WARNING) elseif delay == 0 and getGlobalStorageValue(zombie_config.storages[1]) < zombie_config.players.min then for _, cid in pairs(getPlayersInZombieEvent()) do doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) end removeZombieTp() doBroadcastMessage("The Zombie event could not start because of to few players participating.\n At least " .. zombie_config.players.min .. " players is needed!", MESSAGE_STATUS_WARNING) ZerarStoragesZombie() elseif delay == 0 and getGlobalStorageValue(zombie_config.storages[1]) >= zombie_config.players.min then removeZombieTp() doBroadcastMessage("The Zombie event is now full [" .. getGlobalStorageValue(zombie_config.storages[1]) .. " players]! The event will soon start.") for _, var in pairs(getPlayersInZombieEvent()) do doPlayerSendTextMessage(var, MESSAGE_EVENT_ADVANCE, "The first zombie will spawn in " .. zombie_config.timeToStartEvent .. " seconds! Good luck!") end addEvent(spawnZombie, zombie_config.timeToStartEvent*1000) end addEvent(CheckZombieEvent, 60000, delay-1) end end]]></config> <event type="statschange" name="ZombieStats" event="script"><![CDATA[ domodlib('zombie_config') if isPlayer(cid) and isMonster(attacker) and getCreatureName(attacker) == zombie_config.monster_name then if isInRange(getPlayerPosition(cid), zombie_config.arena[1], zombie_config.arena[2]) then if #getPlayersInZombieEvent() > 1 then doBroadcastMessage(getPlayerName(cid) .. " have been eated by Zombies!", MESSAGE_STATUS_CONSOLE_RED) local corpse = doCreateItem(getPlayerSex(cid) == 1 and 3058 or 6081, 1, getPlayerPosition(cid)) doItemSetAttribute(corpse, "description", "You recognize " .. getCreatureName(cid) .. ". He was killed by "..(isMonster(attacker) and "a "..string.lower(getCreatureName(attacker)) or isCreature(attacker) and getCreatureName(attacker) or "a field item")..".") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), false) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) if #getPlayersInZombieEvent() == 1 then local winner = getPlayersInZombieEvent()[1] doBroadcastMessage(getCreatureName(winner)..' has survived at zombie event!') local goblet = doPlayerAddItem(winner, zombie_config.rewards.trophy, 1) doItemSetAttribute(goblet, "description", "Awarded to " .. getPlayerName(winner) .. " for winning the Zombie event.") getZombieRewards(winner, zombie_config.rewards.items) doTeleportThing(winner, getTownTemplePosition(getPlayerTown(winner)), false) doSendMagicEffect(getPlayerPosition(winner), CONST_ME_TELEPORT) doBroadcastMessage(getPlayerName(winner).." won the Zombie event! Congratulations!") HaveCreatureZombie(zombie_config.arena, true) ZerarStoragesZombie() end else doBroadcastMessage("No one survived in the Zombie Event.", MESSAGE_EVENT_ADVANCE) HaveCreatureZombie(zombie_config.arena, true) ZerarStoragesZombie() end return false end end return true]]></event> <globalevent name="Zombie_Start" interval="60000" event="script"><![CDATA[ domodlib('zombie_config') function onThink(interval, lastExecution) if zombie_days[os.date("%A")] then local hrs = tostring(os.date("%X")):sub(1, 5) if isInArray(zombie_days[os.date("%A")], hrs) and getGlobalStorageValue(zombie_config.storages[3]) <= 0 then local tp = doCreateItem(1387, 1, zombie_config.teleport[1]) doItemSetAttribute(tp, "aid", 45110) CheckZombieEvent(zombie_config.CheckTime) setGlobalStorageValue(zombie_config.storages[1], 0) setGlobalStorageValue(zombie_config.storages[2], 0) HaveCreatureZombie(zombie_config.arena, true) end end return true end]]></globalevent> <event type="login" name="Zombie_Login" event="script"><![CDATA[ domodlib('zombie_config') function onLogin(cid) registerCreatureEvent(cid, "ZombieBattle") registerCreatureEvent(cid, "ZombieStats") if isInRange(getPlayerPosition(cid), zombie_config.arena[1], zombie_config.arena[2]) then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) end return true end]]></event> <event type="combat" name="ZombieBattle" event="script"><![CDATA[ domodlib('zombie_config') if isPlayer(cid) and isPlayer(target) and isInRange(getPlayerPosition(cid), zombie_config.arena[1], zombie_config.arena[2]) then doPlayerSendCancel(cid, "You may not attack this player.") return false end return true ]]></event> <movevent type="StepIn" actionid ="45110" event="script"><![CDATA[ domodlib('zombie_config') function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end if getPlayerAccess(cid) > 3 then return doTeleportThing(cid, zombie_config.teleport[2]) end if getPlayerLevel(cid) < zombie_config.min_Level then doTeleportThing(cid, fromPosition, true) doPlayerSendCancel(cid, "You need to be at least level " .. zombie_config.min_Level .. ".") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end if getGlobalStorageValue(zombie_config.storages[1]) <= zombie_config.players.max then doTeleportThing(cid, zombie_config.teleport[2]) setGlobalStorageValue(zombie_config.storages[1], getGlobalStorageValue(zombie_config.storages[1])+1) doBroadcastMessage(getPlayerName(cid) .. " entered the Zombie event! Currently " .. getGlobalStorageValue(zombie_config.storages[1]) .. " players have joined!", MESSAGE_STATUS_CONSOLE_RED) if getGlobalStorageValue(zombie_config.storages[1]) == zombie_config.players.max then setGlobalStorageValue(zombie_config.storages[1], getGlobalStorageValue(zombie_config.storages[1])+1) removeZombieTp() doBroadcastMessage("The Zombie event is now full [" .. getGlobalStorageValue(zombie_config.storages[1])-1 .. " players]! The event will soon start.") for _, var in pairs(getPlayersInZombieEvent()) do doPlayerSendTextMessage(var, MESSAGE_EVENT_ADVANCE, "The first zombie will spawn in " .. zombie_config.timeToStartEvent .. " seconds! Good luck!") end addEvent(spawnZombie, zombie_config.timeToStartEvent*1000) end end return true end]]></movevent> <talkaction words="/zombiestart;!zombiestart" access="5" event="buffer"><![CDATA[ domodlib('zombie_config') if getGlobalStorageValue(zombie_config.storages[3]) > 0 then doPlayerSendCancel(cid, "The event is already starting.") return true elseif not param or not tonumber(param) then doPlayerSendCancel(cid, "Use only numbers.") return true end local param = tonumber(param) <= 0 and 1 or tonumber(param) local tp = doCreateItem(1387, 1, zombie_config.teleport[1]) doItemSetAttribute(tp, "aid", 45110) CheckZombieEvent(tonumber(param)) ZerarStoragesZombie() setGlobalStorageValue(zombie_config.storages[3], 1) HaveCreatureZombie(zombie_config.arena, true) ]]></talkaction> <globalevent name="ZombieDebug-Start" type="start" event="buffer"><![CDATA[ domodlib('zombie_config') ZerarStoragesZombie() return true]]></globalevent> </mod>  
    OBS: Quem serve em milesegundos, mude essa parte:

     
    <globalevent name="Zombie_Start" interval="60" event="script"><![CDATA[  
     
    para
     
    <globalevent name="Zombie_Start" interval="60000" event="script"><![CDATA[  
     
     
    ----------------------------------------------------- // --------------------------------------------------
     
    o monstro você instala em data/monsters
     
    zombie event.xml
    <?xml version="1.0" encoding="UTF-8"?> <monster name="Zombie Event" nameDescription="an zombie event" race="undead" experience="280" speed="100" manacost="0"> <health now="500" max="500"/> <look type="311" corpse="9875"/> <targetchange interval="5000" chance="50"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="0"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" min="-35000" max="-35000"/> </attacks> <defenses armor="15" defense="10"/> <immunities> <immunity paralyze="1"/> <immunity invisible="1"/> </immunities> <voices interval="5000" chance="10"> <voice sentence="You wont last long!"/> <voice sentence="Mmmmh.. braains!"/> </voices> <loot> <item id="2148" countmax="1" chance="100000"/><!-- gold coin --> </loot> </monster>  
     
    e a tag em monsters.xml
    <monster name="Zombie Event" file="zombie event.xml"/>  
     Configuração 
     
     
     
     
    Sistema
     
    zombie_config = {
        storages = {172100, 172101}, -- não edite
        players = {min = 2, max = 30}, -- número minimo e máximo para jogadores no evento
        rewards = {items ={{2160,10},{2494,1}}, trophy = 5805}, -- premiações do jogador
        timeToStartEvent = 30, -- segundos para começar o evento após dar start
        CheckTime = 5, -- tempo que o TP fica aberto para os jogadores adrentarem o evento
        teleport = {{x=145, y=50, z=7}, {x=176 , y=54, z=5}}, -- posiçãodo tp onde aparece, posição para onde o jogador vai ao entrar no tp
        arena = {{x=173,y=52,z=5},{x=179,y=56,z=6}}, -- posição começo e final da area do evento
        monster_name = "Zombie Event", -- nome do monstro que será sumonado
        timeBetweenSpawns = 20, -- a cada quantos segundos é dado o respaw time do zombie no evento
        min_Level = 20 -- level minimo para participar do evento
    }
     
     
    Dia e Horário
     

    zombie_days = {
        ["Monday"] = {"13:00","18:00","20:00","22:00"},
        ["Tuesday"] = {"13:00","18:00","20:00","22:00"},
        ["Wednesday"] = {"13:00","18:00","20:00","22:00"},
        ["Thursday"] = {"13:00","18:00","20:00","22:00"},
        ["Friday"] = {"13:00","18:00","20:00","22:00"},
        ["Saturday"] = {"13:00","18:00","20:00","22:00"},
        ["Sunday"] = {"13:00","18:00","20:00","22:00"}
    }
     
     
    ["Dia em inglês"] = {"horário do evento"}
     
     
    Configurando a área:
     

     
    zombie lua.rar
  17. Gostei
    Noob II recebeu reputação de jp95ex em Duvida Relacionada A Script e Configuração   
    Não sei se dar para fazer isso por site (sou muito leigo), mas dar sim para ser por script, mas seria necessario nascer em x area e dps passar por um portal
  18. Gostei
    Noob II deu reputação a Absolute em DESIGN - FAÇA SEU PEDIDO   
    Olá caros amigos, eu não sou designer, mas estou aprendendo e quero brincar um pouco, não sou um designer avançado mas também não sou qualquer um photoscape huduhshusd.
    Então, estou abrindo esse tópico pra vocês solicitarem algum banner, background, logo ou o que for para que eu possa ajuda-los e aprender junto.
     
    O PEDIDO DEVE CONTER:
    Tema:
    Tamanho da imagem:
    Tipografia (escrito/nome do server):
     
    Só irei fazer as imagens caso indique esses 3 elementos citados acima.
    Bom, como disse as vezes posso agradá-los hehe.
    Vamos lá!
  19. Gostei
    Noob II deu reputação a DarkWore em [C++] Atribute isPokeball   
    Falaaa galeraaa, beleza? então, estou trazendo pra vocês aquela função do PDA a isPokeball que achei em outro fórum e vi que não tem aqui
    Bem, se você tá adaptando seu PDA com source, e deu erro no atributo isPokeball, após colocar essa função não irá mais dar erro.
     
    Vá em items.cpp procure por:
    decayTime = 0; e em baixo adicione:
    isPokeball = false; agora procure por:
    else if(tmpStrValue == "transformto") { if(readXMLInteger(itemAttributesNode, "value", intValue)) it.transformToFree = intValue; } abaixo do }, adicione:
    else if(tmpStrValue == "ispokeball") { it.weight = 1000; } agora em items.h procure por:
    Ammo_t ammoType; e em baixo adicione:
    bool isPokeball; Recompile. E puff, seu cap está igual o pda xd
    Lembrando que nas pokebolas deve ter o atributo. Como neste exemplo:
    <item id="xxxx" article="a" name="safarri ball"> <attribute key="ispokeball" value="1"/> <attribute key="weight" value="100" /> <attribute key="slotType" value="feet" /> </item>  
    Créditos
    Deadpool (por desenvolver e postar em outro fórum)
    Eu (por trazer ao fórum)
  20. Gostei
    Noob II deu reputação a Sekk em [Ajuda]Piso que teleporta   
    uahauahuh tendi vlw
  21. Gostei
    Noob II recebeu reputação de Sekk em [Ajuda]Piso que teleporta   
    Não sei e nem tinha reparado kk, só peguei o script do cara acima e adicionei a função para checar se o player tem o item 
  22. Gostei
    Noob II recebeu reputação de Sekk em [Ajuda]Piso que teleporta   
    Só passa no tile se usa x item 
     

    local pos = {x = 1226, y = 800, z = 7} local itemid = 8978 -- ID do item  function onStepIn(cid, item, position, fromPosition) if getPlayerItemCount(cid,itemid) >= 1 then if getPlayerAccess(cid) then doTeleportThing(cid, pos)  doSendMagicEffect(getThingPos(cid), 37) end return true end end
     
    Se quiser que o item seja removido só adicionar essa linha no script
     

    doPlayerRemoveItem(cid, itemid, 1)
  23. Gostei
    Noob II recebeu reputação de Sekk em (Resolvido)script de livro   
    Crie um arquivo chamado Livro.lua na pasta data/actions/scripts e coloca isso:
     

    function onUse(cid, item, frompos, item2, topos)     doPlayerPopupFYI(cid, 'Coloque aqui\nOs Horarios.')      return TRUE end
     
    no actions.xml adicione essa tag com o ID do livro:
     

    <action itemid="1950" event="script" value="Livro.lua"/>
     
    Use \n para pular uma linha 
  24. Gostei
    Noob II deu reputação a Sekk em [Ajuda]Piso que teleporta   
    Não é melhor usar storage ao invés de o player ter o item? Acho q é isso que o cara quer :s
     
    Fiz assim:
    movements/scripts/ tiletp.lua coloque isso:
    movements.xml
    <movevent type="StepIn" actionid="23020" event="script" value="tiletp.lua"/> coloque a action id 23020 no piso pelo RME
     
    agora em actions/scripts/ tiletp.lua coloque isso dentro:
     
    actions.xml
    <action itemid="XXXX" event="script" value="tiletp.lua"/>  
  25. Gostei
    Noob II recebeu reputação de 2shared em (Resolvido)script de livro   
    Crie um arquivo chamado Livro.lua na pasta data/actions/scripts e coloca isso:
     

    function onUse(cid, item, frompos, item2, topos)     doPlayerPopupFYI(cid, 'Coloque aqui\nOs Horarios.')      return TRUE end
     
    no actions.xml adicione essa tag com o ID do livro:
     

    <action itemid="1950" event="script" value="Livro.lua"/>
     
    Use \n para pular uma linha 

Informação Importante

Confirmação de Termo