Tudo que Storm postou
-
(Resolvido)Level minimo pra usar item
@RomeuTemochko Verifique se você colocou corretamente no items.XML o tipo da arma
-
(PEDIDO) Um item que ao ser usado invoca um monstro que ajuda o invocador.
@louco3626 local config = { name = "Demon", -- Nome do Summon max = 1, -- Máximo de summons exaust_sto = 5555, -- Storage que contabiliza o exaust exaust_time = 60 -- Segundos de Exaust } function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = getCreaturePosition(cid) if not exhaustion.check(cid, config.exaust_sto) then if table.maxn(getCreatureSummons(cid)) <= config.max then local target = doCreateMonster(config.name, pos) doConvinceCreature(cid, target) doPlayerSendTextMessage(cid, 27, "Voce invocou o monstro ".. config.name .."!!") doSendMagicEffect(pos, CONST_ME_TELEPORT) exhaustion.set(cid, config.exaust_sto, config.exaust_time) return true else doPlayerSendTextMessage(cid, 27, "Você ja tem a quantidade máxima de summons ativos!") doSendMagicEffect(pos, POFF) return false end else doPlayerSendTextMessage(cid, 27, "Exhaustion!! Wait ".. exhaustion.get(cid, config.exaust_sto) .." seconds.") doSendMagicEffect(pos, POFF) return false end return true end
-
QUEST QUE DE ITEM ALEATÓRIOS( configuráveis)
@Vim Rusha local config = { time = 20, -- HORAS de exaust storage = 25455, -- Storage do exaust position = {x = 100, y = 250, z = 7} -- Position que será teleportado. } local items = { [1] = {100, 10, 2160}, -- {CHANCE de 1 a 100, quantidade que ganhará, itemID) [2] = {50, 1, 2155}, [3] = {25, 1, 2154}, [4] = {10, 1, 2156}, [5] = {5, 1, 2170} } function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = getCreaturePosition(cid) if exhaustion.check(cid, config.storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Aguarde ".. math.floor(exhaustion.get(cid, config.storage) / 60 * 60) .." Horas para usar esse bau novamente!") doSendMagicEffect(pos, CONST_ME_POFF) return false end exhaustion.set(cid, config.storage, time * 60 * 60) doTeleportThing(cid, config.position) for _, var in pairs(items) do if var[1] <= math.random(1, 100) then doPlayerAddItem(cid, var[3], var[2]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce recebeu ".. var[2] .." ".. getItemNameById(var[3]) ..".") end end return true end
- Algem Me Pode arrumar algum scrip casino igual ou semelhante à imagem
-
Criação de Quest,Tile que mata o play se pisa nele
@louco3626 Manda seu movements.xml, você ta errando alguma coisa nela. Não é nada na script, testei em um debugger e ela ta normal.
-
Criação de Quest,Tile que mata o play se pisa nele
@louco3626 Voce ta errando alguma coisa na hora de colocar no movements.xml
-
[SUPORTE] Ajuste de spell em área
@ZeeroBR Se aparecer algum erro me manda
-
[SUPORTE] Ajuste de spell em área
@ZeeroBR Tenta assim
-
(PEDIDO) Um item que ao ser usado invoca um monstro que ajuda o invocador.
@victor4312 Qual erro dá mano?
-
(PEDIDO) Um item que ao ser usado invoca um monstro que ajuda o invocador.
@victor4312 É só mudar pra doPlayerSendCancel e tirar o 27. Já tem um exaust na script mano, lol.
-
(PEDIDO) Um item que ao ser usado invoca um monstro que ajuda o invocador.
@victor4312 Substitui na script; doPlayerSendTextMessage(cid, 27, "Espere ".. math.floor(exhaustion.get(cid, config.exaust_sto) / 60) .." minuto(s) e ".. exhaustion.get(cid, config.exaust_sto) - (math.floor(exhaustion.get(cid, config.exaust_sto) / 60)*60) .." segundo(s) para usar seu pet novamente.")
-
Talkaction Chess
@telefonesemfio Explica o sistema mais detalhadamente.
-
(PEDIDO) Um item que ao ser usado invoca um monstro que ajuda o invocador.
@victor4312 local config = { name = "Demon", -- Nome do Summon max = 1, -- Máximo de summons storage = 42355, -- Storage que permite o uso exaust_sto = 5555, -- Storage que contabiliza o exaust exaust_time = 60 -- Segundos de Exaust } function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = getCreaturePosition(cid) if getPlayerStorageValue(cid, config.storage) == 1 then if not exhaustion.check(cid, config.exaust_sto) then if table.maxn(getCreatureSummons(cid)) <= config.max then local target = doCreateMonster(config.name, pos) doConvinceCreature(cid, target) doPlayerSendTextMessage(cid, 27, "Voce invocou o monstro ".. config.name .."!!") doSendMagicEffect(pos, CONST_ME_TELEPORT) exhaustion.set(cid, config.exaust_sto, config.exaust_time) return true else doPlayerSendTextMessage(cid, 27, "Você ja tem a quantidade máxima de summons ativos!") doSendMagicEffect(pos, POFF) return false end else doPlayerSendTextMessage(cid, 27, "Exhaustion!! Wait ".. exhaustion.get(cid, config.exaust_sto) .." seconds.") doSendMagicEffect(pos, POFF) return false end else doPlayerSendTextMessage(cid, 27, "voce nao tem a storage necessaria") doSendMagicEffect(pos, POFF) return false end return true end @CaioPinaa local monster = "Demon" -- Monster name local max = 1 -- Max de summons ativos function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = getCreaturePosition(cid) if table.maxn(getCreatureSummons(cid)) < max then local target = doCreateMonster(monster, pos) doConvinceCreature(cid, target) doSendMagicEffect(pos, 5) else doPlayerSendTextMessage(cid, 27, "Você ja tem a quantidade máxima de summons ativos!") doSendMagicEffect(pos, POFF) return false end return true end
-
TP QUE RELOGA PLAYER
@REI DAVID Eu mudei de lugar, compare as duas partes e veja, apenas isto.
-
(PEDIDO) Um item que ao ser usado invoca um monstro que ajuda o invocador.
@victor4312 local config = { name = "Demon", -- Nome do Summon storage = 42355, -- Storage que permite o uso exaust_sto = 5555, -- Storage que contabiliza o exaust exaust_time = 60 -- Segundos de Exaust } function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = getCreaturePosition(cid) if getPlayerStorageValue(cid, config.storage) == 1 then if not exhaustion.check(cid, config.exaust_sto) then local target = doCreateMonster(config.name, pos) doConvinceCreature(cid, target) doSendMagicEffect(pos, CONST_ME_TELEPORT) exhaustion.set(cid, config.exaust_sto, config.exaust_time) return true else doPlayerSendTextMessage(cid, 27, "Exhaustion!! Wait ".. exhaustion.get(cid, config.exaust_sto) .." seconds.") doSendMagicEffect(pos, POFF) return false end else doPlayerSendTextMessage(cid, 27, "voce nao tem a storage necessaria") doSendMagicEffect(pos, POFF) return false end return true end
-
(PEDIDO) Um item que ao ser usado invoca um monstro que ajuda o invocador.
@CaioPinaa Na pasta actions, não se esquecendo de colocar a tag na actions.xml também.
-
Criação de Quest,Tile que mata o play se pisa nele
@louco3626 <movevent type="StepIn" actionid="11555;11556" event="script" value="tile.lua"/> <movevent type="StepOut" actionid="11555;11556" event="script" value="tile.lua"/> local config = { fail_tile = 11555, -- ActionID do tile que matará right_tile = 11556, -- ActionID do tile certo new_tile_id = 406, -- Piso branco old_tile_id = 407 -- Piso preto } function onStepIn(cid, item, position, fromPosition) local pos = getCreaturePosition(cid) if isPlayer(cid) and not isPlayerGhost(cid) then if item.actionid == config.fail_tile then doCreatureAddHealth(cid, -getCreatureMaxHealth(cid)) doSendMagicEffect(pos, CONST_ME_POFF) return true elseif item.actionid == config.right_tile then doTransformItem(item.uid, config.new_tile_id) doSendMagicEffect(pos, CONST_ME_TELEPORT) return true end end return true end function onStepOut(cid, item, position, fromPosition) local pos = getCreaturePosition(cid) if isPlayer(cid) and not isPlayerGhost(cid) then if item.actionid == config.right_tile then doTransformItem(item.uid, config.old_tile_id) doSendMagicEffect(pos, CONST_ME_POFF) return true end end return true end
-
TP QUE RELOGA PLAYER
@REI DAVID Substitua na function CTF.close(win) function CTF.close(win) if not win then doBroadcastMessage("O CTF acabou sem vencedores.") else CTF.broadCast("O time ".. win .. " marcou ".. CTF.winp .. " ponto(s) e venceu o evento.") end for _, cid in pairs(CTF.getMembers()) do if getPlayerStorageValue(cid, 16700) == win then doPlayerAddItem(cid, 2160, 10) local xp = math.ceil(getPlayerExperience(cid) * (CTF.xp_percent / 100), 215) doPlayerSendTextMessage(cid, 22, "Parabéns!,Segundo andar para sair do evento! Você ganhou o evento e obteve ".. CTF.xp_percent .."% de sua experiência total(".. xp ..").") doSendAnimatedText(getThingPos(cid), xp, 215) doPlayerAddExperience(cid, xp) CTF.removePlayer(cid) end --[[ if getPlayerStorageValue(cid, 16702) ~= -1 then CTF.returnFlag(cid) end]] end CTF.removeFlags() for i, _ in pairs(CTF.teams) do setGlobalStorageValue(score_sto[i], 0) end return true end
-
(Resolvido)Npc Event Points
@REI DAVID Esses event tokens seria uma storage ou um item?
-
TP QUE RELOGA PLAYER
@REI DAVID È mais fácil mandar o erro do evento do que fazer uma gambiarra pra consertar, então manda o do evento ai.
-
(PEDIDO) Um item que ao ser usado invoca um monstro que ajuda o invocador.
@CaioPinaa Você não detalhou muito bem, então testa assim: local monster = "Demon" -- Monster name function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = getCreaturePosition(cid) local target = doCreateMonster(monster, pos) doRemoveItem(item.uid, 1) doConvinceCreature(cid, target) doSendMagicEffect(pos, 5) return true end
-
Verificação de premium no npc promotion
Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum!
-
Sistema de shopping do site não entrega o item ao personagem
Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum!
-
Player lento
@Black Clover
-
Quest Spell
@jeszao Posta a script do bau.