Ir para conteúdo

izac ximenes

Membro
  • Registro em

  • Última visita

Tudo que izac ximenes postou

  1. 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?
  2. Galera algumas funções como setcreaturename tem a limitação do client queria saber como tira essa limitação no otclient alguem saber?
  3. vlw mano funcionou
  4. nao consegui coloca codigo aki pq e muito grande ai hospedei os 2 arquivos link do arquivos
  5. 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?
  6. 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 };
  7. 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,
  8. 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
  9. 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
  10. Cara meu atks ja tudo na lib agr quero que so tenha um arquivo xml para cada pokemon
  11. como assim mano registra xml? min ajuda ai pfv como assim mano registra xml? min ajuda ai pfv
  12. 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.
  13. Galera to tentando compilar minha source mais toda vez aparece isso: 178 C:\Users\--\Desktop\--\--\monster.cpp [Warning] converting to `int32_t' from `double' a linha 178 tem isso this->healthMax = (this->getMaxHealth() * (1. + (0.1 * (level - 1))));
  14. sim mano olha tem uma função abaixo que usar ela ScriptEnviroment* env = getEnv(); if(Monster* monster = env->getCreatureByUID(popNumber(L))->getMonster()) lua_pushstring(L, monster->realname.c_str()); else { errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND)); lua_pushboolean(L, false); } return 1; }
  15. galera queria adaptar essa função int32_t LuaScriptInterface::luaGetCreatureName(lua_State* L) { //getCreatureName(cid) ScriptEnviroment* env = getEnv(); if(Creature* creature = env->getCreatureByUID(popNumber(L))) lua_pushstring(L, creature->getName().c_str()); else { errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND)); lua_pushboolean(L, false); } return 1; } eu queria que quando essa função foce usada em um montros essa linha: lua_pushstring(L, creature->getName().c_str()); foce substituída por: lua_pushstring(L, monster->nomereal.c_str());
  16. iae galera blz eu vir sistema de level nos monstro e coloquei no meu serve o sistema que usei foi esse Clique aki para ver so que quando uso a função getCreatureName(cid) o level vem também ex: oddish [1] so era pra vim o oddish queria ageita a função na source int32_t LuaScriptInterface::luaGetCreatureName(lua_State* L) { //getCreatureName(cid) ScriptEnviroment* env = getEnv(); if(Creature* creature = env->getCreatureByUID(popNumber(L))) lua_pushstring(L, creature->getName().c_str()); else { errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND)); lua_pushboolean(L, false); } return 1; } alguem min ajuda
  17. Galera to com servidor 8.54, quando começo a jogar ele trava e desloga a conta e não aparece nenhum erro na distro, ja mudei varias vezes a distro e mesmo assim continua
  18. izac ximenes postou uma resposta no tópico em Códigos C++
    em mano sera que você pode tenta da uma adptada nesse codigo para 8.54
  19. todo mundo fala e pokemon flash e base do ot pokemon
  20. izac ximenes postou uma resposta no tópico em Códigos C++
    Cara sera que voce poderia adaptar isso para tfs de poketibia tipo do erondino ou Pokemon dash??
  21. cara acho q fica assim o local combat = createConditionObject(CONDITION_EXHAUST) setCombatParam(combat, CONDITION_PARAM_TICKS, 2000) setCombatParam(combat, CONDITION_PARAM_SUBID, 5) function onDeEquip(cid, item, slot, boolean) if not boolean then return true end doAddCondition(cid, combat) end
  22. to usando erondino v15

Informação Importante

Confirmação de Termo