Ir para conteúdo

Bennyhappy

Artesão
  • Total de itens

    118
  • Registro em

  • Última visita

Tudo que Bennyhappy postou

  1. fico ste error 17:31 God Elite [124]: firewalker 17:31 Boots Repair: ¿Quieres reparar tus firewalker boots por 20000 gold coins? 17:31 God Elite [124]: yes 17:31 Boots Repair: Disculpa, no tienes Worn sofs Boots. com soft boots funsiona bem
  2. como fico?XD
  3. Eu fiz isso, para adicionar, doSendMagicEffect(getPlayerPosition(cid), 12) para reparar soft boots e doSendMagicEffect(getPlayerPosition(cid), 13) para reparar Firewalker boots mas eu tenho esse problema [Error - LuaScriptInterface::loadFile] data/npc/scripts/softst.lua:59: '<eof>' expected near 'end' [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/softst.lua data/npc/scripts/softst.lua:59: '<eof>' expected near 'end' este é o script 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) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid if(msgcontains(msg, 'soft') or msgcontains(msg, 'soft boots')) then selfSay('¿Quieres reparar tus soft boots por 20000 gold coins?', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if(getPlayerItemCount(cid, 10021) >= 1) then if(doPlayerRemoveMoney(cid, 20000) == TRUE) then doPlayerRemoveItem(cid, 10021, 1) doPlayerAddItem(cid, 2640) doSendMagicEffect(getPlayerPosition(cid), 12) selfSay('Aqui tienes.', cid) else selfSay('¡No mames wey!, ¡no te alcanza el dinero!, ¡¡regresate a cazar mounstruos para juntar, jodido!!.', cid) end else selfSay('Disculpa, no tienes Worn sofs Boots.', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then talkState[talkUser] = 0 selfSay('Ok pues.', cid) end if(msgcontains(msg, 'firewalker') or msgcontains(msg, 'firewalker boots')) then selfSay('¿Quieres reparar tus firewalker boots por 20000 gold coins?', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if(getPlayerItemCount(cid, 10022) >= 1) then if(doPlayerRemoveMoney(cid, 20000) == TRUE) then doPlayerRemoveItem(cid, 10022, 1) doPlayerAddItem(cid, 9933) doSendMagicEffect(getPlayerPosition(cid), 13) selfSay('Aqui tienes.', cid) else selfSay('¡No mames wey!, ¡no te alcanza el dinero!, ¡¡regresate a cazar mounstruos para juntar, jodido!!.', cid) end else selfSay('¿¡Seras pendejo!?, ¿donde estan tus Worn of Firewalker Boots?. Si las olvidaste vete y cuando las tengas ven conmigo.', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then talkState[talkUser] = 0 selfSay('Ok pues.', cid) end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  4. Bennyhappy

    Npc Do Hunt

    este script, funciona bem, é um NPC, que transporta o jogador para uma área do hunt só pode ser um jogador, você é cobrado um determinado item, e depois de um tempo você é transportado de volta para o NPC, eu queria acrescentar mais diversas áreas para hunt, (demon, Hydra, Dragon Lord, Frost Dragon, Draken Elite) que só um jogador pode ir para (demon) outro jogador (hydra) e da mesma forma, algum tempo depois de ter sido transportado de volta para o NPC, @bump
  5. oi, poderia me ajudar com isso script, fazer esse npc, levar vários jogadores a diferentes áreas de Hunt, por exemplo, Demon, Hydras, Dragon lord, Frost Dragon, Draken Elite, mas apenas para enviar um jogador para cada zona, 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 pos = {x=9090, y=8461, z=7} -- Local de hunt local posreturn = {x=8991, y=8498, z=7} -- POsicion donde sera llevado el player cuando se le acabe su tiempo config = { time = 5 ---Tiempo que va estar adentro de la hunt----- } function doReturnPos() doTeleportThing(cid, posreturn) setGlobalStorageValue(24688, 0) setGlobalStorageValue(24686, none) setPlayerStorageValue(cid, 28680, 0) end if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'hunt') then if getGlobalStorageValue(24688) == 1 then doPlayerSendTextMessage(cid,22,"O player "..getGlobalStorageValue(24686).." esta en la hunt de paga tienes que esperar ah que salga") return true end if doPlayerRemoveItem(cid, 2456, 1) == TRUE then doPlayerSendTextMessage(cid,22,"Grandioso "..getPlayerName(cid).." fue teleportado.") doTeleportThing(cid, pos) setGlobalStorageValue(24688, 1) setGlobalStorageValue(24686, getPlayerName(cid)) setPlayerStorageValue(cid, 28680, 1) addEvent(doReturnPos, config.time*60*1000) else doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." Necesitas de Nombre del item para entrar a la hunt de paga") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end else selfSay('Diga Hunt', cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  6. obrigado +rep
  7. Preciso de ajuda para terminar esse script, o que eu tenho funciona bem, só preciso de acrescentar que só um monstro pode ser invocado no máximo, e dinheiro para remover 1 cc function onUse(cid, item, frompos, item2, topos) pos = getPlayerPosition(cid) if item.itemid == 12432 then if getPlayerLevel(cid) >= 150 then local creature = doSummonCreature("Dragon", pos) doConvinceCreature(cid, creature) doPlayerSay(cid,"Ve "..getCreatureName(creature).."!!!",1) else doPlayerSendCancel(cid, "Necesitas minimo lvl 150.") doSendMagicEffect(pos,CONST_ME_POFF) return true end doSendMagicEffect(topos,61) end return true end adicionar doPlayerSendCancel(cid, "você já tem um suumon.") y doPlayerRemoveMoney(cid, 12000)
  8. obrigado pela sua atenção! mas hey fez o script a mim mesmo. local spell = 'Mega Divine Missile' function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerLearnedInstantSpell(cid, spell) == FALSE then playerLearnInstantSpell(cid, spell) doCreatureSay(cid, 'ahora tu aprendiste la mystica magia creada por el dios Archer.', TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(cid), 14) doRemoveItem(item.uid) else doPlayerSendCancel(cid, 'Ya sabes este Hechizo.') end return TRUE end
  9. quando se utiliza um scroll, dar ao jogador uma nova magia custum example: exori mega san <instant name="Mega Divine Missile" words="exori Mega san" lvl="200" mana="200" prem="1" range="4" casterTargetOrDirection="1" needlearn="0" blockwalls="1" exhaustion="2000" event="script" value="attack/mega divine missile.lua"> <vocation id="3"/> <vocation id="7"/> <vocation id="11"/> </instant> mega divine missile.lua local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2, -30, -2, -40, 7, 7, 3.4, 5.1) function onCastSpell(cid, var) return doCombat(cid, combat, var) end
  10. que as portas abertas não são eliminados não pode ajudar? Este script funciona perfeitamente function onUse(cid, item, fromPosition, itemEx, toPosition) local monstros ={ {{x = 9168, y = 8572, z = 7}, "Dragon"}, {{x = 9175, y = 8558, z = 7}, "Dragon"}, {{x = 9169, y = 8575, z = 7}, "Dragon"}, {{x = 9172, y = 8556, z = 7}, "Dragon"}, {{x = 9173, y = 8567, z = 7}, "Dragon"}, {{x = 9161, y = 8566, z = 7}, "Dragon"}, {{x = 9165, y = 8567, z = 7}, "Dragon"}, {{x = 9163, y = 8557, z = 7}, "Dragon"}, {{x = 9183, y = 8560, z = 7}, "Dragon"}, {{x = 9181, y = 8566, z = 7}, "Dragon"}, {{x = 9165, y = 8560, z = 7}, "Dragon"}, {{x = 9171, y = 8575, z = 7}, "Dragon Lord"}, {{x = 9184, y = 8557, z = 7}, "Dragon Lord"}, {{x = 9184, y = 8565, z = 7}, "Dragon Lord"}, {{x = 9177, y = 8556, z = 7}, "Dragon Lord"}, {{x = 9168, y = 8558, z = 7}, "Dragon Lord"}, {{x = 9165, y = 8555, z = 7}, "Dragon Lord"}, {{x = 9162, y = 8563, z = 7}, "Dragon Lord"}, {{x = 9175, y = 8575, z = 7}, "Dragon Lord"}, {{x = 9170, y = 8565, z = 7}, "Dragon Lord"}, {{x = 9169, y = 8562, z = 7}, "Dragon Lord"}, {{x = 9177, y = 8567, z = 7}, "Dragon Lord"}, {{x = 9169, y = 8568, z = 7}, "Dragon Lord Hatchling"}, {{x = 9178, y = 8573, z = 7}, "Dragon Lord Hatchling"}, {{x = 9182, y = 8570, z = 7}, "Dragon Lord Hatchling"}, {{x = 9178, y = 8563, z = 7}, "Dragon Lord Hatchling"} } if SevenFloor() == false then return doPlayerSendCancel(cid, "sorry already have monster.") end for _, summon in pairs(monstros) do doCreateMonster(summon[2], summon[1]) end doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) local walls = {{x=9166, y=8574, z=7, stackpos=1},{x=9173, y=8569, z=7, stackpos=1},{x=9180, y=8581, z=7, stackpos=1},{x=9174, y=8570, z=7, stackpos=1},{x=9176, y=8573, z=7, stackpos=1}} local doors = {9166, 5278, 9165, 5282, 5282} for i=1, 5 do if getTileItemById(walls[i], doors[i]).uid > 0 then return false else doCreateItem(doors[i],1,walls[i]) end end function SevenFloor() local fromPosition,toPosition = {x = 9155, y = 8552, z = 7},{x = 9191, y = 8589, z = 7} -- começo e final da ára for x = fromPosition.x, toPosition.x do for y = fromPosition.y, toPosition.y do local pos = {x=x, y=y, z=fromPosition.z} local m = getTopCreature(pos).uid if m ~= 0 and isMonster(m) then return false end doCleanTile(pos) end end return true end end mas se eu usar esse mesmo script em outro andar com as posições z = 6 marca de erro [Error - Action Interface] data/actions/scripts/private 2/spawn dragys 2.lua:onUse Description: data/actions/scripts/private 2/spawn dragys 2.lua:30: attempt to call global 'SixFloor' (a nil value) stack traceback: data/actions/scripts/private 2/spawn dragys 2.lua:30: in function <data/actions/scripts/private 2/spawn dragys 2.lua:1> e precisa ser 2 scripts diferentes, porque eles usam uniqueid diferente <action uniqueid="7001" event="script" value="private 1/spawn dragys 1.lua" /> <action uniqueid="5001" event="script" value="private 2/spawn dragys 2.lua" /> ajuda de ninguém?
  11. no momento para puxar a alavanca e as portas estão fechadas, ele funciona bem, Agora, eu vim para matar os monstros, e algumas portas foram deixada aberto Agora eu puxe a Alavanca, e LIMPAR a área e fromPosition y toPosition, e novamente eu acho que os monstros, o único problema, ao limpar, remove as portas deixadas aberto alguma forma de bloquear item ID na respectiva área? bloquear item ID de modo a que as portas abertas, nao são eliminado Position portas abertas: porta número 1: ItemID: [9167]. Position: [X: 9166] [Y: 8574] [Z: 7]. porta número 2: ItemID: [5280]. Position: [X: 9173] [Y: 8569] [Z: 7]. porta número 3: ItemID: [5283]. Position: [X: 9174] [Y: 8570] [Z: 7]. porta número 4: ItemID: [5283]. Position: [X: 9176] [Y: 8573] [Z: 7]. porta número 5: ItemID: [9167]. Position: [X: 9180] [Y: 8581] [Z: 7].
  12. Bennyhappy

    Piso Com Storage

    function onStepIn(cid, item, position, fromPosition) local tileConfig = { kickPos = fromPosition, kickEffect = CONST_ME_POFF, kickMsg = "You need 5 or more reset for acces this area.", enterMsg = "Welcome to 5 reset or more area!", enterEffect = CONST_ME_MAGIC_BLUE, } if isPlayer(cid) == true then if getPlayerStorageValue(cid,97651) < 1 then doTeleportThing(cid, tileConfig.kickPos) doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect) doPlayerSendCancel(cid, tileConfig.kickMsg) return end doPlayerSendTextMessage(cid, 25, tileConfig.enterMsg) doSendMagicEffect(position, tileConfig.enterEffect) return true end end apenas modifica o storage para o outra 4 andar if getPlayerStorageValue(cid,97651) < 1 then
  13. Eu preciso trabalhar em 2 (scripts) diferentes, são diferentes (salas) cada um tem sua alavanca, O será possível modificar o script original de forma adequada, e só corrigir que, no momento de (limpo) remove as portas são abertas, de alguma forma de bloco ID, portas abertas, de modo que não remover? Script original by votkart: function onUse(cid, item, fromPosition, itemEx, toPosition) local monstros ={ {{x = 9168, y = 8572, z = 7}, "Dragon"}, {{x = 9175, y = 8558, z = 7}, "Dragon"}, {{x = 9169, y = 8575, z = 7}, "Dragon"}, {{x = 9172, y = 8556, z = 7}, "Dragon"}, {{x = 9173, y = 8567, z = 7}, "Dragon"}, {{x = 9161, y = 8566, z = 7}, "Dragon"}, {{x = 9165, y = 8567, z = 7}, "Dragon"}, {{x = 9163, y = 8557, z = 7}, "Dragon"}, {{x = 9183, y = 8560, z = 7}, "Dragon"}, {{x = 9181, y = 8566, z = 7}, "Dragon"}, {{x = 9165, y = 8560, z = 7}, "Dragon"}, {{x = 9171, y = 8575, z = 7}, "Dragon Lord"}, {{x = 9184, y = 8557, z = 7}, "Dragon Lord"}, {{x = 9184, y = 8565, z = 7}, "Dragon Lord"}, {{x = 9177, y = 8556, z = 7}, "Dragon Lord"}, {{x = 9168, y = 8558, z = 7}, "Dragon Lord"}, {{x = 9165, y = 8555, z = 7}, "Dragon Lord"}, {{x = 9162, y = 8563, z = 7}, "Dragon Lord"}, {{x = 9175, y = 8575, z = 7}, "Dragon Lord"}, {{x = 9170, y = 8565, z = 7}, "Dragon Lord"}, {{x = 9169, y = 8562, z = 7}, "Dragon Lord"}, {{x = 9177, y = 8567, z = 7}, "Dragon Lord"}, {{x = 9169, y = 8568, z = 7}, "Dragon Lord Hatchling"}, {{x = 9178, y = 8573, z = 7}, "Dragon Lord Hatchling"}, {{x = 9182, y = 8570, z = 7}, "Dragon Lord Hatchling"}, {{x = 9178, y = 8563, z = 7}, "Dragon Lord Hatchling"} } if SevenFloor() == false then return doPlayerSendCancel(cid, "sorry already have monster.") end for _, summon in pairs(monstros) do doCreateMonster(summon[2], summon[1]) end doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) return true end function SevenFloor() local fromPosition,toPosition = {x = 9155, y = 8552, z = 7},{x = 9191, y = 8589, z = 7} -- começo e final da ára for x = fromPosition.x, toPosition.x do for y = fromPosition.y, toPosition.y do local pos = {x=x, y=y, z=fromPosition.z} local m = getTopCreature(pos).uid if m ~= 0 and isMonster(m) then return false end doCleanTile(pos) end end return true end @bump
  14. Eu não posso usar a mesma função (Docreateitem) em 2 scripts diferentes? quando se usa este (script) funciona perfeitamente, function onUse(cid, item, fromPosition, itemEx, toPosition) local monstros ={ {{x = 9168, y = 8572, z = 7}, "Dragon"}, {{x = 9175, y = 8558, z = 7}, "Dragon"}, {{x = 9169, y = 8575, z = 7}, "Dragon"}, {{x = 9172, y = 8556, z = 7}, "Dragon"}, {{x = 9173, y = 8567, z = 7}, "Dragon"}, {{x = 9161, y = 8566, z = 7}, "Dragon"}, {{x = 9165, y = 8567, z = 7}, "Dragon"}, {{x = 9163, y = 8557, z = 7}, "Dragon"}, {{x = 9183, y = 8560, z = 7}, "Dragon"}, {{x = 9181, y = 8566, z = 7}, "Dragon"}, {{x = 9165, y = 8560, z = 7}, "Dragon"}, {{x = 9171, y = 8575, z = 7}, "Dragon Lord"}, {{x = 9184, y = 8557, z = 7}, "Dragon Lord"}, {{x = 9184, y = 8565, z = 7}, "Dragon Lord"}, {{x = 9177, y = 8556, z = 7}, "Dragon Lord"}, {{x = 9168, y = 8558, z = 7}, "Dragon Lord"}, {{x = 9165, y = 8555, z = 7}, "Dragon Lord"}, {{x = 9162, y = 8563, z = 7}, "Dragon Lord"}, {{x = 9175, y = 8575, z = 7}, "Dragon Lord"}, {{x = 9170, y = 8565, z = 7}, "Dragon Lord"}, {{x = 9169, y = 8562, z = 7}, "Dragon Lord"}, {{x = 9177, y = 8567, z = 7}, "Dragon Lord"}, {{x = 9169, y = 8568, z = 7}, "Dragon Lord Hatchling"}, {{x = 9178, y = 8573, z = 7}, "Dragon Lord Hatchling"}, {{x = 9182, y = 8570, z = 7}, "Dragon Lord Hatchling"}, {{x = 9178, y = 8563, z = 7}, "Dragon Lord Hatchling"} } if SevenFloor() == false then return doPlayerSendCancel(cid, "sorry already have monster.") end for _, summon in pairs(monstros) do doCreateMonster(summon[2], summon[1]) end doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) local walls = {{x=9166, y=8574, z=7, stackpos=1},{x=9173, y=8569, z=7, stackpos=1},{x=9180, y=8581, z=7, stackpos=1},{x=9174, y=8570, z=7, stackpos=1},{x=9176, y=8573, z=7, stackpos=1}} local doors = {9166, 5278, 9165, 5282, 5282} for i=1, 5 do if getTileItemById(walls[i], doors[i]).uid > 0 then return false else doCreateItem(doors[i],1,walls[i]) end end function SevenFloor() local fromPosition,toPosition = {x = 9155, y = 8552, z = 7},{x = 9191, y = 8589, z = 7} -- começo e final da ára for x = fromPosition.x, toPosition.x do for y = fromPosition.y, toPosition.y do local pos = {x=x, y=y, z=fromPosition.z} local m = getTopCreature(pos).uid if m ~= 0 and isMonster(m) then return false end doCleanTile(pos) end end return true end end usar o segundo é o mesmo script, eu faço esse erro, basta alterar piso de 7 a 6 em docreateitem function onUse(cid, item, fromPosition, itemEx, toPosition) local monstros ={ {{x = 9168, y = 8572, z = 6}, "Dragon"}, {{x = 9175, y = 8558, z = 6}, "Dragon"}, {{x = 9169, y = 8575, z = 6}, "Dragon"}, {{x = 9172, y = 8556, z = 6}, "Dragon"}, {{x = 9173, y = 8567, z = 6}, "Dragon"}, {{x = 9161, y = 8566, z = 6}, "Dragon"}, {{x = 9165, y = 8567, z = 6}, "Dragon"}, {{x = 9163, y = 8557, z = 6}, "Dragon"}, {{x = 9183, y = 8560, z = 6}, "Dragon"}, {{x = 9181, y = 8566, z = 6}, "Dragon"}, {{x = 9165, y = 8560, z = 6}, "Dragon"}, {{x = 9171, y = 8575, z = 6}, "Dragon Lord"}, {{x = 9184, y = 8557, z = 6}, "Dragon Lord"}, {{x = 9184, y = 8565, z = 6}, "Dragon Lord"}, {{x = 9177, y = 8556, z = 6}, "Dragon Lord"}, {{x = 9168, y = 8558, z = 6}, "Dragon Lord"}, {{x = 9165, y = 8555, z = 6}, "Dragon Lord"}, {{x = 9162, y = 8563, z = 6}, "Dragon Lord"}, {{x = 9175, y = 8575, z = 6}, "Dragon Lord"}, {{x = 9170, y = 8565, z = 6}, "Dragon Lord"}, {{x = 9169, y = 8562, z = 6}, "Dragon Lord"}, {{x = 9177, y = 8567, z = 6}, "Dragon Lord"}, {{x = 9169, y = 8568, z = 6}, "Dragon Lord Hatchling"}, {{x = 9178, y = 8573, z = 6}, "Dragon Lord Hatchling"}, {{x = 9182, y = 8570, z = 6}, "Dragon Lord Hatchling"}, {{x = 9178, y = 8563, z = 6}, "Dragon Lord Hatchling"} } if SixFloor() == false then return doPlayerSendCancel(cid, "sorry already have monster.") end for _, summon in pairs(monstros) do doCreateMonster(summon[2], summon[1]) end doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) local walls = {{x=9166, y=8574, z=6, stackpos=1},{x=9173, y=8569, z=6, stackpos=1},{x=9180, y=8581, z=6, stackpos=1},{x=9174, y=8570, z=6, stackpos=1},{x=9176, y=8573, z=6, stackpos=1}} local doors = {9166, 5278, 9165, 5282, 5282} for i=1, 5 do if getTileItemById(walls[i], doors[i]).uid > 0 then return false else doCreateItem(doors[i],1,walls[i]) end end function SixFloor() local fromPosition,toPosition = {x = 9160, y = 8554, z = 6},{x = 9188, y = 8583, z = 6} -- começo e final da ára for x = fromPosition.x, toPosition.x do for y = fromPosition.y, toPosition.y do local pos = {x=x, y=y, z=fromPosition.z} local m = getTopCreature(pos).uid if m ~= 0 and isMonster(m) then return false end doCleanTile(pos) end end return true end end o problema ocorre, acrescentando que estas linhas, local walls = {{x=9166, y=8574, z=6, stackpos=1},{x=9173, y=8569, z=6, stackpos=1},{x=9180, y=8581, z=6, stackpos=1},{x=9174, y=8570, z=6, stackpos=1},{x=9176, y=8573, z=6, stackpos=1}} local doors = {9166, 5278, 9165, 5282, 5282} for i=1, 5 do if getTileItemById(walls[i], doors[i]).uid > 0 then return false else doCreateItem(doors[i],1,walls[i]) end end Isso é o erro que aparecem ou script [Error - Action Interface] data/actions/scripts/private 2/spawn dragys 2.lua:onUse Description: data/actions/scripts/private 2/spawn dragys 2.lua:30: attempt to call global 'SixFloor' (a nil value) stack traceback: data/actions/scripts/private 2/spawn dragys 2.lua:30: in function <data/actions/scripts/private 2/spawn dragys 2.lua:1> Espero que eu possa ajudar
  15. sei, porque se eu tiver Ring colocado em seu slot, não jogue SD para o targets, apenas funsiona, quando com um target tentar colocar o ring na respectiva slot, lança dois SD mas não colocar o Ring na respectiva Slot, e repito apenas 2 SD, eu quero ter o Ring na respectiva Slot = Ring , atacar o SD jogadores (Target)
  16. trabalho ataca o target, mas apenas no momento de colocá-lo no slot, lança um SD apenas um SD, não atacando constantemente sd, teria que adicionar ticks? o um interval="2000" ?¿
  17. nenhum irmão, eu quero usar o ring no seu slot = ring, sd ataque jogador target
  18. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT,CONST_ANI_SUDDENDEATH) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7) function onEquip(cid, var) doCombat(cid, combat, var) return TRUE end function onDeEquip(cid, item, slot) doSendMagicEffect(getPlayerPosition(cid), 3) return TRUE end <movevent type="Equip" itemid="11253" slot="ring" event="script" value="ringSD.lua"/> <movevent type="DeEquip" itemid="11253" slot="ring" event="script" value="ringSD.lua"/> Eu tenho esse problema: [11/07/2012 15:10:30] [Error - MoveEvents Interface] [11/07/2012 15:10:30] data/movements/scripts/ringSD.lua:onEquip [11/07/2012 15:10:30] Description: [11/07/2012 15:10:30] (luaDoCombat) Variant not found é server 8.6
  19. [Error - LuaScriptInterface::loadFile] data/actions/scripts/private 1/spawn dragys 1.lua:59: 'end' expected (to close 'function' at line 1) near '<eof>' [Warning - Event::loadScript] Cannot load script (data/actions/scripts/private 1/spawn dragys 1.lua) data/actions/scripts/private 1/spawn dragys 1.lua:59: 'end' expected (to close 'function' at line 1) near '<eof>' xD resolvido, apenas agrege a end no final, graças Leoxtibia
  20. function onUse(cid, item, fromPosition, itemEx, toPosition) local monstros ={ {{x = 9168, y = 8572, z = 7}, "Dragon"}, {{x = 9175, y = 8558, z = 7}, "Dragon"}, {{x = 9169, y = 8575, z = 7}, "Dragon"}, {{x = 9172, y = 8556, z = 7}, "Dragon"}, {{x = 9173, y = 8567, z = 7}, "Dragon"}, {{x = 9161, y = 8566, z = 7}, "Dragon"}, {{x = 9165, y = 8567, z = 7}, "Dragon"}, {{x = 9163, y = 8557, z = 7}, "Dragon"}, {{x = 9183, y = 8560, z = 7}, "Dragon"}, {{x = 9181, y = 8566, z = 7}, "Dragon"}, {{x = 9165, y = 8560, z = 7}, "Dragon"}, {{x = 9171, y = 8575, z = 7}, "Dragon Lord"}, {{x = 9184, y = 8557, z = 7}, "Dragon Lord"}, {{x = 9184, y = 8565, z = 7}, "Dragon Lord"}, {{x = 9177, y = 8556, z = 7}, "Dragon Lord"}, {{x = 9168, y = 8558, z = 7}, "Dragon Lord"}, {{x = 9165, y = 8555, z = 7}, "Dragon Lord"}, {{x = 9162, y = 8563, z = 7}, "Dragon Lord"}, {{x = 9175, y = 8575, z = 7}, "Dragon Lord"}, {{x = 9170, y = 8565, z = 7}, "Dragon Lord"}, {{x = 9169, y = 8562, z = 7}, "Dragon Lord"}, {{x = 9177, y = 8567, z = 7}, "Dragon Lord"}, {{x = 9169, y = 8568, z = 7}, "Dragon Lord Hatchling"}, {{x = 9178, y = 8573, z = 7}, "Dragon Lord Hatchling"}, {{x = 9182, y = 8570, z = 7}, "Dragon Lord Hatchling"}, {{x = 9178, y = 8563, z = 7}, "Dragon Lord Hatchling"} } if SevenFloor() == false then return doPlayerSendCancel(cid, "sorry already have monster.") end for _, summon in pairs(monstros) do doCreateMonster(summon[2], summon[1]) end doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) wall1 = {x=9166, y=8574, z=7, stackpos=1} getwall1 = getThingfromPos(wall1) wall2 = {x=9173, y=8569, z=7, stackpos=1} getwall2 = getThingfromPos(wall2) wall3 = {x=9180, y=8581, z=7, stackpos=1} getwall3 = getThingfromPos(wall3) doCreateItem(9166,1,wall1) doCreateItem(5278,1,wall2) doCreateItem(9165,1,wall3) return true end function SevenFloor() local fromPosition,toPosition = {x = 9155, y = 8552, z = 7},{x = 9191, y = 8589, z = 7} -- começo e final da ára for x = fromPosition.x, toPosition.x do for y = fromPosition.y, toPosition.y do local pos = {x=x, y=y, z=fromPosition.z} local m = getTopCreature(pos).uid if m ~= 0 and isMonster(m) then return false end doCleanTile(pos) end end return true end Preciso de ajuda nestas linhas, eu preciso que se, no lugar onde as portas serão adicionados, reconhecer se você já é uma porta nessa posição, não agrege outra porta, porque eles são ensimadas as 2 portas, doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) wall1 = {x=9166, y=8574, z=7, stackpos=1} getwall1 = getThingfromPos(wall1) wall2 = {x=9173, y=8569, z=7, stackpos=1} getwall2 = getThingfromPos(wall2) wall3 = {x=9180, y=8581, z=7, stackpos=1} getwall3 = getThingfromPos(wall3) doCreateItem(9166,1,wall1) doCreateItem(5278,1,wall2) doCreateItem(9165,1,wall3) return true end @bump
  21. Por favor, você poderia me passar os mapas são para a versão 8.6
  22. necessidade Demon Helmet Quest, e, se possível poi e inquisition para versão 8.6
  23. muito obrigado, Vodkart problema resolvido
  24. eh encontrado vários scripts. mas não funciona com a versão 8.6, poderia ajudar, mesmo com a /bc white ?
  25. xD Desculpe se o que eu queria, graças +rep
  • Quem Está Navegando   0 membros estão online

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