
Tudo que FlameArcixt postou
-
Ativar Luzes OTC
Vai em data\modules\client_options\graphics.otui e procura por: OptionCheckBox id: enableLights !text: tr('Enable lights') E apague.
-
SCRIPT DE MÍSSIL (Por Favor, me ajudem)
local misseis = 5 -- quantidade de misseis local delay = 1 -- tempo entre o disparo de cada missel (milisegundos) local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -78.2, 1, -88.2, 1) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 41) function onTargetCreature(cid, target) for i = 1, misseis do addEvent(function() if isCreature(cid) and isCreature(target) then doCombat(cid, combat2, {type = 2, pos = getCreaturePosition(target)}) end end, delay*i) end end setCombatCallback(combat, CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature") function onCastSpell(cid, var) local waittime = 2 -- Tempo de exhaustion local storage = 1000600 if exhaustion.check(cid, storage) then return false end local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} local position2 = {x=getCreaturePosition(cid).x+3, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z} doSendMagicEffect(position1, 106) doSendMagicEffect(position2, 189) exhaustion.set(cid, storage, waittime) return doCombat(cid, combat, var) end
- Remeres Map Editor (3.3) Em grupo (LIVE)
-
Castle não esta salvando guild dominante
chama no discord, nao posso acompanhar oq vc ta fazendo a cada 5 minutos de resposta no tk Arcixt#1329 Topico finalizado, resolvido no Discord.
-
Castle não esta salvando guild dominante
function onStepIn(cid, item, pos, fromPosition) local pos = getThingPos(cid) if item.actionid == 16203 then if not isPlayer(cid) then return true end if getPlayerStorageValue(cd,"COH_STATUS") == 1 then doSendMagicEffect(getThingPos(cid), 14) doSendAnimatedText(pos, "", math.random(1, 255)) doPlayerSendTextMessage(cid, 20, "Seja Bem Vindo Guild ["..getPlayerGuildName(cid).."]!") else doSendMagicEffect(getThingPos(cid), 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Voce nao pertence a Guild dominante.") end return true end if item.actionid == 16202 then if not isPlayer(cid) then return true end if not getPlayerGuildId(cid) then doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Voce nao possui uma Guild.") end if (getPlayerStorageValue(cd,"COH_STATUS")) == -1 then setPlayerStorageValue(cid,"COH_PREPARE1", -1) setPlayerStorageValue(cid,"COH_PREPARE2", -1) setPlayerStorageValue(cid,"COH_STATUS", 1) doBroadcastMessage("[Vilarejo] O jogador ["..getCreatureName(cid).."] e sua Guild ["..getPlayerGuildName(cid).."] estao Dominando o Vilarejo , va impedir isso!") doCastleRemoveEnemies() doPlayerSendTextMessage(cid, 20, "[Vilarejo] Voce e sua Guild estao Dominando["..getPlayerGuildName(cid).."] !") end return true end if item.actionid == 16200 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then doSendAnimatedText(pos, "", math.random(1, 255)) if (getPlayerStorageValue(cd,"COH_PREPARE1")) ~= 0 then setPlayerStorageValue(cid,"COH_PREPARE1", 1) doBroadcastMessage("[Vilarejo] Atencao! A Guild "..getPlayerGuildName(cid).." esta tentando Dominar Vilarejo, preparem-se!") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, " Você nao possui uma guild.") return true end end if item.actionid == 16201 then if not isPlayer(cid) then return true end doSendAnimatedText(pos, "", math.random(1, 255)) end return true end
-
Castle não esta salvando guild dominante
function onStepIn(cid, item, pos, fromPosition) local pos = getThingPos(cid) if item.actionid == 16203 then if not isPlayer(cid) then return true end if getPlayerStorageValue(cd,"COH_STATUS") == 1 then doSendMagicEffect(getThingPos(cid), 14) doSendAnimatedText(pos, "", math.random(1, 255)) doPlayerSendTextMessage(cid, 20, "Seja Bem Vindo Guild ["..getPlayerGuildName(cid).."]!") else doSendMagicEffect(getThingPos(cid), 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Voce nao pertence a Guild dominante.") end return true end if item.actionid == 16202 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then if (getPlayerStorageValue(cd,"COH_STATUS")) == -1 then setPlayerStorageValue(cid,"COH_PREPARE1", -1) setPlayerStorageValue(cid,"COH_PREPARE2", -1) setPlayerStorageValue(cid,"COH_STATUS", 1) doBroadcastMessage("[Vilarejo] O jogador ["..getCreatureName(cid).."] e sua Guild ["..getPlayerGuildName(cid).."] estao Dominando o Vilarejo , va impedir isso!") doCastleRemoveEnemies() doPlayerSendTextMessage(cid, 20, "[Vilarejo] Voce e sua Guild estao Dominando["..getPlayerGuildName(cid).."] !") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Voce nao possui uma Guild.") end return true end if item.actionid == 16200 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then doSendAnimatedText(pos, "", math.random(1, 255)) if (getPlayerStorageValue(cd,"COH_PREPARE1")) ~= 0 then setPlayerStorageValue(cid,"COH_PREPARE1", 1) doBroadcastMessage("[Vilarejo] Atencao! A Guild "..getPlayerGuildName(cid).." esta tentando Dominar Vilarejo, preparem-se!") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, " Você nao possui uma guild.") return true end end if item.actionid == 16201 then if not isPlayer(cid) then return true end doSendAnimatedText(pos, "", math.random(1, 255)) end return true end Você ta setando valor do servidor e nao do player, ele ta checando se o servidor tem a storage, se o servidor tiver entao o player entra, ou seja, os enemigos também entram, botei pra setar valor nos players, testa agora
-
Castle não esta salvando guild dominante
function onStepIn(cid, item, pos, fromPosition) local pos = getThingPos(cid) if item.actionid == 16203 then if not isPlayer(cid) then return true end if getGlobalStorageValue("COH_STATUS") == 1 then doSendMagicEffect(getThingPos(cid), 14) doSendAnimatedText(pos, "", math.random(1, 255)) doPlayerSendTextMessage(cid, 20, "Seja Bem Vindo Guild ["..getPlayerGuildName(cid).."]!") else doSendMagicEffect(getThingPos(cid), 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Voce nao pertence a Guild dominante.") end return true end if item.actionid == 16202 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then if (getGlobalStorageValue("COH_STATUS")) == -1 then setGlobalStorageValue("COH_PREPARE1", -1) setGlobalStorageValue("COH_PREPARE2", -1) setGlobalStorageValue("COH_STATUS", 1) doBroadcastMessage("[Vilarejo] O jogador ["..getCreatureName(cid).."] e sua Guild ["..getPlayerGuildName(cid).."] estao Dominando o Vilarejo , va impedir isso!") doCastleRemoveEnemies() doPlayerSendTextMessage(cid, 20, "[Vilarejo] Voce e sua Guild estao Dominando["..getPlayerGuildName(cid).."] !") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Voce nao possui uma Guild.") end return true end if item.actionid == 16200 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then doSendAnimatedText(pos, "", math.random(1, 255)) if (getGlobalStorageValue("COH_PREPARE1")) ~= 0 then setGlobalStorageValue("COH_PREPARE1", 1) doBroadcastMessage("[Vilarejo] Atencao! A Guild "..getPlayerGuildName(cid).." esta tentando Dominar Vilarejo, preparem-se!") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, " Você nao possui uma guild.") return true end end if item.actionid == 16201 then if not isPlayer(cid) then return true end doSendAnimatedText(pos, "", math.random(1, 255)) end return true end
-
Castle não esta salvando guild dominante
Erro meu, deixei alguns parenteses abertos. function onStepIn(cid, item, pos, fromPosition) local pos = getThingPos(cid) if item.actionid == 16203 then if not isPlayer(cid) then return true end if getGlobalStorageValue("COH_STATUS") == 1 then doSendMagicEffect(getThingPos(cid), 14) doSendAnimatedText(pos, "", math.random(1, 255)) doPlayerSendTextMessage(cid, 20, "Seja Bem Vindo Guild ["..getPlayerGuildName(cid).."]!") else doSendMagicEffect(getThingPos(cid), 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Voce nao pertence a Guild dominante.") end return true end if item.actionid == 16202 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then if (getGlobalStorageValue("COH_STATUS")) ~= -1 then setGlobalStorageValue("COH_PREPARE1", -1) setGlobalStorageValue("COH_PREPARE2", -1) setGlobalStorageValue("COH_STATUS", 1) doBroadcastMessage("[Vilarejo] O jogador ["..getCreatureName(cid).."] e sua Guild ["..getPlayerGuildName(cid).."] estao Dominando o Vilarejo , va impedir isso!") doCastleRemoveEnemies() doPlayerSendTextMessage(cid, 20, "[Vilarejo] Voce e sua Guild estao Dominando["..getPlayerGuildName(cid).."] !") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Voce nao possui uma Guild.") end return true end if item.actionid == 16200 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then doSendAnimatedText(pos, "", math.random(1, 255)) if (getGlobalStorageValue("COH_PREPARE1")) ~= 0 then setGlobalStorageValue("COH_PREPARE1", 1) doBroadcastMessage("[Vilarejo] Atencao! A Guild "..getPlayerGuildName(cid).." esta tentando Dominar Vilarejo, preparem-se!") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, " Você nao possui uma guild.") return true end end if item.actionid == 16201 then if not isPlayer(cid) then return true end doSendAnimatedText(pos, "", math.random(1, 255)) end return true end
-
Castle não esta salvando guild dominante
O erro é que vc ta setando valor de texto em storage, ja vou corrigir aqui function onStepIn(cid, item, pos, fromPosition) local pos = getThingPos(cid) if item.actionid == 16203 then if not isPlayer(cid) then return true end if getGlobalStorageValue("COH_STATUS") == 1 then doSendMagicEffect(getThingPos(cid), 14) doSendAnimatedText(pos, "", math.random(1, 255)) doPlayerSendTextMessage(cid, 20, "Seja Bem Vindo Guild ["..getPlayerGuildName(cid).."]!") else doSendMagicEffect(getThingPos(cid), 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Voce nao pertence a Guild dominante.") end return true end if item.actionid == 16202 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then if (getGlobalStorageValue("COH_STATUS") ~= -1 then setGlobalStorageValue("COH_PREPARE1", -1) setGlobalStorageValue("COH_PREPARE2", -1) setGlobalStorageValue("COH_STATUS", 1) doBroadcastMessage("[Vilarejo] O jogador ["..getCreatureName(cid).."] e sua Guild ["..getPlayerGuildName(cid).."] estao Dominando o Vilarejo , va impedir isso!") doCastleRemoveEnemies() doPlayerSendTextMessage(cid, 20, "[Vilarejo] Voce e sua Guild estao Dominando["..getPlayerGuildName(cid).."] !") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Voce nao possui uma Guild.") end return true end if item.actionid == 16200 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then doSendAnimatedText(pos, "", math.random(1, 255)) if (getGlobalStorageValue("COH_PREPARE1") ~= 0 then setGlobalStorageValue("COH_PREPARE1", 1) doBroadcastMessage("[Vilarejo] Atencao! A Guild "..getPlayerGuildName(cid).." esta tentando Dominar Vilarejo, preparem-se!") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, " Você nao possui uma guild.") return true end end if item.actionid == 16201 then if not isPlayer(cid) then return true end doSendAnimatedText(pos, "", math.random(1, 255)) end return true end
-
Ativar Luzes OTC
local defaultOptions = { vsync = true, showFps = false, showPing = false, fullscreen = false, classicControl = true, smartWalk = false, dashWalk = false, autoChaseOverride = true, showStatusMessagesInConsole = true, showEventMessagesInConsole = true, showInfoMessagesInConsole = true, showTimestampsInConsole = true, showLevelsInConsole = true, showPrivateMessagesInConsole = false, showPrivateMessagesOnScreen = true, showLeftPanel = false, foregroundFrameRate = 61, backgroundFrameRate = 80, painterEngine = 0, enableAudio = true, enableMusicSound = true, musicSoundVolume = 100, enableAmbientSound = true, ambientSoundVolume = 30, enableEffectSound = true, effectSoundVolume = 100, enablePrivateMessageAlert = true, enableLights = true, ambientLight = 70, displayNames = true, displayHealth = true, displayText = true, displayExperience = true, dontStretchShrink = false, enableShaderEffects = true, displayEnvironmentEffects = true, displayMapGuides = true, displayGameTime = true, displaySquaredCrosshair = false, } local optionsWindow local optionsButton local optionsTabBar local options = {} local generalPanel local consolePanel local graphicsPanel local soundPanel local audioButton local function setupGraphicsEngines() local enginesRadioGroup = UIRadioGroup.create() local ogl1 = graphicsPanel:getChildById('opengl1') local ogl2 = graphicsPanel:getChildById('opengl2') local dx9 = graphicsPanel:getChildById('directx9') enginesRadioGroup:addWidget(ogl1) enginesRadioGroup:addWidget(ogl2) enginesRadioGroup:addWidget(dx9) if g_window.getPlatformType() == 'WIN32-EGL' then enginesRadioGroup:selectWidget(dx9) ogl1:setEnabled(false) ogl2:setEnabled(false) dx9:setEnabled(true) else ogl1:setEnabled(g_graphics.isPainterEngineAvailable(1)) ogl2:setEnabled(g_graphics.isPainterEngineAvailable(2)) dx9:setEnabled(false) if g_graphics.getPainterEngine() == 2 then enginesRadioGroup:selectWidget(ogl2) else enginesRadioGroup:selectWidget(ogl1) end if g_app.getOs() ~= 'windows' then dx9:hide() end end enginesRadioGroup.onSelectionChange = function(self, selected) if selected == ogl1 then setOption('painterEngine', 1) elseif selected == ogl2 then setOption('painterEngine', 2) end end if not g_graphics.canCacheBackbuffer() then graphicsPanel:getChildById('foregroundFrameRate'):disable() graphicsPanel:getChildById('foregroundFrameRateLabel'):disable() end end function onOnline() g_game.getProtocolGame():sendExtendedOpcode(ExtendedIds.DashWalking, (options['dashWalk'] and "1" or "0")) end function init() for k,v in pairs(defaultOptions) do g_settings.setDefault(k, v) options[k] = v end optionsWindow = g_ui.displayUI('options') optionsWindow:hide() optionsTabBar = optionsWindow:getChildById('optionsTabBar') optionsTabBar:setContentWidget(optionsWindow:getChildById('optionsTabContent')) g_keyboard.bindKeyDown('Ctrl+Shift+F', function() toggleOption('fullscreen') end) g_keyboard.bindKeyDown('Ctrl+N', toggleDisplays) generalPanel = g_ui.loadUI('game') optionsTabBar:addTab(tr('Game'), generalPanel, '/images/optionstab/game') consolePanel = g_ui.loadUI('console') optionsTabBar:addTab(tr('Console'), consolePanel, '/images/optionstab/console') graphicsPanel = g_ui.loadUI('graphics') optionsTabBar:addTab(tr('Graphics'), graphicsPanel, '/images/optionstab/graphics') audioPanel = g_ui.loadUI('audio') optionsTabBar:addTab(tr('Audio'), audioPanel, '/images/optionstab/audio') optionsButton = modules.client_topmenu.addLeftButton('optionsButton', tr('Options'), '/images/topbuttons/options', toggle) audioButton = modules.client_topmenu.addLeftButton('audioButton', tr('Audio'), '/images/topbuttons/audio', function() toggleOption('enableAudio') end) addEvent(function() setup() end) connect(g_game, { onGameStart = onOnline }) end function terminate() g_keyboard.unbindKeyDown('Ctrl+Shift+F') g_keyboard.unbindKeyDown('Ctrl+N') optionsWindow:destroy() optionsButton:destroy() audioButton:destroy() disconnect(g_game, { onGameStart = onOnline }) end function setup() -- load options for k,v in pairs(defaultOptions) do if type(v) == 'boolean' then setOption(k, g_settings.getBoolean(k), true) elseif type(v) == 'number' then setOption(k, g_settings.getNumber(k), true) end end setupGraphicsEngines() end function toggle() if optionsWindow:isVisible() then hide() else show() end end function show() optionsWindow:show() optionsWindow:raise() optionsWindow:focus() end function hide() optionsWindow:hide() end function toggleDisplays() if options['displayNames'] and options['displayHealth'] then setOption('displayNames', false) elseif options['displayHealth'] then setOption('displayHealth', false) else if not options['displayNames'] and not options['displayHealth'] then setOption('displayNames', true) else setOption('displayHealth', true) end end end function toggleOption(key) setOption(key, not getOption(key)) end function setOption(key, value, force) if not force and options[key] == value then return end local gameMapPanel = modules.game_interface.getMapPanel() if key == 'vsync' then g_window.setVerticalSync(value) elseif key == 'showFps' then modules.client_topmenu.setFpsVisible(value) elseif key == 'showPing' then modules.client_topmenu.setPingVisible(value) elseif key == 'fullscreen' then g_window.setFullscreen(value) elseif key == 'enableAudio' then g_sounds.setAudioEnabled(value) if value then audioButton:setIcon('/images/topbuttons/audio') else audioButton:setIcon('/images/topbuttons/audio_mute') end elseif key == 'enableMusicSound' then g_sounds.getChannel(SoundChannels.Music):setEnabled(value) elseif key == 'musicSoundVolume' then g_sounds.getChannel(SoundChannels.Music):setGain(value/100) audioPanel:getChildById('musicSoundVolumeLabel'):setText(tr('Music volume: %d', value)) elseif key == 'enableAmbientSound' then g_sounds.getChannel(SoundChannels.Ambient):setEnabled(value) elseif key == 'ambientSoundVolume' then g_sounds.getChannel(SoundChannels.Ambient):setGain(value/100) audioPanel:getChildById('ambientSoundVolumeLabel'):setText(tr('Ambient volume: %d', value)) elseif key == 'enableEffectSound' then g_sounds.getChannel(SoundChannels.Effect):setEnabled(value) elseif key == 'effectSoundVolume' then g_sounds.getChannel(SoundChannels.Effect):setGain(value/100) audioPanel:getChildById('effectSoundVolumeLabel'):setText(tr('Effect volume: %d', value)) elseif key == 'enablePrivateMessageAlert' then modules.game_console.setPrivateMessageAlert(value) elseif key == 'showLeftPanel' then modules.game_interface.getLeftPanel():setOn(value) elseif key == 'backgroundFrameRate' then local text, v = value, value if value <= 0 or value >= 201 then text = 'max' v = 0 end graphicsPanel:getChildById('backgroundFrameRateLabel'):setText(tr('Game framerate limit: %s', text)) g_app.setBackgroundPaneMaxFps(v) elseif key == 'foregroundFrameRate' then local text, v = value, value if value <= 0 or value >= 61 then text = 'max' v = 0 end graphicsPanel:getChildById('foregroundFrameRateLabel'):setText(tr('Interface framerate limit: %s', text)) g_app.setForegroundPaneMaxFps(v) elseif key == 'enableLights' then gameMapPanel:setDrawLights(10) graphicsPanel:getChildById('ambientLight'):setEnabled(true) graphicsPanel:getChildById('ambientLightLabel'):setEnabled(true) elseif key == 'ambientLight' then gameMapPanel:setMinimumAmbientLight(10) gameMapPanel:setDrawLights(10) elseif key == 'painterEngine' then g_graphics.selectPainterEngine(value) elseif key == 'displayNames' then gameMapPanel:setDrawNames(value) elseif key == 'displayHealth' then gameMapPanel:setDrawHealthBars(value) elseif key == 'displayText' then gameMapPanel:setDrawTexts(value) elseif key == 'displayExperience' then gameMapPanel:setDrawExperienceBars(value) elseif key == 'dontStretchShrink' then addEvent(function() modules.game_interface.updateStretchShrink() end) elseif key == 'enableShaderEffects' then g_graphics.setShouldUseShaders(value) elseif key == 'displayEnvironmentEffects' then -- modules.game_environment.setDisplay(value) elseif key == 'displayMapGuides' then modules.game_minimap.setGuidesDisplay(value) elseif key == 'displayGameTime' then modules.game_time.setDisplay(value) elseif key == 'displaySquaredCrosshair' then _G['UICREATUREBUTTON_USESQUARED'] = (value) elseif key == 'dashWalk' then if g_game.isOnline() then g_game.getProtocolGame():sendExtendedOpcode(ExtendedIds.DashWalking, (value and "1" or "0")) end end -- change value for keybind updates for _,panel in pairs(optionsTabBar:getTabsPanel()) do local widget = panel:recursiveGetChildById(key) if widget then if widget:getStyle().__class == 'UICheckBox' then widget:setChecked(value) elseif widget:getStyle().__class == 'UIScrollBar' then widget:setValue(value) end break end end g_settings.set(key, value) options[key] = value end function getOption(key) return options[key] end function addTab(name, panel, icon) optionsTabBar:addTab(name, panel, icon) end function addButton(name, func, icon) optionsTabBar:addButton(name, func, icon) end
-
Castle não esta salvando guild dominante
Tenta assim function onStepIn(cid, item, pos, fromPosition) local pos = getThingPos(cid) if item.actionid == 16203 then if not isPlayer(cid) then return true end if getGlobalStorageValue("COH_STATUS") == getPlayerGuildName(cid) then doSendMagicEffect(getThingPos(cid), 14) doSendAnimatedText(pos, "", math.random(1, 255)) doPlayerSendTextMessage(cid, 20, "Seja Bem Vindo Guild ["..tostring(getGlobalStorageValue("COH_STATUS")).."] !") else doSendMagicEffect(getThingPos(cid), 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Voce nao pertence a Guild "..getGlobalStorageValue("COH_STATUS")..".") end return true end if item.actionid == 16202 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then if (getGlobalStorageValue("COH_STATUS") ~= getPlayerGuildName(cid)) then setGlobalStorageValue("COH_PREPARE1", -1) setGlobalStorageValue("COH_PREPARE2", -1) setGlobalStorageValue("COH_STATUS", getPlayerGuildName(cid)) doBroadcastMessage("[Vilarejo] O jogador ["..getCreatureName(cid).."] e sua Guild ["..getPlayerGuildName(cid).."] estao Dominando o Vilarejo , va impedir isso!") doCastleRemoveEnemies() doPlayerSendTextMessage(cid, 20, "[Vilarejo] Voce e sua Guild estao Dominando["..tostring(getGlobalStorageValue("COH_STATUS")).."] !") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Voce nao possui uma Guild.") end return true end if item.actionid == 16200 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then doSendAnimatedText(pos, "", math.random(1, 255)) if (getGlobalStorageValue("COH_PREPARE1") ~= getPlayerGuildName(cid)) and ((getGlobalStorageValue("COH_PREPARE2") ~= getPlayerGuildName(cid))) then setGlobalStorageValue("COH_PREPARE1", getPlayerGuildName(cid)) doBroadcastMessage("[Vilarejo] Atencao! A Guild "..getPlayerGuildName(cid).." esta tentando Dominar Vilarejo, preparem-se!") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, " Você nao possui uma guild.") return true end end if item.actionid == 16201 then if not isPlayer(cid) then return true end doSendAnimatedText(pos, "", math.random(1, 255)) if (getGlobalStorageValue("COH_PREPARE2") ~= getPlayerGuildName(cid)) then setGlobalStorageValue("COH_PREPARE2", getPlayerGuildName(cid)) doBroadcastMessage("[Vilarejo] Atencao! A Guild "..getPlayerGuildName(cid).." esta muito proxima do dominio!") end end return true end
-
Limite de x item por conta
@GniusPlay Depende, como esse item é adquirido? por comando ou oq? XML: LUA:
-
Castle não esta salvando guild dominante
Cade o codigo do castle?
-
Script que da double exp pro player premium acount
@Wodbospartamarca uma resposta como solução, ai o topico fecha
-
Como debugar o código para encontrar o local do erro
A função mais incomum na spell é o isMega, aposto qhe essa função que ts retornando o problema, da uma olhada nela, deve tar no some functions
-
Como debugar o código para encontrar o local do erro
Esse script tá retornando um spell que ta em data/lib/pokemon moves.lua Procura por elseif = "Ember" ou só "Ember" que você acha o codigo do spell, se eu tiversse no pc passava a correção, mas estou no celular no momento.
-
Action de piso que so premium acount pode passar
-
Script que da double exp pro player premium acount
Voce precisa colocar no remeres map editor Em actionId voce coloca o numero da actions que você registrou no xml. Não esquece de marcar esse topico que voce criou, Action de piso que so premium acount pode passar - Suporte Tibia Otserv - Tibia King - Tudo sobre Tibia, OTServ e Bots! como resolvido
-
Script que da double exp pro player premium acount
-
Script que da double exp pro player premium acount
Action = Apertar. Movements = Passar em cima. o movements também é uma action, mas é para passar em cima, o script que eu passei ta certissimo pra isso, só tem que aplicar ele.
-
Action de piso que so premium acount pode passar
Em data/movements/movements.xml registre e altere o XXX <movevent type="StepIn" actionid="XXX" event="script" value="premium.lua"/> Em data/movements/script crie um arquivo chamado "premium.lua" e coloque o codigo dentro function onStepIn(cid, item, position, fromPosition, toPosition) if isPremium(cid) then else doTeleportThing(cid, fromPosition) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Somente players premium podem passar.") end return true end @Wodbosparta Marca o topico como resolvido.
-
Script que da double exp pro player premium acount
Editado, por favor, marca a mensagem como solução do topico, e se puder, deixa o rep+
-
Script que da double exp pro player premium acount
Em data/movements/movements.xml registre <movevent type="StepIn" actionid="XXX" event="script" value="premium.lua"/> Em data/movements/scripts/ crie um arquivo chamado "Premium.lua" e coloque o seguinte codigo dentro. function onStepIn(cid, item, position, fromPosition, toPosition) if isPremium(cid) then else doTeleportThing(cid, fromPosition) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Somente players premium podem passar.") end return true end Depois no seu mapa, apenas escolha o piso que vai ser vip, coloque ActionId que você registrou no XML nele, pronto.
-
Mensagem do player desalinhada com a sprite
Até onde eu sei sai junto, mas se não sai, não sei oq te dizer
-
Mensagem do player desalinhada com a sprite
O talk muda junto mano kk é de acordo com a heathbar