Postado Abril 4, 2016 9 anos galera ta bugado a poção do paladino great spirit potion se o cara usa ela o atk melee para e depois volta como arrumar ?? local MIN = 7000 local MAX = 8000 local EMPTY_POTION = 8472 local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) if isPlayer(itemEx.uid) == FALSE then return FALSE end if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if((not(isKnight(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 130) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then doCreatureSay(itemEx.uid, "Only knights of level 130 or above may drink this fluid.", TALKTYPE_ORANGE_1) return TRUE end if doCreatureAddHealth(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then return FALSE end doAddCondition(cid, exhaust) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) return TRUE end
Postado Abril 5, 2016 9 anos Não ta bugado, é assim. Mas caso queira permitir tacar runa/usar potion e atacar de paladin: Weapons.xml, Vão ter as armas de paladin: <!-- Ammunition --> <!-- Small Stone --> <distance id="1294" event="function" value="default"/> <!-- Snow Ball --> <distance id="2111" event="function" value="default"/> <!-- Spear --> <distance id="2389" event="function" value="default"/> <!-- Throwing Star --> <distance id="2399" event="function" value="default"/> <!-- Throwing Knife --> <distance id="2410" event="function" value="default"/> <!-- Bolt --> <distance id="2543" event="function" value="default"/> <!-- Arrow --> <distance id="2544" event="function" value="default"/> <!-- Poison Arrow --> <distance id="2545" event="script" value="poison_arrow.lua"/> <!-- Burst Arrow --> <distance id="2546" event="script" value="burst_arrow.lua"/> <!-- Power Bolt --> <distance id="2547" level="55" event="function" value="default"/> <!-- Hunting Spear --> <distance id="3965" level="20" event="function" value="default"/> <!-- Infernal Bolt --> <distance id="6529" level="110" event="function" value="default"/> <!-- Piercing Bolt --> <distance id="7363" level="30" event="function" value="default"/> <!-- Sniper Arrow --> <distance id="7364" level="20" event="function" value="default"/> <!-- Onyx Arrow --> <distance id="7365" level="40" event="function" value="default"/> <!-- Viper Star --> <distance id="7366" event="script" value="viper_star.lua"/> <!-- Enchanted Spear --> <distance id="7367" level="42" event="function" value="default"/> <!-- Assassin Star --> <distance id="7368" level="80" event="function" value="default"/> <!-- Royal Spear --> <distance id="7378" level="25" event="function" value="default"/> <!-- Flash Arrow --> <distance id="7838" type="energy" event="function" value="default"/> <!-- Shiver Arrow --> <distance id="7839" type="ice" event="function" value="default"/> <!-- Flaming Arrow --> <distance id="7840" type="fire" event="function" value="default"/> <!-- Earth Arrow --> <distance id="7850" type="earth" event="function" value="default"/> Adicione swing="true" nas armas que quer que possa tacar runa/usar potion enquanto usa. Exemplo: <!-- Assassin Star --> <distance id="7368" level="80" swing="true" event="function" value="default"/>
Postado Abril 5, 2016 9 anos Autor quero q todas vou ter q adcionar um por um ?? eu adciono antes do event ??
Postado Abril 6, 2016 9 anos 15 horas atrás, BilauX disse: quero q todas vou ter q adcionar um por um ?? eu adciono antes do event ?? Isso, um por um, não que seja dificil... deve ter sei lá, 20 armas, é só apertar ctrl + v e pra baixo. Acho que o lugar que colocar não muda nada, aconselho entre level e event mesmo.
Postado Abril 6, 2016 9 anos Autor valeu rep mais.... 39 minutos atrás, DukeeH disse: Isso, um por um, não que seja dificil... deve ter sei lá, 20 armas, é só apertar ctrl + v e pra baixo. Acho que o lugar que colocar não muda nada, aconselho entre level e event mesmo.
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.