Tudo que Black Fenix postou
-
[Resolvido]
como boto no xml? depois tem que registra no monstro né
-
(Resolvido)Ajuda em Tile que teleporta random
@Sttorm VLW! funcionou perfeitamente
-
(Resolvido)Ajuda em Tile que teleporta random
Tou com uma script de teleport random porem o player nao e teleportado na hora que pisa, para ele poder se teleportado tem que passar por cima varias vezes tem como concertar isso? Script local pos = { {x = 555, y = 334, z = 7}, {x = 392, y = 309, z = 7}, {x = 330, y = 416, z = 7}, {x = 593, y = 409, z = 7}, {x = 593, y = 391, z = 7}, {x = 568, y = 391, z = 7}, {x = 568, y = 409, z = 7}, {x = 537, y = 391, z = 7}, {x = 505, y = 390, z = 7}, {x = 507, y = 409, z = 7}, } function onStepIn(cid) doTeleportThing(cid, pos[math.random(#pos)]) return true end
-
[Resolvido]
@Sttorm Essa script é no globalevents né?
-
Erro ao usa essa Spell
Tou com esse poblema na spell: preciso muito que alguem me ajude a concerta isso , Darei Rep+ Script da Spell local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -4.2, 1, -4.2, 1) arr1 = { {3} } local area1 = createCombatArea(arr1) setCombatArea(combat1, area1) local function onCastSpell1(parameters) return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var) end function magic779(cid) local effect = 29 local position2 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position2, effect) end function magic780(cid) local effect = 177 local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position1, effect) end function magic781(cid) local effect = 177 local position3 = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position3, effect) end function onCastSpell(cid, var) local waittime = 2.5 -- Tempo de exhaustion local storage = 1158001 if exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.") return false end local parameters = { cid = cid, var = var} addEvent(onCastSpell1, 0, parameters) addEvent(onCastSpell1, 400, parameters) addEvent(onCastSpell1, 800, parameters) addEvent(onCastSpell1, 1200, parameters) addEvent(onCastSpell1, 1600, parameters) addEvent(onCastSpell1, 2000, parameters) addEvent(magic779,0,cid) addEvent(magic780,0,cid) addEvent(magic781,0,cid) addEvent(magic779,400,cid) addEvent(magic780,400,cid) addEvent(magic781,400,cid) addEvent(magic779,800,cid) addEvent(magic780,800,cid) addEvent(magic781,800,cid) addEvent(magic779,1200,cid) addEvent(magic780,1200,cid) addEvent(magic781,1200,cid) addEvent(magic779,1600,cid) addEvent(magic780,1600,cid) addEvent(magic781,1600,cid) addEvent(magic779,2000,cid) addEvent(magic780,2000,cid) addEvent(magic781,2000,cid) exhaustion.set(cid, storage, waittime) return TRUE end
-
(Resolvido)Bug em effect de spells para monstros
@Sttorm deu esse erro [05/06/2018 19:29:14] [Error - LuaScriptInterface::loadFile] data/spells/scripts/monsters/madara.lua:8: unexpected symbol near ')' [05/06/2018 19:29:14] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/monsters/madara.lua) [05/06/2018 19:29:14] data/spells/scripts/monsters/madara.lua:8: unexpected symbol near ')'
-
(Resolvido)Bug em effect de spells para monstros
@Sttorm e onde fica o script dessa funçao? Edit: Para ser mais exato eu estou precisando de um script de uma spell que o monstro usa e fica soltando efeito em cima do monstro por x segundos
-
(Resolvido)Bug em effect de spells para monstros
Eu tenho um script de uma spell que o monstro usa porem ela não ta do jeito que eu quero, o efeito que aparece nao é em cima do monstro, o efeito fica aparecendo norte-oeste, quem puder ajeita para fica aparecendo o efeito em cima do monstro Script da spell: local tempo = 60 -- tempo em segundos. local ml = 40 -- quantos ira aumentar o skill de ML local skillfist = 0 -- quantos ira aumentar o skill de Fist local skillsword = 15 -- quantos ira aumentar o skill de Sword local skillaxe = 0 -- quantos ira aumentar o skill de Axe local skillclub = 15 -- quantos ira aumentar o skill de Club local skilldistance = 15 -- quantos ira aumentar o skill de Distance local skillshield = 0 -- quantos ira aumentar o skill de Shield local health = 25 -- A cada 1 segundo quantos aumentar de vida local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield) setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_SPEED, 300) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health) setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000) setCombatCondition(combat, condition) function onCastSpell(cid, var) if getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then doCombat(cid, combat, var) repeatEff(cid, 102, 102) doCreatureSay(cid, "Perfect Susanoo", TALKTYPE_MONSTER) else end end
-
(Resolvido)Erro em spells
@Sttorm Perfeito!
-
(Resolvido)Erro em spells
Minha spell esta com o seguinte Erro: Espero que consigam arrumar [05/06/2018 11:31:55] [Error - Spell Interface] [05/06/2018 11:31:55] data/spells/scripts/itachi/magia5.lua [05/06/2018 11:31:55] Description: [05/06/2018 11:31:55] (luaSetCombatParam) Combat not found Script da spell local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 26) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -4.8, 1, -4.2, 1) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 103) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 26) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -4.8, 1, -4.2, 1) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 103) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 26) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -4.8, 1, -4.2, 1) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 103) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 26) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -4.8, 1, -4.2, 1) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 103) local arr1 = { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } local arr2 = { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } local arr3 = { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) setCombatArea(combat1, area1) setCombatArea(combat2, area2) setCombatArea(combat3, area3) local function onCastSpell1(parameters) return isCreature(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var) end local function onCastSpell2(parameters) return isCreature(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var) end local function onCastSpell3(parameters) return isCreature(parameters.cid) and doCombat(parameters.cid, combat3, parameters.var) end function onCastSpell(cid, var) if isPlayer(cid) and exhaustion.check(cid, 120) then doPlayerSendCancel(cid, "You are exhausted.") doSendMagicEffect(playerpos, 2) return FALSE end local parameters = {cid = cid, var = var} local positions = { [1] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-5, z=getCreaturePosition(cid).z}, [2] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-6, z=getCreaturePosition(cid).z}, [3] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [4] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-1, z=getCreaturePosition(cid).z}, [5] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-2, z=getCreaturePosition(cid).z}, [6] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-3, z=getCreaturePosition(cid).z}, [7] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [8] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [9] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [10] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [11] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [12] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [13] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [14] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [15] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [16] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [17] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [18] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [19] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [20] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [21] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [22] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [23] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [24] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [25] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [26] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [27] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [28] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [29] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [30] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [31] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [32] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, } local function Efect1() for i=1, #positions do doSendDistanceShoot(positions[i], getCreaturePosition(cid), 26) end end local function Efect2() for i=1, #positions do doSendDistanceShoot(positions[i], getCreaturePosition(cid), 26) end end local function Efect3() for i=1, #positions do doSendDistanceShoot(positions[i], getCreaturePosition(cid), 26) end end local function Efect4() for i=1, #positions do doSendDistanceShoot(positions[i], getCreaturePosition(cid), 26) end end local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y+1, z=getPlayerPosition(cid).z} doSendMagicEffect(position, 75) exhaustion.set(cid, 120, 2) addEvent(onCastSpell1, 200, parameters) addEvent(onCastSpell2, 400, parameters) addEvent(onCastSpell3, 600, parameters) addEvent(Efect1, 100) addEvent(Efect2, 200) addEvent(Efect3, 300) addEvent(Efect4, 400) addEvent(Efect5, 500) return TRUE end
-
(Resolvido)Bug quando o player entra no serv
@Sttorm local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end 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 .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) 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(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "TiraBattle") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") end registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "msm") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "HeartDrop") registerCreatureEvent(cid, "AmuletoDeath") registerCreatureEvent(cid, "AmuletoKill") registerCreatureEvent(cid, "Niwdeath") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "StaffLogin") registerCreatureEvent(cid, "UpAbsolute") registerCreatureEvent(cid, "hmup") registerCreatureEvent(cid, "onPrepareDeathinifi") ---------- Reflect ---------------- registerCreatureEvent(cid, "reflect") if getPlayerStorageValue(cid, 3482101) ~= 0 then setPlayerStorageValue(cid, 3482101, 0) end ---------- Defensive 1 ---------------- registerCreatureEvent(cid, "defensive1") if getPlayerStorageValue(cid, 3482101) < 0 then setPlayerStorageValue(cid, 3482101, 0) end ---------- Defensive 2 ---------------- registerCreatureEvent(cid, "defensive2") if getPlayerStorageValue(cid, 3482102) < 0 then setPlayerStorageValue(cid, 3482102, 0) end ---------- PlayerPort--------------- if getPlayerStorageValue(cid, 49708) ~= 0 then setPlayerStorageValue(cid, 49708, 0) end return true end
-
(Resolvido)Bug quando o player entra no serv
Olá , estou com um bug muito chato no server que quando o player entra ele deslonga automaticamente acredito que o erro seja algo relacionado com o script login porem não consigo encontra o erro! amostra isso na distro porem o player não chega nem a entrar no server
-
Criar novo chão ( Tile ) RME
@zLockey9 Você criou o tile pelo items.otb?
-
BUG NOTEPAD
@Emanueldk poste o script q esta em verde
-
(Resolvido)Adicionar reset em script de promotion
@Sttorm Perfeito manin! vlw
-
(Resolvido)Adicionar reset em script de promotion
@Sttorm Perfeito so mais uma coisa tem como botar para o Max Level para poder fazer essa promotion seja extamente 1500. pq o 1500 ta como minimo
-
(Resolvido)Adicionar reset em script de promotion
O player faz a promotion normalmente porem nao reseta o lvl dele e nao consta nenhum erro na distro!
-
(Resolvido)Adicionar reset em script de promotion
Eu tenho uma script de promotion feito pelo amigo @Sttorm e eu queria adicionar mais uma coisa nela que é para quando o player fazer a promotion ele foce para o nivel 1 feito uma Reborn"reset" Script: local t = { [569] = {570, 1020, 3000, 3000}, } local itemid, count = 8306 , 1 local level = 1500 local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local a = t[getPlayerVocation(cid)] if msgcontains(msg, "mystic promotion") then if a then if getPlayerLevel(cid) >= level then if doPlayerRemoveItem(cid, itemid, count) then local outfit = {lookType = a[2]} doPlayerSetVocation(cid, a[1]) doCreatureChangeOutfit(cid, outfit) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + a[3]) setCreatureMaxMana(cid, getCreatureMaxMana(cid) + a[4]) addEvent(doRemoveCreature, 1000, cid) else selfSay('Voce precisa de '.. count ..' '.. getItemInfo(itemid).name ..' para fazer a Mystic Promotion.', cid) end else selfSay('Você precisa estar no level '.. level ..'.', cid) end else selfSay('Sua Vocation não tem Promotion disponivel, Voce Precisa estar na ultima Transform!', cid) end return true end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
(Resolvido)Help Botar proibido usar spells em x lugar
@Vodkart Perfeito Cara ! Vlw Rep +
-
(Resolvido)Help Botar proibido usar spells em x lugar
@Vodkart local config = {pos = {x=1765, y=578, z=7},tempo = 30,effect1 = 10,effect2 = 10} local areas ={ -- areas bloqueadas {from = {x=97, y=1773, z=7},to = {x=109, y=1785, z=7}}, -- Evento {from = {x=1008,y=1018,z=7},to = {x=1011,y=1021,z=7}} } function onCastSpell(cid, var) for _, var in ipairs(areas) do if isInRange(getCreaturePosition(cid), var.from, var.to) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Voce nao pode usar essa magia nesse local") return true end end function onCastSpell(cid, var) if isPlayer(getCreatureTarget(cid)) then target = getCreatureTarget(cid) addEvent(doTeleportThing, 1000*config.tempo, target, getThingPos(target), true) addEvent(doSendMagicEffect, 1000*config.tempo, getThingPos(target), config.effect2) doSendMagicEffect(getThingPos(target), config.effect1) doTeleportThing(target, config.pos) if isCreature(cid) then doPlayerSendTextMessage(target, 27, "Voce ".. getCreatureName(cid) ..".") end if isPlayer(cid) and isCreature(target) then doPlayerSendTextMessage(cid, 27, "Voce levou ".. getCreatureName(target) .."!") end else doPlayerSendCancel(cid, "Voce") end return true end
-
(Resolvido)Help Botar proibido usar spells em x lugar
@Vodkart deu esse erro: [28/05/2018 11:01:30] [Error - LuaScriptInterface::loadFile] data/spells/scripts/carvalho/kamui1.lua:33: 'end' expected (to close 'function' at line 6) near '<eof>' [28/05/2018 11:01:30] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/carvalho/kamui1.lua) [28/05/2018 11:01:30] data/spells/scripts/carvalho/kamui1.lua:33: 'end' expected (to close 'function' at line 6) near '<eof>' [28/05/2018 11:01:30] [Error - LuaScriptInterface::loadFile] data/spells/scripts/carvalho/kamui1.lua:33: 'end' expected (to close 'function' at line 6) near '<eof>' [28/05/2018 11:01:31] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/carvalho/kamui1.lua) [28/05/2018 11:01:31] data/spells/scripts/carvalho/kamui1.lua:33: 'end' expected (to close 'function' at line 6) near '<eof>'
-
(Resolvido)Help Botar proibido usar spells em x lugar
@Sttorm eu queria tipo uma tabela por que e muitos lugares que vou botar
-
(Resolvido)Help Botar proibido usar spells em x lugar
eu queria que essa magia nao podesse ser usada em x lugar segue o script local config = { pos = {x=1765, y=578, z=7}, -- tempo = 30, -- effect1 = 10, -- effect2 = 10 -- } function onCastSpell(cid, var) if isPlayer(getCreatureTarget(cid)) then target = getCreatureTarget(cid) addEvent(doTeleportThing, 1000*config.tempo, target, getThingPos(target), true) addEvent(doSendMagicEffect, 1000*config.tempo, getThingPos(target), config.effect2) doSendMagicEffect(getThingPos(target), config.effect1) doTeleportThing(target, config.pos) if isCreature(cid) then doPlayerSendTextMessage(target, 27, "Voce ".. getCreatureName(cid) ..".") end if isPlayer(cid) and isCreature(target) then doPlayerSendTextMessage(cid, 27, "Voce levou para ".. getCreatureName(target) .."!") end else doPlayerSendCancel(cid, "Voces") end return true end
-
(Resolvido)Spell que da looktype por determinado tempo
@Sttorm Perfeito! Vlw Obrigado pela ajuda
-
(Resolvido)Spell que da looktype por determinado tempo
@Sttorm Eu botei mais a magia nao pegou e nao consta nenhum erro na distro se possivel bota ai pra mim function onCastSpell(cid, var) local pos = getCreaturePosition(cid) local target = getCreatureTarget(cid) local targetpos = getCreaturePosition(target) local tsuku ={x = 103, y = 1780, z = 7} local alvo = {x = 103, y = 1777, z = 7} local from1,to1 = {x=97, y=1773, z=7},{x=109, y=1785, z=7} local from2,to2 = {x=979, y=911, z=7},{x=994, y=918, z=7} local from3,to3 = {x=557, y=1029, z=6},{x=573, y=1044, z=6} if isInRange(pos, from1, to1) then doPlayerSendCancel(cid, "Você ja esta !") return FALSE end if isInRange(pos, from2, to2) or isInRange(pos, from3, to3) then doPlayerSendCancel(cid, "Você nao pode usar !") return FALSE end if getTileInfo(getThingPos(cid)).pvp then doPlayerSendCancel(cid, "Você nao pode aqui!") return FALSE end if exhaustion.check(cid, 13132) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 13132) .. " segundos para usar novamente.") return FALSE end local function Teleport_Player(cid) doTeleportThing(cid, pos) end local function Teleport_Target(target) doCreatureSetNoMove(target, 0) doTeleportThing(target, targetpos) end local mob_player = getTopCreature({x=x, y=y, z=from1.z}).uid if mob_player ~= 0 and isPlayer(mob_player) then doTeleportThing(cid, pos) end end end end local function Teleport_Target_Emergency() for x = from1.x, to1.x do for y = from1.y, to1.y do end end if isPlayer(target) then exhaustion.set(cid, 13132, 20) doSendMagicEffect(alvo, 182) doCreatureSay(cid, "...!", TALKTYPE_MONSTER) addEvent(Teleport_Player, 15000, cid) addEvent(Teleport_Target, 15000, target) addEvent(Teleport_Player_Emergency, 20000) addEvent(Teleport_Target_Emergency, 20000) end