
roriscrave
Membro
-
Registro em
-
Última visita
Solutions
-
roriscrave's post in (Resolvido)Como que resolvo esse erro? was marked as the answerlocal combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_HITCOLOR, 215) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 253) function onGetFormulaValues(cid, level) local skill = getPlayerSkill(cid, 2) -- "2" é o ID DA SKILL local min = -((level*skill*00.1)+0) -- O DANO MINIMO DA ARMA É O LEVEL DO JOGADOR * A SKILL DO JOGADOR * 10 + 2500 local max = -((level*skill*00.1)+0) -- O DANO MINIMO DA ARMA É O LEVEL DO JOGADOR * A SKILL DO JOGADOR * 10 + 5000 return min, max end setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues") function onCastSpell(cid, var) local skillmin = 20 -- MINIMO DE SKILL PRA LANÇAR A MAGIA if getPlayerSkillLevel(cid, skill) < skillmin then return doPlayerSendCancel(cid, "You must have at least ".. skillmin .." of sword skill to use this spell.") end return doCombat(cid, combat, var) end local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat, parameters.var) end function onCastSpell(cid, var) local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} local parameters = {cid = cid, var = var, combat = combat} for k = 1, 5 do addEvent(function() if isCreature(cid) then addEvent(onCastSpell1, 0, parameters) doSendMagicEffect(position1, 173) end end, 1 + ((k-1) * 300)) end return true end
-
roriscrave's post in (Resolvido)Summon atacando quem o summonou was marked as the answervai na pasta monsters procura o monstro que vai sumonar e muda essa linha
<flag convinceable="0"/> troque por 1, ficando
<flag convinceable="1"/>
-
roriscrave's post in (Resolvido)Dá algum tipo de conflito usar movement em item '"stackable" ? was marked as the answerdaria n
nao daria conflito
-
roriscrave's post in (Resolvido)Spell que hita a vida do alvo em %. was marked as the answerfunction onCastSpell(cid, var) local effect = 10 -- efeito da magia local target = getCreatureTarget(cid) local Hp = (getCreatureHealth(target))*0.2 if isCreature(target) then doCreatureAddHealth(target, -Hp) doSendMagicEffect(getCreaturePosition(target), "..effect..") doSendAnimatedText(getCreaturePosition(target),"- "..Hp.."", 180) end return true end
-
roriscrave's post in (Resolvido)Script mandando apenas uma mensagem was marked as the answertente
function onUse(cid, item) local itens = { [17101] = {id = 11447, qnt = 1}, -- id = (ID do item do do bau 1), qnt = (Quantidade do item do bau 1) FIre [17102] = {id = 11441, qnt = 1}, -- id = (ID do item do do bau 2), qnt = (Quantidade do item do bau 2) Leaf [17103] = {id = 11442, qnt = 1}, -- id = (ID do item do do bau 3), qnt = (Quantidade do item do bau 3) Water } if getPlayerStorageValue(cid, 13470) ~= 1 then if item.actionid == itens[item.actionid] then doPlayerAddItem(cid, itens[item.actionid].id, itens[item.actionid].qnt) doPlayerSendTextMessage(cid,22,"[Quest]Você Ganhou Uma "..itens[item.actionid].qnt.." "..itens[item.actionid].id..", Por Completar a Elementar Stone Quest!") setPlayerStorageValue(cid, 13470, 1) else return doPlayerSendTextMessage(cid,22,"[Quest]Você Já Fez Está Quest!") end else doPlayerSendTextMessage(cid,22,"[Quest]Você Já Fez Está Quest!") end return TRUE end -
roriscrave's post in (Resolvido)Como faz Gesior aceitar nome de personagem com 3 letras? was marked as the answerabre a pasta do site createaccount.php
aperte f3 e procure por:
Your name is to short Logo abaixo terá algo escrito +- assim
elseif(strlen($s) < 5) Mude o 5 para 2
-
roriscrave's post in (Resolvido)Colocar exceção no script? was marked as the answertente usar assim e me fale
function onLogin(cid) if getCreatureName(cid) == "Account Manager" then return true end local bless = {" First Bless,", " Second Bless,", " Third Bless,", " Fourth Bless,", " Fifth Bless."} local check = "Received blessings:" for i = 1, #bless do check = getPlayerBlessing(cid, i) and check .. bless[i] or check end if check:len() > 20 then doPlayerSendTextMessage(cid, 20, check) else doPlayerSendTextMessage(cid, 20, "No blessings received.") end return true end -
roriscrave's post in (Resolvido)[Help] Comando de inviteplayer Narutibia was marked as the answertem que falar no chat da guild
-
roriscrave's post in (Resolvido)[Quest bugada] was marked as the answeruse assim
function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, 21312) >= 1 then doPlayerSendTextMessage(cid,22,"Você ja fez a quest") return true end if getPlayerLevel(cid) >= 135 then doPlayerAddItem(cid, 8886, 1) doPlayerAddItem(cid, 2343, 1) doTeleportThing(cid, {x=1000,y=1000,z=7}) setPlayerStorageValue(cid, 21312, 1) else doPlayerSendCancel(cid, "Isso nao e possivel.") end return true end -
roriscrave's post in (Resolvido)[PEDIDO] Npc Staminer was marked as the answeraqui amigo
<?xml version="1.0" encoding="ISO-8859-1"?> <npc name="Staminer" floorchange="0" speed="0" walkinterval="4000"> <health now="150" max="150"/> <look type="100" head="20" body="120" legs="75" feet="13"/> <interaction range="3" idletime="30"> <interact keywords="hi" focus="1"> <keywords>hello</keywords> <response> <action name="script"> <![CDATA[ selfSay("Olá " .. getCreatureName(cid) .. ", eu vendo {stamina}.", cid) ]]> </action> </response> </interact> <interact keywords="bye" focus="0"> <keywords>farewell</keywords> <response text="Good bye."/> </interact> <interact keywords="stamina"> <response> <action name="script"> <![CDATA[ selfSay("Você quer regenerar sua stamina?", cid) ]]> </action> <interact keywords="yes"> <response> <action name="script"> <![CDATA[ local minutes = 42 * 60 * 1000 local price = 1 if doPlayerRemoveMoney(cid, price) then doPlayerAddStamina(cid, minutes) selfSay("Thanks.", cid) else selfSay("Você não possui "..price.." gold.", cid) end ]]> </action> </response> </interact> <interact keywords="no"> <response> <action name="script"> <![CDATA[ selfSay("Ok.", cid) ]]> </action> </response> </interact> </response> </interact> </interaction> </npc> -
roriscrave's post in (Resolvido)items inicias do Player was marked as the answercara, sao seus samples, logue com eles e retire os items
-
roriscrave's post in (Resolvido)Como funciona e indicação de hosts. was marked as the answervc paga o host e depois de certo tempo eles te liberam a maquina (te dao o ip da maquina) e voce conectar via controle remoto, colocando assim qualquer arquivo que quiser lá
-
roriscrave's post in (Resolvido)[PEDIDO] Propaganda was marked as the answerdata/globalevents/scripts
crie um arquivo chamado progapanda.lua
function onThink(interval, lastExecution) local cor = 22 local mensagens = {"ESCREVA AQUI O TEXTO DA PROPAGANDA"} doBroadcastMessage(mensagens[math.random(1,table.maxn(mensagens))], cor) return TRUE end e em globalevents.xml coloque
<globalevent name="propaganda" interval="10" script="propaganda.lua" /> Onde ta o interval é o tempo que vai aparecer a msg
-
roriscrave's post in (Resolvido)O que esse script faz? was marked as the answervlw podem fechar, nao entendi mto bem a funçao desse script hehe, vlw
-
roriscrave's post in (Resolvido)ajuda com nome que sone no map was marked as the answerna globalevents