-
-
-
-
-
-
-
Script storage
bom dia, eu tenho um script de weapons que quando o player ataka um target ele ganha uma storage se ele chega a 100 storage ele evoluir a arma para o nivel 2 nisso tudo bem, to querendo um talkaction que chegue quantos storage o player tem exemplo. O player tem 100 storage ai quando ele fala o commando ira aparece uma frase "Voce esta no nivel 2 com a Demonrage sword!" ai quando ele tive nivel 3 aparece "Voce esta no nivel 3 com a Demonrage sword!" e assim ate o level 5.
-
574747 reagiu a uma resposta no tópico: (Resolvido)Como colocar um intervalo de tempo nesse script [globalevent]
-
-
Que muro é esse?
8.6 id do item e 10436
-
Weapon com dano em % (porcentagem)
UP
-
Quando mata monstro ganha x storage
sim direitinho tipo eu nem ganho a storage O.o
-
Quando mata monstro ganha x storage
ja testei todos, mas sem sucesso :S
-
Quando mata monstro ganha x storage
exemplo: tem 5 pessoas atacando o Boss Tytany nisso todos os player que atacou o monstro ira ganha esta storage 38492 so isso.
-
[PEDIDO] Server save
local config = { broadcast = {120, 30}, shallow = "no", delay = 120, events = 30 } config.shallow = getBooleanFromString(config.shallow) local function executeSave(seconds) if(isInArray(config.broadcast, seconds)) then local text = "" if(not config.shallow) then text = "Full s" else text = "S" end text = text .. "erver Vai Ser Salvo Em " .. seconds .. " Seg, Save Server!" doBroadcastMessage(text) end if(seconds > 0) then addEvent(executeSave, config.events * 1, seconds - config.events) else doSaveServer(config.shallow) end end function onThink(interval, lastExecution, thinkInterval) if(table.maxn(config.broadcast) == 0) then doSaveServer(config.shallow) else executeSave(config.delay) doBroadcastMessage("Server saving...",27) end return true end
-
poko360 reagiu a uma resposta no tópico: (Resolvido)[Pedido] (Action) item quando clicar cria 1 monstro e item quebrar
-
Weapon com dano em % (porcentagem)
UP
-
[AJUDA] Como mudar effect de um item
procura o item no seu weapons e procura a arquivo lua dessa sua arma. e posta aki.
-
(Resolvido)[Pedido] (Action) item quando clicar cria 1 monstro e item quebrar
Ja foi resolvido
-
Weapon com dano em % (porcentagem)
UP
-
Script rob
nao testei mas ver se funciona ae. local money = {} local player = {} local position = {} local config = { corpseId = 3058, -- Item Id timee = 6000 -- Seconds } local function allowMovement(cid) if not isPlayer(cid) then return end doCreatureSetNoMove(cid, false) end local function stealMoney(cid) position = getDistanceBetween(getPlayerPosition(player), getPlayerPosition(cid)) if not(getTilePzInfo(getCreaturePosition(cid))) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Mensagem para o player quando estive dentro do pz.") end if position < 2 then doPlayerRemoveMoney(cid, money) doPlayerAddMoney(player, money) doPlayerSendTextMessage(player,MESSAGE_INFO_DESCR,"Você roubou "..money.." gold!") doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'VOCÊ ACABA DE SER ROUBADO!') else doPlayerSendTextMessage(player,MESSAGE_INFO_DESCR,"Roubo cancelado.") end end function onUse(cid, item, fromPosition, itemEx, toPosition) if isPlayer(itemEx.uid) then doSetItemOutfit(itemEx.uid, config.corpseId, config.timee) doCreatureSetNoMove(itemEx.uid, true) doCreatureSetSkullType(cid, SKULL_WHITE) addEvent(allowMovement, config.timee, itemEx.uid) money = getPlayerMoney(itemEx.uid) player = cid doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'Roubando...') doPlayerSendTextMessage(itemEx.uid,MESSAGE_INFO_DESCR,'Você foi nocauteado!') addEvent(stealMoney, config.timee-3000, itemEx.uid) end return true end
-
Weapon com dano em % (porcentagem)
UP
-
Weapon com dano em % (porcentagem)
bom pessoal, como o titulo diz to querendo uma weapons ou seja uma sword que hite por porcentagem ou seja se o player tive, 1000 de life eu quero que a wand tire 10% da life do player entao vai retirar 100 tendeu? tentei cria algums script, mais sem sucesso. esta retirando minha life. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WHIRLWINDSWORD) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 0, 0) local area = createCombatArea( { {0, 0, 0}, {0, 3, 0}, {0, 0, 0} } ) setCombatArea(combat, area) function onUseWeapon(cid, var) local hpmax = getCreatureMaxHealth(cid) local min = -5 -- this means 15% minimum healing local max = -5 -- this means 15% maximum healing local hp_add = math.random((hpmax * (min/-100)), (hpmax * (max/-100))) if(hasCondition(cid, CONDITION_EXHAUST)) then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted") return true end getCreaturePosition(cid, hp_add) doCombat(cid, combat, var) doSendMagicEffect(getThingPos(cid), 32) doSendAnimatedText(getPlayerPosition(cid),"+"..hp_add.."", TEXTCOLOR_GREEN) return doCombat(cid, combat, var) end
-
spell de dano em area
UP