-
-
-
-
-
-
Como tira limitação do nome da criatura no otclient
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?
-
Como tira limitação do nome da criatura no otclient
Galera algumas funções como setcreaturename tem a limitação do client queria saber como tira essa limitação no otclient alguem saber?
-
[Duvida]função lua no c++
vlw mano funcionou
-
-
[Duvida]função lua no c++
@up
-
[Duvida]função lua no c++
nao consegui coloca codigo aki pq e muito grande ai hospedei os 2 arquivos link do arquivos
-
[Duvida]função lua no c++
ja
-
[Duvida]função lua no c++
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?
-
[erro]compillando source 8.54 poketibia
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 };
-
[erro]compillando source 8.54 poketibia
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,
-
Erondino pokemons selvagens e capturados,função onSpawn()
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
-
Erondino pokemons selvagens e capturados,função onSpawn()
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
-
Erondino pokemons selvagens e capturados,função onSpawn()
Cara meu atks ja tudo na lib agr quero que so tenha um arquivo xml para cada pokemon
-
Erondino pokemons selvagens e capturados,função onSpawn()
como assim mano registra xml? min ajuda ai pfv como assim mano registra xml? min ajuda ai pfv
-
Erondino pokemons selvagens e capturados,função onSpawn()
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.
-
[Duvida]converte de int32_t para double
@up