Histórico de Curtidas
-
yoroshigod recebeu reputação de XGaduX em (Resolvido)AJUDEM Anti ParalyzeColoquei pré-configurado para usar no slot do helmet:
movements/scripts:
function onEquip(cid, item, slot) doRemoveCondition(cid, CONDITION_PARALYZE) addEvent(Paralizy, 1*100, cid) return true end function Paralizy(cid) local HelmetID = 3971 --- ID DO ITEM if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == HelmetID then doRemoveCondition(cid, CONDITION_PARALYZE) addEvent(Paralizy, 1*100, cid) end return true end movements.xml:
<movevent type="Equip" itemid="3971" slot="head" event="script" value="helmetparalise.lua"/> Bem auto-explicativo. Qualquer mudança que fizer o script, também deve alterar no XML.
-
yoroshigod recebeu reputação de KotZletY em Limite de uso itemfunction onUse(cid, var, item, frompos, item2, topos) if item.itemid == item.itemid then local tempo = 20.0 -- em segundos local guid = getPlayerGUID(cid) if exhaustion[guid] and exhaustion[guid] - os.clock() > 0 then return not doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Espere um pouco para poder usar novamente.") end exhaustion[guid] = os.clock() + tempo doPlayerAddSkillTry(cid,0,doPlayerAddSkill(cid, 0)) doPlayerAddSkillTry(cid,1,doPlayerAddSkill(cid, 1)) doPlayerAddSkillTry(cid,2,doPlayerAddSkill(cid, 2)) doPlayerAddSkillTry(cid,3,doPlayerAddSkill(cid, 3)) doPlayerAddSkillTry(cid,4,doPlayerAddSkill(cid, 4)) doPlayerAddSkillTry(cid,5,doPlayerAddSkill(cid, 5)) doPlayerAddSkillTry(cid,6,doPlayerAddSkill(cid, 6)) doPlayerAddSkillTry(cid,0,doPlayerAddSkill(cid, 0)) doPlayerAddSkillTry(cid,1,doPlayerAddSkill(cid, 1)) doPlayerAddSkillTry(cid,2,doPlayerAddSkill(cid, 2)) doPlayerAddSkillTry(cid,3,doPlayerAddSkill(cid, 3)) doPlayerAddSkillTry(cid,4,doPlayerAddSkill(cid, 4)) doPlayerAddSkillTry(cid,5,doPlayerAddSkill(cid, 5)) doPlayerAddSkillTry(cid,6,doPlayerAddSkill(cid, 6)) doPlayerAddSkillTry(cid,0,doPlayerAddSkill(cid, 0)) doPlayerAddSkillTry(cid,1,doPlayerAddSkill(cid, 1)) doPlayerAddSkillTry(cid,2,doPlayerAddSkill(cid, 2)) doPlayerAddSkillTry(cid,3,doPlayerAddSkill(cid, 3)) doPlayerAddSkillTry(cid,4,doPlayerAddSkill(cid, 4)) doPlayerAddSkillTry(cid,5,doPlayerAddSkill(cid, 5)) doPlayerAddSkillTry(cid,6,doPlayerAddSkill(cid, 6)) doPlayerAddSkillTry(cid,0,doPlayerAddSkill(cid, 0)) doPlayerAddSkillTry(cid,1,doPlayerAddSkill(cid, 1)) doPlayerAddSkillTry(cid,2,doPlayerAddSkill(cid, 2)) doPlayerAddSkillTry(cid,3,doPlayerAddSkill(cid, 3)) doPlayerAddSkillTry(cid,4,doPlayerAddSkill(cid, 4)) doPlayerAddSkillTry(cid,5,doPlayerAddSkill(cid, 5)) doPlayerAddSkillTry(cid,6,doPlayerAddSkill(cid, 6)) doPlayerAddSkillTry(cid,0,doPlayerAddSkill(cid, 0)) doPlayerAddSkillTry(cid,1,doPlayerAddSkill(cid, 1)) doPlayerAddSkillTry(cid,2,doPlayerAddSkill(cid, 2)) doPlayerAddSkillTry(cid,3,doPlayerAddSkill(cid, 3)) doPlayerAddSkillTry(cid,4,doPlayerAddSkill(cid, 4)) doPlayerAddSkillTry(cid,5,doPlayerAddSkill(cid, 5)) doPlayerAddSkillTry(cid,6,doPlayerAddSkill(cid, 6)) end doPlayerRemoveItem(cid, item.uid, 1) doSendMagicEffect(frompos, 28) doSendAnimatedText(getPlayerPosition(cid), "Skill Up", TEXTCOLOR_BLUE) return true end Para ajustar o time do exhaust, é só alterar o "local tempo" (em segundos).
-
yoroshigod recebeu reputação de mullino em (Resolvido)AJUDEM Anti ParalyzeTá tomando paralise pq está configurado para o SLOT DO HELMET, como eu disse, deixei pré-configurado para usar no HELMET.
Testa assim:
function onEquip(cid, item, slot) doRemoveCondition(cid, CONDITION_PARALYZE) addEvent(Paralizy, 1*100, cid) return true end function Paralizy(cid) local HelmetID = 12692 --- ID DO ITEM if getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == HelmetID then doRemoveCondition(cid, CONDITION_PARALYZE) addEvent(Paralizy, 1*100, cid) end return true end
-
yoroshigod recebeu reputação de adolfbig em Como colocar cor nas magias?No config.lua:
Siga o modelo(exemplo):
De
<instant name="exori" words="exori" lvl="8" mana="1" prem="0" direction="1" range="6" blockwalls="1" exhaustion="500" needlearn="0" script="exori"> Para
<instant name="" words="exori" lvl="8" mana="1" prem="0" direction="1" range="6" blockwalls="1" exhaustion="500" needlearn="0" script="exori">
-
yoroshigod recebeu reputação de dyroz em Preciso de uma base de OT server na ultima versãohttps://github.com/otland/forgottenserver
-
yoroshigod recebeu reputação de Cleiton Felipi em Preciso de um scriptSó mudar
if getPlayerStorageValue(cid, storage) > 0 then
para
if getPlayerStorageValue(cid, storage) >= 1 then
-
yoroshigod deu reputação a Sekk em Alavanca de tempoVc ja alterou errado.
Deixa assim pra testar com 30 segundos:
local h = 30
local t = 1000
-
yoroshigod deu reputação a Sekk em Alavanca de tempocara, de acordo com o teu erro, essa vocação n existe hahahaha
tu registrou ela certinho no vocations.xml e tal?
-
yoroshigod deu reputação a Sekk em Alavanca de tempotenta assim
local destino = {x=2341, y=2520, z=7} local h = 10 local t = 3600000 local stor, stor2 = 43532, 43533 function onUse(cid,item,frompos,item2,topos) if doTeleportThing(cid, destino) then doPlayerSetVocation(cid,9) doSendMagicEffect(getCreaturePosition(cid), 28) doSendAnimatedText(getCreaturePosition(cid), "YES!", 129) setPlayerStorageValue(cid, stor, getPlayerVocation(cid)) setPlayerStorageValue(cid, stor2, os.time() + h*t) addEvent(function() if isPlayer(cid) then doPlayerSetVocation(cid, stor) setPlayerStorageValue(cid, stor, 0) end end, h*t) else doPlayerSendCancel(cid,"You cannot use this object.") end return true end
-
yoroshigod deu reputação a Sekk em Alavanca de tempoPosta a solução pfv ahahaha
Pra reputar é só dar gostei nas respostas hayauaha
-
yoroshigod deu reputação a Sekk em Alavanca de tempotenta deixando o creaturescripts.xml q eu falei pra criar como comentario(anulando o script de login ai)
-
yoroshigod deu reputação a Rusherzin em [PEDIDO][RESOLVIDO] Ao dar USE item transformar em outroPelo que entendi, tu clicaria no item 4646 e se tivesse o item 4863 equipado no slot da flecha, iria transformá-lo em 4864. Se for isso, acho que seria assim:
<action itemid="4646" event="script" value="deletechest.lua"/> function onUse(cid, item) if getPlayerSlotItem(cid, CONST_SLOT_ARROW).itemid == 4863 then doTransformItem(getPlayerSlotItem(cid, CONST_SLOT_ARROW).uid, 4864) end end