Ir para conteúdo
  • Cadastre-se
  1. Alistair Overeem

    Alistair Overeem

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.


  • Conteúdo Similar

    • Por Cat
      Use esse script para remover criaturas de tempo em tempo em uma determinada área do mapa.
       
      -- -- --
       
      Em data/globalevents/cria um arquivo chamado removemonster.lua
      local config = { fromPos = {x=556,y=451,z=6}, -- posição superior esquerda do mapa, da area em que esta mapeado a area. toPos = {x=566,y=456,z=6}, -- posição inferior direita do mapa, da area em que esta mapeado a area. boss = "Nomedomonstroaqui" -- Aqui você bota o nome do monstro que você quer remover } function onTime() removeMonsterInArea(fromPos, toPos) return true end function removeMonsterInArea() local positionsCheck = {} for i = config.fromPos.x, config.toPos.x do positionsCheck[#positionsCheck+1] = {x=i, y = config.fromPos.y, z = config.fromPos.z, stackpos = 0} for j = config.fromPos.y+1, config.toPos.y do positionsCheck[#positionsCheck+1] = {x=i, y = j, z = config.fromPos.z, stackpos = 0} end end for j=1, #positionsCheck do for i = 0, 255 do positionsCheck[j].stackpos = i local tile = getTileThingByPos(positionsCheck[j]) if isMonster(tile.uid) then if getCreatureName(tile.uid) == config.boss then doRemoveCreature(tile.uid) end end end end end TAG:
      <globalevent name="removemonster" time="03:00" event="script" value="removemonster.lua"/> time="03:00"   representa 3horas AM
       
       
    • Por jhonysavio
      Gostaria de saber se tem como fazer um script para que alguns items aumentem a velocidade de ataque, ou uma magia que quando utilizada aumente a velocidade de ataque por X segundos... agradeço a todos
    • Por klipstyle
      fala galera estou com um problema que por mais que eu tenha pesquisado não encontrei uma forma de verificar se a criatura existe ou não.
       
          valor = math.abs(valor)      if isSummon(attacker) then if combat == COMBAT_PHYSICALDAMAGE then doTargetCombatHealth(getCreatureMaster(attacker), cid, PHYSICALDAMAGE, -valor, -valor, 255) addEvent(doDoubleHit, 1000, attacker, cid, valor, races)       else doTargetCombatHealth(getCreatureMaster(attacker), cid, damageCombat, -valor, -valor, 255) end else if combat ~= COMBAT_PHYSICALDAMAGE then if damageCombat and combats[damageCombat] then doCreatureAddHealth(cid, -math.abs(valor), 3, combats[damageCombat].cor) else doCreatureAddHealth(cid, -math.abs(valor), 3, combats[getMonsterInfo(getCreatureName(cid)).race].cor) ---- (luaGetMonsterInfo) Monster not found             addEvent(doDoubleHit, 1000, attacker, cid, valor, races)            end end   quando jogador morre para muitos monstros ele não verifica ha tempo se o monstro ou jogador existe antes de efetuar a verificação do ataque.   alguém saberia uma forma de mudar isso?   EDIT: Valeu a todos pode fechar problema resolvido Bug exp2.0 PDA fixado (:
    • Por andreswmsoto
      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  
    • Por Dante Armstrong
      Alguem Pode Me ajudar? No log do Meu serve aparece o Seguinte error 
       
      erro 1 [08/07/2014 15:23:25] [Error - Action Interface]  [08/07/2014 15:23:25] data/actions/scripts/order.lua:onUse [08/07/2014 15:23:25] Description:  [08/07/2014 15:23:25] (luaGetCreatureNoMove) Creature not found   erro 2 [08/07/2014 16:11:34] [Error - Action Interface]  [08/07/2014 16:11:34] data/actions/scripts/pokedex.lua:onUse [08/07/2014 16:11:34] Description:  [08/07/2014 16:11:34] data/actions/scripts/pokedex.lua:37: attempt to index a boolean value [08/07/2014 16:11:34] stack traceback: [08/07/2014 16:11:34] data/actions/scripts/pokedex.lua:37: in function <data/actions/scripts/pokedex.lua:3>  
      Quando Acontece o dois Erro o Server da muito lag :/ Então preciso resolve-los Alguem ajuda?   
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo