Solutions
-
klipstyle's post in (Resolvido)[PEDIDO] Spell de Health was marked as the answernao entendo muito de spell mais use isso como base ou ate como solução mesmo.
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, 1) setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) function onCastSpell(cid, var) doCreatureAddHealth(cid, math.random(400,600)) return doCombat(cid, combat, var) end ira healar de 400 a 600 no caso peguei de uma rune teste para ver se funciona como spell qualquer erro posta ai pra gente -
klipstyle's post in (Resolvido)Area vip e dias de vip ! was marked as the answertenta assim.
function onUse(cid, item, fromPosition, itemEx, toPosition) local config={ removeOnUse = "yes" } local days = 30 local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13500) local timenow = os.time() local prem = timenow + daysvalue if getPlayerStorageValue(cid, 13500) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13500, time) doPlayerAddPremiumDays(cid, prem) local quantity = math.floor((getPlayerStorageValue(cid, 13500) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) end return TRUE end -
klipstyle's post in (Resolvido)[Ajuda] Promotion volta REP+++ was marked as the answertroque seu npc por esse.
-
klipstyle's post in (Resolvido)[ Duvida Rapida ] Sobre um Movements was marked as the answerfunction onStepIn(cid, item, frompos, topos)
if isPlayer(cid) == TRUE then doBroadcastMessage("O player "..getCreatureName(cid).." of guild "..getPlayerGuildName(cid).." está tentando invadir a Epic War Castle. LÍDERES DO CASTELO, VENHA RÁPIDO!",MESSAGE_STATUS_WARNING) doBroadcastMessage("O player "..getCreatureName(cid).." of guild "..getPlayerGuildName(cid).." está tentando invadir a Epic War Castle. LÍDERES DO CASTELO, VENHA RÁPIDO!",MESSAGE_STATUS_WARNING) doBroadcastMessage("O player "..getCreatureName(cid).." of guild "..getPlayerGuildName(cid).." está tentando invadir a Epic War Castle. LÍDERES DO CASTELO, VENHA RÁPIDO!",MESSAGE_STATUS_WARNING) doBroadcastMessage("O player "..getCreatureName(cid).." of guild "..getPlayerGuildName(cid).." está tentando invadir a Epic War Castle. LÍDERES DO CASTELO, VENHA RÁPIDO!",MESSAGE_STATUS_WARNING) end end