Postado Dezembro 12, 2012 12 anos Bom Galera Tk Tinha Feito Um Script Para Que O Player em "xx" Level Sumone Um Item Que De Fast Atack Com O Nome De "Herb Of Speed Boost" Bom Pra Que Server O Player Em "xx" Level Vai Fazer Isto "Exevo Con Pal" Se Ele Tiver O Level Que Voçes Editarem Ele Vai Sumonar 1 Herb Vamos Ao Script . primeiro vai ate data/actions/scripts faça um arquivo lua com este nome "pally" Coloque isto dentro . local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_TICKS, -1) setConditionFormula(condition, 0.7, -56, 0.7, -56) function onUse(cid, item, fromPosition, itemEx, toPosition) local config = { storage = 1987, pos = getCreaturePos(cid), } if exhaustion.check(cid,1988) == true then time = math.ceil(exhaustion.get(cid,1988)) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can use this again in "..time.." seconds(s).") return true end function addBuff(cid) weapon = getPlayerWeapon(cid) if weapon ~= nil and weapon.uid > 0 then setItemAttackSpeed(weapon.uid, 400) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Weapon Speed: Increased") addEvent(removeBuff, 15000, cid) setPlayerStorageValue(cid, config.storage, 1) doChangeTypeItem(item.uid, item.type - 1) doSendAnimatedText(config.pos, "+Buffed", 192) doAddCondition(cid, condition) exhaustion.set(cid,1988, 15) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be wielding a weapon first.") end end function removeBuff(cid) if isPlayer(cid) then weapontwo = getPlayerWeapon(cid) setPlayerStorageValue(cid, config.storage, 0) if weapontwo ~= nil and weapontwo.uid > 0 then setItemAttackSpeed(weapontwo.uid, 0) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Weapon Speed: Normal") doRemoveCondition(cid, CONDITION_HASTE) end end end if getPlayerStorageValue(cid, config.storage) < 1 then addBuff(cid) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have already buffed your weapon.") return true end return true end Depois Em data/actions/actions.xml cole isto . <action itemid="5953" event="script" value="buffs/pally.lua" allowfaruse="0"/> Depois va em data/itens/itens.xml axe este id "5953" E Coloque Isto . <item id="5953" article="a" name="herb of speed boost"> <attribute key="description" value="Increases weapon and player speed."/> <attribute key="weight" value="850"/> Se Vc Quiser Que Os Players Conjure Ela Faça Assim va em data/spells/scripts e Cole isto no final antes do </spells> <conjure name="Conjure Herb of Speed Boost" words="exevo con pal" lvl="5000" manapercent="100" soul="250" conjureId="5953" conjureCount="1" exhaustion="1000" needlearn="0" event="function" value="conjureItem"> Se Der Certo No Server Boa Sorte :] . Editado Dezembro 12, 2012 12 anos por Mad Rats (veja o histórico de edições) Pra Quem Curte Um " Hard Rock , Metal , Industrial , Classicos " Curtão Minha Radio Online Pessoal .
Postado Dezembro 13, 2012 12 anos Me parece interessante. Creio que irá ajudar muitos usuários do forum. Gosta do meu trabalho? Curta e siga a página do meu projeto de 2016 e 2017 (Lab Z Games) que trará vários servidores OTServs. Atenciosamente,Adriano Swatt' Para ver meus tutoriais acesse meu perfil.
Postado Dezembro 13, 2012 12 anos Autor e bem util Para Ots Donaters sem fast atack Pra Quem Curte Um " Hard Rock , Metal , Industrial , Classicos " Curtão Minha Radio Online Pessoal .
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.