Ir para conteúdo

garep

Artesão
  • Total de itens

    118
  • Registro em

  • Última visita

Posts postados por garep

  1. Eu vi essa talk em outro forum e por sinal foi o stylo que passo favor colocar o devido créditos pra ele mentiroso.

    Amigo como falei, peguei o script do World Pokemon e a talk fui eu q fiz, e tenho entre outros Sys do Client dele aqui... se quiser ..

  2. ->Emblemas na Skill Bar Pxg <-

     

    Pra quem esta fazendo um otserv de poketibia ta um script.

     

    >Tudo isso no Client<

    1 - paga tudo que esta em Skills.OTUI e add esse

    SkillFirstWidget < UIWidget
    
    SkillButton < UIButton
      height: 21
      margin-bottom: 2
      &onClick: onSkillButtonClick
    
    SkillNameLabel < GameLabel
      font: verdana-11px-monochrome
      anchors.left: parent.left
      anchors.top: parent.top
      anchors.bottom: parent.bottom
    
    SkillValueLabel < GameLabel
      id: value
      font: verdana-11px-monochrome
      text-align: topright
      anchors.right: parent.right
      anchors.top: parent.top
      anchors.bottom: parent.bottom
      anchors.left: prev.left
    
    SkillPercentPanel < ProgressBar
      id: percent
      background-color: green
      height: 5
      image-source: /modules/game_skills/img/skillprogress
      image-border-left: 2
      image-border-right: 3
      margin-top: 15
      anchors.left: parent.left
      anchors.right: parent.right
      anchors.top: parent.top
      phantom: false
    
    MiniWindow
      id: skillWindow
      !text: tr('Skills')
      height: 150
      icon: /modules/game_skills/img/perfil_icon
      @onClose: modules.game_skills.onMiniWindowClose()
      &save: true
    
      MiniWindowContents
        padding-left: 5
        padding-right: 5
        layout: verticalBox
    
        SkillButton
          margin-top: 5
          id: experience
          height: 13
          SkillValueLabel
            width: 130
            text-align: top
            anchors.horizontalCenter: parent.horizontalCenter
            margin-left: 15
          UIButton
            id: clanicon
            width: 37
            height: 36
            image-source: /modules/game_skills/img/skillicon
            anchors.top: parent.top
            anchors.left: parent.left
    
        SkillButton
          margin-top: 5
          id: experiencee
          height: 13
          SkillValueLabel
            width: 130
            font: sans-bold-16px
            text-align: top
            anchors.horizontalCenter: parent.horizontalCenter
            margin-top: -6
            margin-left: 15
    
        SkillButton
          id: level
          SkillNameLabel
            !text: tr('Experience')
          SkillValueLabel
          SkillPercentPanel
            background-color: red
    
        SkillButton
          id: skillId6
          SkillNameLabel
            !text: tr('Fishing')
          SkillValueLabel
          SkillPercentPanel
    
        SkillButton
          id: skillId3
          SkillNameLabel
            !text: tr('Headbutt')
          SkillValueLabel
          SkillPercentPanel
    
        SkillButton
          id: health
          height: 15
          SkillNameLabel
            !text: tr('Hit Points')
          SkillValueLabel
          visible: false
    
        SkillButton
          id: mana
          height: 15
          SkillNameLabel
            !text: tr('Mana')
          SkillValueLabel
          visible: false
    
        SkillButton
          id: capacity
          height: 15
          SkillNameLabel
            !text: tr('Capacity')
          SkillValueLabel
          visible: false
    
        SkillButton
          id: regenerationTime
          SkillNameLabel
            !text: tr('Regeneration Time')
          SkillValueLabel
          visible: false
    
        SkillButton
          id: offlineTraining
          SkillNameLabel
            !text: tr('Offline Training')
          SkillValueLabel
          SkillPercentPanel
          visible: false
    
        SkillButton
          id: magiclevel
          SkillNameLabel
            !text: tr('Magic Level')
          SkillValueLabel
          SkillPercentPanel
            background-color: red
          visible: false
    
        SkillButton
          id: stamina
          height: 15
          SkillNameLabel
            !text: tr('Stamina')
          SkillValueLabel
          margin-top: 8
    
          HorizontalSeparator
            height: 7
            anchors.top: parent.top
            anchors.left: parent.left
            anchors.right: parent.right
            margin-top: -6
    
        SkillButton
          id: soul
          height: 15
          SkillNameLabel
            !text: tr('All Catches')
          SkillValueLabel
    
        SkillButton
          id: speed
          height: 15
          SkillNameLabel
            !text: tr('Speed')
          SkillValueLabel
    
        SkillButton
          id: skillId1
          margin-top: 8
          height: 15
          SkillNameLabel
            !text: tr('Duels Won')
          SkillValueLabel
    
          HorizontalSeparator
            height: 7
            anchors.top: parent.top
            anchors.left: parent.left
            anchors.right: parent.right
            margin-top: -6
    
        SkillButton
          id: skillId0
          height: 15
          SkillNameLabel
            !text: tr('Duels Lost')
          SkillValueLabel
    
        SkillButton
          id: skillId2
          SkillNameLabel
            !text: tr('Sword Fighting')
          SkillValueLabel
          SkillPercentPanel
          visible: false
    
        SkillButton
          id: skillId4
          SkillNameLabel
            !text: tr('Distance Fighting')
          SkillValueLabel
          SkillPercentPanel
          visible: false
    
        SkillButton
          id: skillId5
          SkillNameLabel
            !text: tr('Shielding')
          SkillValueLabel
          SkillPercentPanel
          visible: false
    
    

    2 - agora vai em skills.lua paga tudo e add esse ai

    skillsWindow = nil
    skillsButton = nil
    
    local imgs = {
       [-1] = "/modules/game_skills/img/trainer", -- -1 quer dizer esta sem clan...
       [1] = "/modules/game_skills/img/volcanic",
       [2] = "/modules/game_skills/img/seavell",
       [3] = "/modules/game_skills/img/orebound",
       [4] = "/modules/game_skills/img/wingeon",
       [5] = "/modules/game_skills/img/malefic",
       [6] = "/modules/game_skills/img/gardestrike",
       [7] = "/modules/game_skills/img/psycraft ",
       [8] = "/modules/game_skills/img/naturia",
       [9] = "/modules/game_skills/img/raibolt",
    }
    
    function init()
      connect(LocalPlayer, {
        onExperienceChange = onExperienceChange,
        onLevelChange = onLevelChange,
        onHealthChange = onHealthChange,
        onManaChange = onManaChange,
        onSoulChange = onSoulChange,
        onFreeCapacityChange = onFreeCapacityChange,
        onTotalCapacityChange = onTotalCapacityChange,
        onStaminaChange = onStaminaChange,
        onOfflineTrainingChange = onOfflineTrainingChange,
        onRegenerationChange = onRegenerationChange,
        onSpeedChange = onSpeedChange,
        onBaseSpeedChange = onBaseSpeedChange,
        onMagicLevelChange = onMagicLevelChange,
        onBaseMagicLevelChange = onBaseMagicLevelChange,
        onSkillChange = onSkillChange,
        onBaseSkillChange = onBaseSkillChange
      })
      connect(g_game, {
        onGameStart = refresh,
        onGameEnd = offline
      })
      connect(g_game, 'onTextMessage', getParams)
      connect(g_game, {onGameStart = changeImg})
    
      skillsButton = modules.client_topmenu.addCustomRightButton('skillsButton', tr('skills') .. ' (Ctrl+S)', '/modules/game_skills/img/perfil_icon', toggle, true)
      skillsButton:setOn(true)
      skillsWindow = g_ui.loadUI('skills', modules.game_interface.getRightPanel()) -- skills
    
      g_keyboard.bindKeyDown('Ctrl+S', toggle)
    
      refresh()
      skillsWindow:setup()
    end
    
    function terminate()
      disconnect(LocalPlayer, {
        onExperienceChange = onExperienceChange,
        onLevelChange = onLevelChange,
        onHealthChange = onHealthChange,
        onManaChange = onManaChange,
        onSoulChange = onSoulChange,
        onFreeCapacityChange = onFreeCapacityChange,
        onTotalCapacityChange = onTotalCapacityChange,
        onStaminaChange = onStaminaChange,
        onOfflineTrainingChange = onOfflineTrainingChange,
        onRegenerationChange = onRegenerationChange,
        onSpeedChange = onSpeedChange,
        onBaseSpeedChange = onBaseSpeedChange,
        onMagicLevelChange = onMagicLevelChange,
        onBaseMagicLevelChange = onBaseMagicLevelChange,
        onSkillChange = onSkillChange,
        onBaseSkillChange = onBaseSkillChange
      })
      disconnect(g_game, {
        onGameStart = refresh,
        onGameEnd = offline
      })
      disconnect(g_game, 'onTextMessage', getParams)
      disconnect(g_game, {onGameStart = changeImg})
      
      g_keyboard.unbindKeyDown('Ctrl+S')
      skillsWindow:destroy()
      skillsButton:destroy()
    end
    
    function changeImg()
      local player = g_game.getLocalPlayer()
      if not player then return end
      g_game.talk("#getSto# 86228")
    end
    
    function getParams(mode, text)
    if not g_game.isOnline() then return end
       if mode == MessageModes.Failure then 
          if text:find("#getSto#") then
             local icon = skillsWindow:recursiveGetChildById("clanicon")
             if icon then
                local t = string.explode(text, " ")
                icon:setImageSource(imgs[tonumber(t[2])])
             end
          end
       end
    end
    
    function expForLevel(level)
      return math.floor((50*level*level*level)/3 - 100*level*level + (850*level)/3 - 200)
    end
    
    function expToAdvance(currentLevel, currentExp)
      return expForLevel(currentLevel+1) - currentExp
    end
    
    function resetSkillColor(id)
      local skill = skillsWindow:recursiveGetChildById(id)
      local widget = skill:getChildById('value')
      widget:setColor('#bbbbbb')
    end
    
    function setSkillBase(id, value, baseValue)
      if baseValue <= 0 or value < 0 then
        return
      end
      local skill = skillsWindow:recursiveGetChildById(id)
      local widget = skill:getChildById('value')
    
      if value > baseValue then
        widget:setColor('#008b00') -- green
        skill:setTooltip(baseValue .. ' +' .. (value - baseValue))
      elseif value < baseValue then
        widget:setColor('#b22222') -- red
        skill:setTooltip(baseValue .. ' ' .. (value - baseValue))
      else
        widget:setColor('#bbbbbb') -- default
        skill:removeTooltip()
      end
    end
    
    function setSkillValue(id, value)
      local skill = skillsWindow:recursiveGetChildById(id)
      local widget = skill:getChildById('value')
      widget:setText(value)
    end
    
    function setSkillColor(id, value)
      local skill = skillsWindow:recursiveGetChildById(id)
      local widget = skill:getChildById('value')
      widget:setColor(value)
    end
    
    function setSkillTooltip(id, value)
      local skill = skillsWindow:recursiveGetChildById(id)
      local widget = skill:getChildById('value')
      widget:setTooltip(value)
    end
    
    function setSkillPercent(id, percent, tooltip)
      local skill = skillsWindow:recursiveGetChildById(id)
      local widget = skill:getChildById('percent')
      widget:setPercent(math.floor(percent))
    
      if tooltip then
        widget:setTooltip(tooltip)
      end
    end
    
    function checkAlert(id, value, maxValue, threshold, greaterThan)
      if greaterThan == nil then greaterThan = false end
      local alert = false
    
      -- maxValue can be set to false to check value and threshold
      -- used for regeneration checking
      if type(maxValue) == 'boolean' then
        if maxValue then
          return
        end
    
        if greaterThan then
          if value > threshold then
            alert = true
          end
        else
          if value < threshold then
            alert = true
          end
        end
      elseif type(maxValue) == 'number' then
        if maxValue < 0 then
          return
        end
    
        local percent = math.floor((value / maxValue) * 100)
        if greaterThan then
          if percent > threshold then
            alert = true
          end
        else
          if percent < threshold then
            alert = true
          end
        end
      end
    
      if alert then
        setSkillColor(id, '#b22222') -- red
      else
        resetSkillColor(id)
      end
    end
    
    function update()
      local offlineTraining = skillsWindow:recursiveGetChildById('offlineTraining')
      if not g_game.getFeature(GameOfflineTrainingTime) then
        offlineTraining:hide()
      else
        offlineTraining:show()
      end
    
      local regenerationTime = skillsWindow:recursiveGetChildById('regenerationTime')
      if not g_game.getFeature(GamePlayerRegenerationTime) then
        regenerationTime:hide()
      else
        regenerationTime:show()
      end
    end
    
    function refresh()
      local player = g_game.getLocalPlayer()
      if not player then return end
      
      if expSpeedEvent then expSpeedEvent:cancel() end
      expSpeedEvent = cycleEvent(checkExpSpeed, 30*1000)
    
      onExperienceChange(player, player:getExperience())
      onLevelChange(player, player:getLevel(), player:getLevelPercent())
      onHealthChange(player, player:getHealth(), player:getMaxHealth())
      onManaChange(player, player:getMana(), player:getMaxMana())
      onSoulChange(player, player:getSoul())
      onFreeCapacityChange(player, player:getFreeCapacity())
      onStaminaChange(player, player:getStamina())
      onMagicLevelChange(player, player:getMagicLevel(), player:getMagicLevelPercent())
      onOfflineTrainingChange(player, player:getOfflineTrainingTime())
      onRegenerationChange(player, player:getRegenerationTime())
      onSpeedChange(player, player:getSpeed())
    
      for i=0,6 do
        onSkillChange(player, i, player:getSkillLevel(i), player:getSkillLevelPercent(i))
        onBaseSkillChange(player, i, player:getSkillBaseLevel(i))
      end
    
      update()
    
      local contentsPanel = skillsWindow:getChildById('contentsPanel')
      skillsWindow:setContentMinimumHeight(110)
      skillsWindow:setContentMaximumHeight(210)
    end
    
    function offline()
      if expSpeedEvent then expSpeedEvent:cancel() expSpeedEvent = nil end
    end
    
    function toggle()
      if skillsButton:isOn() then
        skillsWindow:close()
        skillsButton:setOn(false)
      else
        skillsWindow:open()
        skillsButton:setOn(true)
        skillsButton:setOpacity(1.0)
      end
    end
    
    function checkExpSpeed()
      local player = g_game.getLocalPlayer()
      if not player then return end
      
      local currentExp = player:getExperience()
      local currentTime = g_clock.seconds()
      if player.lastExps ~= nil then
        player.expSpeed = (currentExp - player.lastExps[1][1])/(currentTime - player.lastExps[1][2])
        onLevelChange(player, player:getLevel(), player:getLevelPercent())
      else
        player.lastExps = {}
      end
      table.insert(player.lastExps, {currentExp, currentTime})
      if #player.lastExps > 30 then
        table.remove(player.lastExps, 1)
      end
    end
    
    function onMiniWindowClose()
      skillsButton:setOn(false)
      skillsButton:setOpacity(0.5)
    end
    
    function onSkillButtonClick(button)
      local percentBar = button:getChildById('percent')
      if percentBar then
        percentBar:setVisible(not percentBar:isVisible())
        if percentBar:isVisible() then
          button:setHeight(21)
        else
          button:setHeight(21 - 6)
        end
      end
    end
    
    function onExperienceChange(localPlayer, value)
      setSkillValue('level', value)
    end
    
    function onLevelChange(localPlayer, value, percent)
      setSkillValue('experience', localPlayer:getName())
      setSkillValue('experiencee', value)
      local text = tr('You have %s percent to go', 100 - percent) .. '\n' ..
                   tr('%s of experience left', expToAdvance(localPlayer:getLevel(), localPlayer:getExperience()))
    
      if localPlayer.expSpeed ~= nil then
         local expPerHour = math.floor(localPlayer.expSpeed * 3600)
         if expPerHour > 0 then
            local nextLevelExp = expForLevel(localPlayer:getLevel()+1)
            local hoursLeft = (nextLevelExp - localPlayer:getExperience()) / expPerHour
            local minutesLeft = math.floor((hoursLeft - math.floor(hoursLeft))*60)
            hoursLeft = math.floor(hoursLeft)
            text = text .. '\n' .. tr('%d of experience per hour', expPerHour)
            text = text .. '\n' .. tr('Next level in %d hours and %d minutes', hoursLeft, minutesLeft)
         end
      end
    
      setSkillPercent('level', percent, text)
    end
    
    function onHealthChange(localPlayer, health, maxHealth)
      setSkillValue('health', health)
      checkAlert('health', health, maxHealth, 30)
    end
    
    function onManaChange(localPlayer, mana, maxMana)
      setSkillValue('mana', mana)
      checkAlert('mana', mana, maxMana, 30)
    end
    
    function onSoulChange(localPlayer, soul)
      setSkillValue('soul', soul)
    end
    
    function onFreeCapacityChange(localPlayer, freeCapacity)
      setSkillValue('capacity', freeCapacity)
      checkAlert('capacity', freeCapacity, localPlayer:getTotalCapacity(), 20)
    end
    
    function onTotalCapacityChange(localPlayer, totalCapacity)
      checkAlert('capacity', localPlayer:getFreeCapacity(), totalCapacity, 20)
    end
    
    function onStaminaChange(localPlayer, stamina)
      local hours = math.floor(stamina / 60)
      local minutes = stamina % 60
      if minutes < 10 then
        minutes = '0' .. minutes
      end
      setSkillValue('stamina', hours .. ":" .. minutes)
    end
    
    function onOfflineTrainingChange(localPlayer, offlineTrainingTime)
      if not g_game.getFeature(GameOfflineTrainingTime) then
        return
      end
      local hours = math.floor(offlineTrainingTime / 60)
      local minutes = offlineTrainingTime % 60
      if minutes < 10 then
        minutes = '0' .. minutes
      end
      local percent = 100 * offlineTrainingTime / (12 * 60) -- max is 12 hours
    
      setSkillValue('offlineTraining', hours .. ":" .. minutes)
      setSkillPercent('offlineTraining', percent, tr('You have %s percent', percent))
    end
    
    function onRegenerationChange(localPlayer, regenerationTime)
      if not g_game.getFeature(GamePlayerRegenerationTime) or regenerationTime < 0 then
        return
      end
      local minutes = math.floor(regenerationTime / 60)
      local seconds = regenerationTime % 60
      if seconds < 10 then
        seconds = '0' .. seconds
      end
    
      setSkillValue('regenerationTime', minutes .. ":" .. seconds)
      checkAlert('regenerationTime', regenerationTime, false, 300)
    end
    
    function onSpeedChange(localPlayer, speed)
      setSkillValue('speed', speed)
    
      onBaseSpeedChange(localPlayer, localPlayer:getBaseSpeed())
    end
    
    function onBaseSpeedChange(localPlayer, baseSpeed)
      setSkillBase('speed', localPlayer:getSpeed(), baseSpeed)
    end
    
    function onMagicLevelChange(localPlayer, magiclevel, percent)
      setSkillValue('magiclevel', magiclevel)
      setSkillPercent('magiclevel', percent, tr('You have %s percent to go', 100 - percent))
    
      onBaseMagicLevelChange(localPlayer, localPlayer:getBaseMagicLevel())
    end
    
    function onBaseMagicLevelChange(localPlayer, baseMagicLevel)
      setSkillBase('magiclevel', localPlayer:getMagicLevel(), baseMagicLevel)
    end
    
    function onSkillChange(localPlayer, id, level, percent)
      setSkillValue('skillId' .. id, level)
      setSkillPercent('skillId2', percent, tr('You have %s percent to go', 100 - percent))
      setSkillPercent('skillId3', percent, tr('You have %s percent to go', 100 - percent))
      setSkillPercent('skillId4', percent, tr('You have %s percent to go', 100 - percent))
      setSkillPercent('skillId5', percent, tr('You have %s percent to go', 100 - percent))
      setSkillPercent('skillId6', percent, tr('You have %s percent to go', 100 - percent))
    
      onBaseSkillChange(localPlayer, id, localPlayer:getSkillBaseLevel(id))
    end
    
    function onBaseSkillChange(localPlayer, id, baseLevel)
      setSkillBase('skillId'..id, localPlayer:getSkillLevel(id), baseLevel)
    end
    

    --------------------------------------------------------------Client-----------------------------------------------

    --------------------------------------------------------------Serve--------------------------------------------

    1- data>talkactions>

    e crie um arquivo chamado. talkClan.lua e add isso nele.

    function onSay(cid, words, param)   
       if not tonumber(param) then return true end
        doPlayerSendCancel(cid, "#getSto# ".. getPlayerStorageValue(cid, tonumber(param))) 
    return true
    end
    

    2- agora vai em talkactions.xml e add essa tag.

    <talkaction words="#getSto#" event="script" value="talkClan.lua"/>
    

    pronto agora é so testa, somente para PDA, pois so testei la...

    agora vamos la esse script peguei do client do "pokemon world"

    e a talk quem fez foi eu.

    Gosto da +rep

  3. Gente to com esse script e a Opcodes Instaladas no server se alguem poder ajuda como fazer pra funcionar

    InventorySlotStyles = {
      [InventorySlotHead] = "HeadSlot",
      [InventorySlotNeck] = "NeckSlot",
      [InventorySlotBack] = "BackSlot",
      [InventorySlotBody] = "BodySlot",
      [InventorySlotRight] = "RightSlot",
      [InventorySlotLeft] = "LeftSlot",
      [InventorySlotLeg] = "LegSlot",
      [InventorySlotFeet] = "FeetSlot",
      [InventorySlotFinger] = "FingerSlot",
      [InventorySlotAmmo] = "AmmoSlot"
    }
    
    Backgrounds = 
    {
    [0] = { path = '/images/inventory/Anbu_INV.png', id = 'background_anbu'},
    [1] = { path = '/images/inventory/Uchiha_INV.png', id = 'background_uchiha'},
    [2] = { path = '/images/inventory/Hyuuga_INV.png', id = 'background_hyuuga'},
    [3] = { path = '/images/inventory/Aburame_INV.png', id = 'background_aburame'},
    [4] = { path = '/images/inventory/Nara_INV.png', id = 'background_nara'},
    [5] = { path = '/images/inventory/Inuzuka_INV.png', id = 'background_inuzuka'},
    [6] = { path = '/images/inventory/Akimichi_INV.png', id = 'background_akimichi'},
    [7] = { path = '/images/inventory/Maito_INV.png', id = 'background_maito'},
    [8] = { path = '/images/inventory/Uchiha_INV.png', id = 'background_uchiha'},
    }
    
    inventoryWindow = nil
    inventoryPanel = nil
    inventoryButton = nil
    
    function init()
      connect(LocalPlayer, { onInventoryChange = onInventoryChange })
      connect(g_game, { onGameStart = refresh })
    
      g_keyboard.bindKeyDown('Ctrl+I', toggle)
    
      inventoryButton = modules.client_topmenu.addRightGameToggleButton('inventoryButton', tr('Inventory') .. ' (Ctrl+I)', '/images/topbuttons/inventory', toggle)
      inventoryButton:setOn(true)
    
      inventoryWindow = g_ui.loadUI('inventory', modules.game_interface.getRightPanel())
      inventoryWindow:disableResize()
      inventoryPanel = inventoryWindow:getChildById('contentsPanel')
    
      local itemWidget = inventoryPanel:getChildById('slot9')
      itemWidget:setVisible(false)
      local itemWidget = inventoryPanel:getChildById('slot10')
      itemWidget:setVisible(false)
               
      refresh()
      inventoryWindow:setup()
      inventoryWindow:close()
        inventoryButton:setOn(false)
    end
    
    	ProtocolGame.registerExtendedOpcode(26, 
    	function (protocol, opcode, buffer) 
    	local bg = Backgrounds[tonumber(vocation)] or Backgrounds[0]
    	vocation = bg
    	print(vocation) 
    	end
    	)
    
    function terminate()
      disconnect(LocalPlayer, { onInventoryChange = onInventoryChange })
      disconnect(g_game, { onGameStart = refresh })
    
      g_keyboard.unbindKeyDown('Ctrl+I')
    
      inventoryWindow:destroy()
      inventoryButton:destroy()
    end
    
    function refresh()
      local player = g_game.getLocalPlayer()
      for i=InventorySlotFirst,InventorySlotLast do
        if g_game.isOnline() then
          onInventoryChange(player, i, player:getInventoryItem(i))
        else
          onInventoryChange(player, i, nil)
        end
      end
    end
    
    function toggle()
    refresh()
      if inventoryButton:isOn() then
        inventoryWindow:close()
        inventoryButton:setOn(false)
      else
        inventoryWindow:open()
        inventoryButton:setOn(true)
      end
    end
    
    function onMiniWindowClose()
      inventoryButton:setOn(false)
    end
    
    -- hooked events
    function onInventoryChange(player, slot, item, oldItem)
          local player = g_game.getLocalPlayer()
          if(player) then 
          local vocation = player:getVocation()
          if(vocation ~= 0) then
          inventoryWindow:setImageSource(Backgrounds[vocation].path)
          end
          end
          
      if slot >= InventorySlotPurse then return end
      local itemWidget = inventoryPanel:getChildById('slot' .. slot)
      if item then
        itemWidget:setStyle('Item')
        itemWidget:setItem(item)
      else
        itemWidget:setStyle(InventorySlotStyles[slot])
        itemWidget:setItem(nil)
      end
    end
    

    tentei usar esse e ñ foi

    function onExtendedOpcode(cid, opcode, buffer)
    if opcode == 25 then
        doSendPlayerExtendedOpcode(cid, 26, getPlayerVocation(cid))
    end
        return true
    end
    

    quero so a oque precisar no servidor, pois ja tentei varios cods e n vai ;x

  4. Reportado para retirada do conteudo.

    Dono da shinobi online não permitiu RIPP do trabalho ardo que teve para faze-las!

     

    Link do servidor: https://www.facebook.com/ShinobiOnline?fref=ts

     

    SE QUER MERITO POR ALGUMA COISA, FAÇA VC MESMO!

    NÃO COPIE, RIPPER!

     

     

    Atenciosamente, Stigal.

    Caro amigo você leu o post ? que so ea libera se alguem permitisse??

    logico que o trabalho não é como falei no incio do topico.... um abraço e rlx seja mais coerente no que faz..

  5. forward.png Shinobionline back.png

    E um serve de naruto que esta muito tempo off, estarei postando suas Spr,
    pra mim posta elas gostaria de saber se posso posta sem problemas?

    Removido até o dono libera....

     

    +resp se gosto !.
    o arquivo esta ae já

    mdr.gif

  6. Ta dando esse erro aqui oque poreria ser ?

    Esse erro da no CLient:

    beurk.gif

    /client_topmenu/topmenu.lua:31: in function </client_topmenu/topmenu.lua:29>
    ERROR: protected lua call failed: LUA ERROR:
    /game_print/print.lua:44: attempt to index upvalue 'printWindow' (a nil value)
    stack traceback:
    [C]: ?
    /game_print/print.lua:44: in function 'callback'
    /client_topmenu/topmenu.lua:31: in function </client_topmenu/topmenu.lua:29>
    ERROR: protected lua call failed: LUA ERROR:
    /game_print/print.lua:44: attempt to index upvalue 'printWindow' (a nil value)
    stack traceback:
    [C]: ?
    /game_print/print.lua:44: in function 'callback'
    /client_topmenu/topmenu.lua:31: in function </client_topmenu/topmenu.lua:29>
    ERROR: /game_print/print.otui:4: [@onEscape]:2: attempt to call global 'terminate' (a nil value)
    ERROR: /game_print/print.otui:4: [@onEscape]:2: attempt to call global 'terminate' (a nil value)
    ERROR: protected lua call failed: LUA ERROR:
    /game_print/print.lua:39: attempt to index upvalue 'printWindow' (a nil value)
    stack traceback:
    [C]: ?
    /game_print/print.lua:39: in function </game_print/print.lua:38>
    ERROR: protected lua call failed: LUA ERROR:
    /game_print/print.otui:25: [@onClick]:2: attempt to call global 'enviarMensagem' (a nil value)
    stack traceback:
    [C]: in function 'enviarMensagem'
    /game_print/print.otui:25: [@onClick]:2: in function </game_print/print.otui:25: [@onClick]:1>
    ERROR: protected lua call failed: LUA ERROR:
    /game_print/print.otui:32: [@onClick]:2: attempt to call global 'toggle' (a nil value)

     

     

  7. da esse erro oq pode ser ?

     

    [09/01/2013 03:00:00] [Error - GlobalEvent Interface]

    [09/01/2013 03:00:00] In a timer event called from:

    [09/01/2013 03:00:00] data/globalevents/scripts/Golden Arena.lua:onTimer

    [09/01/2013 03:00:00] Description:

    [09/01/2013 03:00:00] data/lib/Golden Arena.lua:8: attempt to call global 'doSetMonsterPassive' (a nil value)

    [09/01/2013 03:00:00] stack traceback:

    [09/01/2013 03:00:00] data/lib/Golden Arena.lua:8: in function <data/lib/Golden Arena.lua:1>

    [09/01/2013 03:00:00] > Broadcasted message: "The Golden Arena are started!".

  8. ~~ Global Full ~~

     

     

    INAUGURADO: 26/07/12 ~~[on]~~

     

     

    IP: http://alagoasteam.servegame.com

    Versão: 8.60

    Porta: 7171

     

    Servidor online .

    24h/dia, 7dias/semana.

    Mapa Global Full com diversas hunts para aumentar a sua diversão.

    Use o Client Global 8.60 + IP Changer Download No Site.

    Diversas raids, invasões, bosses exclusivos.

    Sistema de tasks

    Inúmeras quests, Pits of Inferno 100% global, Inquisition Quest, Demon Oak Quest e muitas outras.

    Tutores.

    Excelente suporte "in game".

    Suporte pelo Fórum.

    Interação com a comunidade pelo Fórum ou Game-chat.

    Sem corrupção, staff não joga.

     

    ~/~

     

    # Rates:

    Skills: 25x

    Magic: 10x

    Loot: 2.0x

     

    ~/~

     

    Real Quests or News Features:

     

    Pits Of Inferno Quest 100%

    Demon Helmet 100%

    Anihilator 100%

    The Queen of Banshees 100%

    Inquisition Quest 100%

    Demon Oak 100%

    Yalahar Quest 100%

    Blue Legs Quest 100%

    Calassa Quest

    Nightmare and Necromancer Shield

    Tibia Spells 100%

    Tibia NPC''s 100%

    Enchanted System

    Rusty Remover System

    100% Real Task System

    ZAO

    Banuta

    Razachai(north zao) 100%

     

    Staff:

    Tutor [vago!.]

    Tutor [vago!.]

    Tutor [vago!.]

    Tutor [vago!.]

     

    Não perca mais tempo:

    Entre e prepare-se para a guerra.

    Alagoasteam!

  9. o Script Fuciona para muda uma outfit por vocations isso eu fiz e deu certo mais quando é pra retorna a outfit normal que estava antes ele ñ volta ;/

     

     

    ---- voce pissa no tile e ele muda a roupa quando vc sai éra pra sair tb....

     

     

     

    local naruto = {lookType = 180, lookHead = 79, lookBody = 91, lookLegs = 91, lookFeet = 91, lookTypeEx = 0, lookAddons = 0}
    local sasuke = {lookType = 181, lookHead = 86, lookBody = 86, lookLegs = 86, lookFeet = 86, lookTypeEx = 0, lookAddons = 0}[/b]
    [b]function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if getPlayerVocation(cid) == 1 then
    elseif(hasCondition(cid, CONDITION_OUTFIT) and getCreatureOutfit(cid).lookType == outfit.naruto) then
    elseif getPlayerVocation(cid) == 2 then
    elseif(hasCondition(cid, CONDITION_OUTFIT) and getCreatureOutfit(cid).lookType == outfit.sasuke) then
    end
    doSendMagicEffect(getThingPos(cid), 29) -- EFEITO QUE DARA
    return TRUE
    end[/b]
    [b]function onStepOut(cid, item, position, fromPosition)
      doRemoveConditions(cid, true)
    
    return true
    end
    
  10. Cara isso é facil de mais,

    segue aqui. vai em data/items>abre o items.xml

    1º pega o id da arma que vc quer.

    2º so add os atributos dela.

    vou dar um exenplo pra ti.

    Assim é o Club normal.

     

    <item id="2382" article="a" name="club">

    <attribute key="weight" value="2500" />

    <attribute key="defense" value="7" />

    <attribute key="attack" value="7" />

    <attribute key="weaponType" value="club" />

    </item>

    Assim é ele editado.

     

    <item id="2382" article="a" name="club">

    <attribute key="weight" value="2500" />

    <attribute key="defense" value="7" />

    <attribute key="attack" value="7" />

    <attribute key="skillClub" value="4" /> << note os skill atributos

    <attribute key="skillAxe" value="4" /> << note os skill atributos

    , <attribute key="skillSword" value="4" /> << note os skill atributos

    <attribute key="weaponType" value="club" />

    </item>

     

    qual quer coisa pode pergunta.

  11. ta ai simples mais ajuda que vc pode acresental agumas funções

     

     

     

    ---Transform Version 2.0 By Garep

    function onSay(cid, words, param)

    if getPlayerVocation(cid) == 2 then ---exenplo

    doPlayerSetVocation(cid, 17)

    local outfit = { lookType = 31 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}

    doSetCreatureOutfit(cid, outfit, -1)

    doSendMagicEffect(getCreaturePosition(cid), 13)

    doPlayerSendCancel(cid, "You transform!")

    elseif getPlayerVocation(cid) == 17 then ----exenplo

    doPlayerSetVocation(cid, 18)

    local outfit = { lookType = 32 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}

    doSetCreatureOutfit(cid, outfit, -1)

    doSendMagicEffect(getCreaturePosition(cid), 13)

    doPlayerSendCancel(cid, "You transform!")

    else

    doPlayerSendCancel(cid, "You can not transform.")

    end

     

    end

  12. fiz esse script em para que quando o player com certa voc morreu muda

    o id do corpo mais ta dando um erro ajuda ae

     

    - O corpo do player some mais o novo corpo nao apareçe da so esse erro.

     

    A distro que uso é o TFS 0.6.3

     

    Erro:

    [Error - CreatureScript Interface]
    data/creaturescripts/scripts/playerdeath.lua nDeath
    Description:
    (luaDoTransformItem) Item not found
    

     

     

     

    Script:

    function onDeath(cid, corpse, killer)
    if getPlayerVocation(cid) == 2 then  --Vai verificar a vocaçao goku
    doTransformItem(uid, 2444)     --corpo
    elseif isPlayer(cid) and
    getPlayerVocation(cid) == 4 then   --Vai verificar a vocaçao vegeta
    doTransformItem(uid, 4444)       --corpo 
    end
    end 

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...