Ir para conteúdo

andreswmsoto

Membro
  • Registro em

  • Última visita

Tudo que andreswmsoto postou

  1. andreswmsoto postou uma resposta no tópico em Suporte & Pedidos
    Eu estou montando um server ot de digimon e gostaria das sprites desses digimons se você puder fazer http://fc00.deviantart.net/fs70/f/2013/194/e/c/azulongmon_by_digimongif-d6dayzi.gif >>>>>>>> Azulongmon http://images.uncyc.org/pt/0/0a/Zhuqiaomon.gif >>>>>>>>>>>Zhugiaomon http://dma.wtw-x.net/DMA/DigimonStands/Toei/Baihumon.jpg >>>>>>>>>>>>Baihumon
  2. Olha eu to tentando fazer um script de um digimon novo, só que no jogo n apareçeu nivel nem nada, sendo que dos outros apareçeu. OBS:o head e body eu sai chutando pois não sei aonde eu vejo isso, se é em um script ou sprite. Script (Flamedramon): Script (Eu usei esse como base):
  3. Muito Obrigado vou testar pra ver se funciona OBRIGADO TE AMO FUNCIONOU ! os proprios adms do forum colocam como resolvido?
  4. Preciso de ajuda com esse erro, me falaram que os numeros que apareçem é onde estam os erros(numero de linhas) entao eu peguei exatamente a linha onde eu marquei o erro com >>>>>>>>>>>>>. OBS:Erro da quando eu tento atacar um digimon ou quando o digimon passa de lvl. ERRO: [20/01/2015 20:15:20] [Error - CreatureScript Interface] [20/01/2015 20:15:20] data/creaturescripts/scripts/exp.lua:onStatsChange [20/01/2015 20:15:20] Description: [20/01/2015 20:15:20] data/lib/some functions.lua:255: attempt to compare nil with number [20/01/2015 20:15:20] stack traceback: [20/01/2015 20:15:20] data/lib/some functions.lua:255: in function 'getHappinessRate' [20/01/2015 20:15:20] data/creaturescripts/scripts/exp.lua:440: in function <data/creaturescripts/scripts/exp.lua:129> exp.lua(440): local function resetMiss(cid) if not isCreature(cid) then return true end setPlayerStorageValue(cid, 88726, -1) end if getPlayerStorageValue(cid, 88726) ~= 1 and miss > 0 and math.random(1, 100) <= miss and damageCombat ~= COMBAT_PHYSICALDAMAGE and not isInArray(ignoremiss, combat) and not isSleeping(cid) and not getCreatureCondition(cid, CONDITION_PARALYZE) then doSendMagicEffect(getThingPos(cid), 211) doSendAnimatedText(getThingPos(cid), "MISS", 215) doTeleportThing(cid, getClosestFreeTile(cid, getThingPos(cid)), false) doSendMagicEffect(getThingPos(cid), 211) doFaceCreature(cid, getThingPos(attacker)) setPlayerStorageValue(cid, 88726, 1) >>>>>>>>>>ERRO AQUI EU ACHO addEvent(resetMiss, 2200, cid) return false end some functions.lua(255): function doCorrectPokemonName(poke) return doCorrectString(poke) end function doCorrectString(poke) local name = "" local n = string.explode(poke, " ") local str = string.sub(n[1], 1, 1) >>>>>>>>>>>>>ERRO AQUI EU ACHO local sta = string.sub(n[1], 2, string.len(n[1])) name = ""..string.upper(str)..""..string.lower(sta).."" if n[2] then str = string.sub(n[2], 1, 1) sta = string.sub(n[2], 2, string.len(n[2])) name = name.." "..string.upper(str)..""..string.lower(sta).."" end return name end -------------------------------HAPPINESSRATE È CITADO NO ERRO function getHappinessRate(cid) if not isCreature(cid) then return 1 end local a = getPlayerStorageValue(cid, 1008) if a == -1 then return 1 end if a >= getConfigValue('PokemonStageVeryHappy') then return happinessRate[5].rate elseif a >= getConfigValue('PokemonStageHappy') then return happinessRate[4].rate elseif a >= getConfigValue('PokemonStageOK') then return happinessRate[3].rate elseif a >= getConfigValue('PokemonStageSad') then return happinessRate[2].rate else return happinessRate[1].rate end return 1 end exp.lua(129): local damages = {MORTALGASDAMAGE, GROUNDDAMAGE, ELECTRICDAMAGE, ROCKDAMAGE, FLYDAMAGE, BUGDAMAGE, FIGHTINGDAMAGE, DRAGONDAMAGE, POISONDAMAGE, DARKDAMAGE, STEELDAMAGE, NIGHTMAREDAMAGE, GUILLOTINEDAMAGE, SEISMICTOSSDAMAGE} >>>>>>>>>>>>ERRO AQUI EU ACHO local fixdmgs = {PSYCHICDAMAGE, COMBAT_PHYSICALDAMAGE, GRASSDAMAGE, FIREDAMAGE, WATERDAMAGE, ICEDAMAGE,NORMALDAMAGE, GHOSTDAMAGE} local ignored = {NIGHTMAREDAMAGE, GUILLOTINEDAMAGE, MORTALGASDAMAGE, SEISMICTOSSDAMAGE, PSYCHOSHIFTDAMAGE, POISONEDDAMAGE, BURNEDDAMAGE} local ignoremiss = {NIGHTMAREDAMAGE, MORTALGASDAMAGE, BURNEDDAMAGE, POISONEDDAMAGE} local ignorecritical = {MORTALGASDAMAGE, BURNEDDAMAGE, POISONEDDAMAGE, NIGHTMAREDAMAGE} local cannotkill = {MORTALGASDAMAGE, BURNEDDAMAGE, POISONEDDAMAGE, NIGHTMAREDAMAGE} function onStatsChange(cid, attacker, type, combat, value) if combat == FLYSYSTEMDAMAGE then return false end if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end -- TV local damageCombat = combat if damageCombat == THUNDERWAVEDAMAGE then damageCombat = ELECTRICDAMAGE elseif damageCombat == PSYCHOSHIFTDAMAGE then damageCombat = PSYCHICDAMAGE end if getPlayerStorageValue(cid, 33) >= 1 then -- funcionamento do self destruction if isCreature(attacker) then return false end return true end if not isCreature(attacker) or cid == attacker then if not isInArray(fixdamages, combat) and combats[combat] then doSendAnimatedText(getThingPos(cid), value, combats[combat].cor) end return true end -------------------------------------------------- if combat == SLEEP_POWDERDAMAGE then if not isSummon(cid) and not isSummon(attacker) and not isPlayer(attacker) then return false end if isPlayer(cid) then return false end if isNpcSummon(cid) and getCreatureTarget(cid) ~= attacker then return false end if isSummon(cid) and isSummon(attacker) then if not isInParty(getCreatureMaster(cid)) or not isInParty(getCreatureMaster(attacker)) then return false end if not getPlayerParty(getCreatureMaster(cid)) == getPlayerParty(getCreatureMaster(attacker)) then return false end end doSleep(cid, value, true) return false end
  5. Não foi, o erro persiste :/ , não sera que esse get attribute item ta tentando pegar um item o qual o id não exista?, e que é assim, meu mapper usou o .spr diferente do meu, o dele tem o triplo de items, sera que ele colou algum item no mapa que o meu cliente n consegue achar porque ele não existe no meu .spr?, ou isso e realmente erro no script?
  6. blz deixei tudo minusculo e deu isso [20/01/2015 15:38:59] [Error - CreatureScript Interface] [20/01/2015 15:38:59] data/creaturescripts/scripts/login.lua:onLogin [20/01/2015 15:38:59] Description: [20/01/2015 15:38:59] (luaGetItemAttribute) Item not found [20/01/2015 15:38:59] [Error - CreatureScript Interface] [20/01/2015 15:38:59] data/creaturescripts/scripts/login.lua:onLogin [20/01/2015 15:38:59] Description: [20/01/2015 15:38:59] data/creaturescripts/scripts/login.lua:179: attempt to index field '?' (a nil value) [20/01/2015 15:38:59] stack traceback: [20/01/2015 15:39:00] data/creaturescripts/scripts/login.lua:179: in function <data/creaturescripts/scripts/login.lua:83> [20/01/2015 15:39:00] [ADM]Evolution has logged out. procurei com Ctrl+F e nao achou nenhuma palavra com "lua" o pior e que so falta arrumar isso ai pra funcionar :/ , esse erro da quando eu logo com personagem com vocação de [ADM] :/, será que o erro poderia estar na vocação?, pois personagens normais logam, [Tutor] loga,[GM] loga mas o [ADM] não.
  7. White eu já mudei pra getItemAttribute todos e foi depois disso que veio esse erro diferente que te mostrei então eu fiz isso mas arapeçeu o 2 erro que mostrei ali '*-*
  8. o erro ficou um pouco diferente olha [20/01/2015 14:52:41] [Error - CreatureScript Interface] [20/01/2015 14:52:41] data/creaturescripts/scripts/login.lua:onLogin [20/01/2015 14:52:41] Description: [20/01/2015 14:52:41] data/creaturescripts/scripts/login.lua:176: attempt to call global 'GetItemAttribute' (a nil value) [20/01/2015 14:52:41] stack traceback: [20/01/2015 14:52:41] data/creaturescripts/scripts/login.lua:176: in function <data/creaturescripts/scripts/login.lua:83>
  9. Eu gostaria de saber como fixar esses erros que estão dando no login.lua do creaturescript. ERRO: [20/01/2015 14:22:02] [Error - CreatureScript Interface] [20/01/2015 14:22:02] data/creaturescripts/scripts/login.lua:onLogin [20/01/2015 14:22:02] Description: [20/01/2015 14:22:02] data/creaturescripts/scripts/login.lua:176: attempt to call global 'luaGetItemAttribute' (a nil value) [20/01/2015 14:22:02] stack traceback: [20/01/2015 14:22:02] data/creaturescripts/scripts/login.lua:176: in function <data/creaturescripts/scripts/login.lua:83> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ login.lua: local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } local flys = { ["Birdramon"] = {191, 1000}, -- moltres ["Saberdramon"] = {191, 1000}, -- moltres ["Flymon"] = {181, 800}, -- artic ["Coelamon"] = {181, 600}, -- zapdos } local rides = { ["Ikkakumon"] = {169, 200}, -- tauros ["Woodmon"] = {172, 200}, -- kyuubi ["Dobermon"] = {175, 200}, -- rapid ["Gazimon"] = {177, 200}, -- ponyta ["Garurumon"] = {184, 200}, -- rhyhorn ["Greymon"] = {185, 200}, -- arcan ["Togemon"] = {187, 250}, -- onix ["Mojyamon"] = {189, 200}, -- venu } local surf = { ["Ikkakumon"] = {lookType=171, speed = 320}, ["Poliwhirl"] = {lookType=137, speed = 480}, ["Seaking"] = {lookType=269, speed = 520}, ["Dewgong"] = {lookType=183, speed = 700}, ["Blastoise"] = {lookType=184, speed = 850}, ["Tentacruel"] = {lookType=185, speed = 750}, ["Lapras"] = {lookType=186, speed = 960}, ["Gyarados"] = {lookType=187, speed = 1050}, ["Omastar"] = {lookType=188, speed = 680}, ["Kabutops"] = {lookType=189, speed = 840}, ["Poliwrath"] = {lookType=190, speed = 680}, ["Vaporeon"] = {lookType=191, speed = 800}, ["Staryu"] = {lookType=266, speed = 385}, ["Starmie"] = {lookType=267, speed = 685}, ["Goldeen"] = {lookType=268, speed = 355}, ["Seadra"] = {lookType=270, speed = 655}, ["Golduck"] = {lookType=271, speed = 760}, ["Squirtle"] = {lookType=273, speed = 365}, ["Wartortle"] = {lookType=275, speed = 605}, ["Tentacool"] = {lookType=277, speed = 340}, ["Snorlax"] = {lookType=300, speed = 500}, ["Shiny Poliwag"] = {lookType=1010, speed = 320}, ["Shiny Poliwhirl"] = {lookType=1011, speed = 480}, ["Shiny Seaking"] = {lookType=1027, speed = 520}, ["Shiny Dewgong"] = {lookType=1015, speed = 700}, ["Shiny Blastoise"] = {lookType=1002, speed = 850}, ["Shiny Tentacruel"] = {lookType=1014, speed = 750}, ["Shiny Lapras"] = {lookType=1031, speed = 960}, ["Shiny Gyarados"] = {lookType=1030, speed = 1050}, ["Shiny Omastar"] = {lookType=1033, speed = 680}, ["Shiny Kabutops"] = {lookType=1034, speed = 840}, ["Shiny Poliwrath"] = {lookType=1012, speed = 680}, ["Shiny Vaporeon"] = {lookType=1032, speed = 800}, ["Shiny Staryu"] = {lookType=1028, speed = 385}, ["Shiny Starmie"] = {lookType=1029, speed = 685}, ["Shiny Goldeen"] = {lookType=1026, speed = 355}, ["Shiny Seadra"] = {lookType=1025, speed = 655}, ["Shiny Golduck"] = {lookType=1009, speed = 760}, ["Shiny Squirtle"] = {lookType=1000, speed = 365}, ["Shiny Wartortle"] = {lookType=1001, speed = 605}, ["Shiny Tentacool"] = {lookType=1013, speed = 340}, ["Shiny Snorlax"] = {lookType=1035, speed = 500}, ["Mantine"] = {lookType=636, speed = 820}, ["Totodile"] = {lookType=637, speed = 360}, ["Croconow"] = {lookType=638, speed = 590}, ["Feraligatr"] = {lookType=645, speed = 900}, ["Marill"] = {lookType=639, speed = 340}, ["Azumarill"] = {lookType=642, speed = 680}, ["Quagsire"] = {lookType=643, speed = 740}, ["Kingdra"] = {lookType=644, speed = 1020}, ["Octillery"] = {lookType=641, speed = 600}, ["Wooper"] = {lookType=640, speed = 315}, } function onLogin(cid) doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 100) doCreatureSetDropLoot(cid, false) local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if getCreatureName(cid) == "Account Manager" then local outfit = {} if accountManagerRandomPokemonOutfit then outfit = {lookType = getPokemonXMLOutfit(oldpokedex[math.random(151)][1])} else outfit = accountManagerOutfit end doSetCreatureOutfit(cid, outfit, -1) return true end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end local outfit = {} if getPlayerVocation(cid) == 0 then doPlayerSetMaxCapacity(cid, 0) doPlayerSetVocation(cid, 1) setPlayerStorageValue(cid, 86228, 0) setPlayerStorageValue(cid, 862281, 0) setCreatureMaxMana(cid, 6) doPlayerAddSoul(cid, -getPlayerSoul(cid)) setPlayerStorageValue(cid, 19898, 0) if getCreatureOutfit(cid).lookType == 128 then outfit = {lookType = 510, lookHead = math.random(0, 132), lookBody = math.random(0, 132), lookLegs = math.random(0, 132), lookFeet = math.random(0, 132)} elseif getCreatureOutfit(cid).lookType == 136 then outfit = {lookType = 511, lookHead = math.random(0, 132), lookBody = math.random(0, 132), lookLegs = math.random(0, 132), lookFeet = math.random(0, 132)} end doCreatureChangeOutfit(cid, outfit) end registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "fullmh") registerCreatureEvent(cid, "UpTeleport") registerCreatureEvent(cid, "WatchTv") registerCreatureEvent(cid, "StopWatchingTv") registerCreatureEvent(cid, "WalkTv") registerCreatureEvent(cid, "RecordTv") registerCreatureEvent(cid, "Death") registerCreatureEvent(cid, "PlayerLogout") registerCreatureEvent(cid, "WildAttack") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "PokemonIdle") registerCreatureEvent(cid, "EffectOnAdvance") registerCreatureEvent(cid, "GeneralConfiguration") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "LookSystem") registerCreatureEvent(cid, "T1") registerCreatureEvent(cid, "T2") if getPlayerStorageValue(cid, 99284) == 1 then setPlayerStorageValue(cid, 99284, -1) end doChangeSpeed(cid, -(getCreatureSpeed(cid))) if getPlayerStorageValue(cid, 17000) >= 1 then -- fly local item = getPlayerSlotItem(cid, 8) local poke = luaGetItemAttribute(item.uid, "poke") doChangeSpeed(cid, getPlayerStorageValue(cid, 54844)) doRemoveCondition(cid, CONDITION_OUTFIT) doSetCreatureOutfit(cid, {lookType = flys[poke][1] + 351}, -1) local apos = getFlyingMarkedPos(cid) apos.stackpos = 0 if getTileThingByPos(apos).itemid <= 2 then doCombatAreaHealth(cid, FIREDAMAGE, getFlyingMarkedPos(cid), 0, 0, 0, CONST_ME_NONE) doCreateItem(460, 1, getFlyingMarkedPos(cid)) end doTeleportThing(cid, apos, false) local posicao = getTownTemplePosition(getPlayerTown(cid)) markFlyingPos(cid, posicao) elseif getPlayerStorageValue(cid, 63215) >= 1 then -- surf local item = getPlayerSlotItem(cid, 8) local poke = luaGetItemAttribute(item.uid, "poke") doSetCreatureOutfit(cid, {lookType = surf[poke].lookType + 351}, -1) doChangeSpeed(cid, getPlayerStorageValue(cid, 54844)) elseif getPlayerStorageValue(cid, 17001) >= 1 then -- ride local item = getPlayerSlotItem(cid, 8) local poke = luaGetItemAttribute(item.uid, "poke") if rides[poke] then doChangeSpeed(cid, getPlayerStorageValue(cid, 54844)) doRemoveCondition(cid, CONDITION_OUTFIT) doSetCreatureOutfit(cid, {lookType = rides[poke][1] + 351}, -1) else setPlayerStorageValue(cid, 17001, -1) doChangeSpeed(cid, PlayerSpeed) end local posicao2 = getTownTemplePosition(getPlayerTown(cid)) markFlyingPos(cid, posicao2) elseif getPlayerStorageValue(cid, 13008) >= 1 then -- dive if not isInArray({5405, 5406, 5407, 5408, 5409, 5410}, getTileInfo(getThingPos(cid)).itemid) then setPlayerStorageValue(cid, 13008, 0) doChangeSpeed(cid, PlayerSpeed) doRemoveCondition(cid, CONDITION_OUTFIT) return true end if getPlayerSex(cid) == 1 then doSetCreatureOutfit(cid, {lookType = 1034, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}, -1) else doSetCreatureOutfit(cid, {lookType = 1035, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}, -1) end doChangeSpeed(cid, 800) elseif getPlayerGroupId(cid) >= 4 and getPlayerGroupId(cid) <= 7 then doChangeSpeed(cid, 140*getPlayerGroupId(cid)) else doChangeSpeed(cid, PlayerSpeed) end return true end

Informação Importante

Confirmação de Termo