Ir para conteúdo

izac ximenes

Membro
  • Registro em

  • Última visita

  1. Ayna reagiu a uma resposta no tópico: mini tutorial de como fazer um mondulo(mods)
  2. Risadinhadomal reagiu a uma resposta no tópico: [8.54]Erondino v15 com source
  3. isex reagiu a uma resposta no tópico: [8.54]Erondino v15 com source
  4. Lord Stryton reagiu a uma resposta no tópico: [8.54]Erondino v15 com source
  5. quando vc executar um função de muda nome de um criatura em in-game ele não muda pois o client salva o nome ele so muda quando desloga e loga dinovo que tipo limpa a memoria, ouvir fala que no otclient tem como tira isso queria saber como faz entedeu?
  6. Galera algumas funções como setcreaturename tem a limitação do client queria saber como tira essa limitação no otclient alguem saber?
  7. vlw mano funcionou
  8. izac ximenes reagiu a uma resposta no tópico: [Duvida]função lua no c++
  9. nao consegui coloca codigo aki pq e muito grande ai hospedei os 2 arquivos link do arquivos
  10. Galera fiz um função no c++ para inserir level do pokemon int32_t LuaScriptInterface::luaSetPokemonLevel(lua_State* L) { //setPokemonLevel(cid,level) ScriptEnviroment* env = getEnv(); int32_t levelpoke = popNumber(L); if(Monster* monster = env->getCreatureByUID(popNumber(L))->getMonster()) { monster->levelsummon = levelpoke; lua_pushboolean(L, true); } else { errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND)); lua_pushboolean(L, false); } return 1; } so que quando uso ela no lua da esse erro no console attempt to call global 'setPokemonLevel' (a nil value) como resolvo isso alguem sabe?
  11. enum CombatType_t { COMBAT_FIRST = 0, COMBAT_NONE = COMBAT_FIRST, COMBAT_PHYSICALDAMAGE = 1 << 0, COMBAT_ENERGYDAMAGE = 1 << 1, COMBAT_EARTHDAMAGE = 1 << 2, COMBAT_FIREDAMAGE = 1 << 3, COMBAT_UNDEFINEDDAMAGE = 1 << 4, COMBAT_LIFEDRAIN = 1 << 5, COMBAT_MANADRAIN = 1 << 6, COMBAT_HEALING = 1 << 7, COMBAT_DROWNDAMAGE = 1 << 8, COMBAT_ICEDAMAGE = 1 << 9, COMBAT_HOLYDAMAGE = 1 << 10, COMBAT_DEATHDAMAGE = 1 << 11, COMBAT_SACREDDAMAGE = 1 << 12, COMBAT_ELECTRICDAMAGE = 1 << 13, COMBAT_ROCKDAMAGE = 1 << 14, COMBAT_FLYDAMAGE = 1 << 15, COMBAT_BUGDAMAGE = 1 << 16, COMBAT_FIGHTDAMAGE = 1 << 17, COMBAT_DRAGONDAMAGE = 1 << 18, COMBAT_VENOMDAMAGE = 1 << 19, COMBAT_PSYCHICDAMAGE = 1 << 20, COMBAT_GRASSDAMAGE = 1 << 21, COMBAT_POISONEDDAMAGE = 1 << 22, COMBAT_BURNEDDAMAGE = 1 << 23, COMBAT_WATERDAMAGE = 1 << 24, COMBAT_NORMALDAMAGE = 1 << 25, COMBAT_GHOSTDAMAGE = 1 << 26, COMBAT_GROUNDDAMAGE = 1 << 27, COMBAT_POISONDAMAGE = 1 << 28, COMBAT_DARKDAMAGE = 1 << 29, COMBAT_STEELDAMAGE = 1 << 30, COMBAT_MIRACLEDAMAGE = 1 << 31, COMBAT_DARK_EYEDAMAGE = 1 << 32, COMBAT_LAST = COMBAT_NONE };
  12. Galera to tentado compilar minha source so que da esse erro 147 C:\Users\\Desktop\\\enums.h [Warning] left shift count >= width of type linha 147(linha do erro) tem issso COMBAT_DARK_EYEDAMAGE = 1 << 32,
  13. eu registrei os eventos nos pokemon so que quando tento chama ele para pokebola ele nao volta mais e nao da nenhum erro no console
  14. olha esse eventos que tem no oddish s <script> <event name="BlockHit3"/> <event name="Exp"/> <event name="BlockSpells"/> <event name="AvoidLook"/> <event name="Experience"/> <event name="Fome"/> <event name="SetSkull"/> </script> esse sao do oddish <script> <event name="Spawn"/> </script> percebi essa linha de codigo no spawn.lua do pda function onSpawn(cid) registerCreatureEvent(cid, "GeneralConfiguration") registerCreatureEvent(cid, "DirectionSystem") registerCreatureEvent(cid, "CastSystem") if isSummon(cid) then registerCreatureEvent(cid, "SummonDeath") return true end registerCreatureEvent(cid, "Experience") addEvent(doPokemonRegisterLevel, 5, cid) addEvent(doSetRandomGender, 5, cid) addEvent(doShiny, 10, cid) return true end esse evento faz o poke volta para pokebola registerCreatureEvent(cid, "SummonDeath") so que no erondino nao tem esse evento sera que alguem pode adaptar ele para erondino olha codigo dele function onLogout(cid) if getPlayerStorageValue(cid, 888) >= 1 then doPlayerSendCancel(cid, "You cant logout during control mind.") return false end local summon = getCreatureSummons(cid)[1] local thisitem = getPlayerSlotItem(cid, 8) local btype = getPokeballType(thisitem.itemid) if #getCreatureSummons(cid) == 1 and thisitem.uid > 1 then doItemSetAttribute(thisitem.uid, "hp", getCreatureHealth(summon) / getCreatureMaxHealth(summon)) doTransformItem(thisitem.uid, pokeballs[btype].on) doSendMagicEffect(getThingPos(summon), pokeballs[btype].effect) doRemoveCreature(summon) end if getCreatureOutfit(cid).lookType == 814 then doPlayerStopWatching(cid) end if getPlayerStorageValue(cid, 17000) >= 1 then markFlyingPos(cid, getThingPos(cid)) end doPlayerSave(cid) return TRUE end local deathtexts = {"Oh no! POKENAME, come back!", "Come back, POKENAME!", "That's enough, POKENAME!", "You did well, POKENAME!", "You need to rest, POKENAME!", "Nice job, POKENAME!", "POKENAME, you are too hurt!"} function onDeath(cid, deathList) local owner = getCreatureMaster(cid) if getPlayerStorageValue(cid, 637500) >= 1 then doSendMagicEffect(getThingPos(cid), 211) doRemoveCreature(cid) return true end if getPlayerStorageValue(cid, 212123) >= 1 then --alterado v2.5 return true end --////////////////////////////////////////////////////////////////////////////////////////-- checkDuel(owner) --alterado v2.6 duel system --////////////////////////////////////////////////////////////////////////////////////////-- local thisball = getPlayerSlotItem(owner, 8) local btype = getPokeballType(thisball.itemid) doSendMagicEffect(getThingPos(cid), pokeballs[btype].effect) doTransformItem(thisball.uid, pokeballs[btype].off) doPlayerSendTextMessage(owner, 22, "Your pokemon fainted.") local say = deathtexts[math.random(#deathtexts)] say = string.gsub(say, "POKENAME", getCreatureName(cid)) if getPlayerStorageValue(cid, 33) <= 0 then doCreatureSay(owner, say, TALKTYPE_SAY) end doItemSetAttribute(thisball.uid, "hp", 0) doItemSetAttribute(thisball.uid, "happy", getPlayerStorageValue(cid, 1008) - happyLostOnDeath) doItemSetAttribute(thisball.uid, "hunger", getPlayerStorageValue(cid, 1009)) doRemoveCreature(cid) return false end
  15. Cara meu atks ja tudo na lib agr quero que so tenha um arquivo xml para cada pokemon
  16. como assim mano registra xml? min ajuda ai pfv como assim mano registra xml? min ajuda ai pfv
  17. Galera tenho uma duvida como vocês sabe no serve do erondino tem dois xml para cada monstro um dele capturado e outro dele solto queria saber como deixa so 1 para ambos capturado e selvagens. queria saber tbm pq função onSpawn() nao funcionar nos pokemon selvagens.

Informação Importante

Confirmação de Termo