Postado Julho 5, 2014 11 anos esse script n ta funcionado, queria quando paladino atacasse algum player ou monstro realase sua vida em 10% uzando esses item id: (7438),(2352) function onStatsChange(cid, attacker, type, combat, value) if isPlayer(attacker) then if getPlayerSlotItem(attacker, 5).itemid == 7438 or getPlayerSlotItem(attacker, 6).itemid == 7438 and getPlayerSlotItem(attacker, 10).itemid == 2352 then if type == STATSCHANGE_HEALTHLOSS and combat == COMBAT_PHYSICALDAMAGE or getCreatureCondition(cid, CONDITION_MANASHIELD) then doCreatureAddHealth(attacker, value*0.10) end end end return true end I like
Postado Julho 5, 2014 11 anos vc ta usando o item de ID 7438, na mao do paladino e o item de id 2352 na flecha? se for tem que da certo
Postado Julho 5, 2014 11 anos Autor vc ta usando o item de ID 7438, na mao do paladino e o item de id 2352 na flecha? se for tem que da certo sim mais n ta funfando n tem como fazer sem ser por creaturescripts? I like
Postado Julho 5, 2014 11 anos so da por creaturescript, qual erro da no console man? edit: coloque o que vc pos no login.lua e no creaturescripts.xml Editado Julho 5, 2014 11 anos por roriscrave (veja o histórico de edições)
Postado Julho 5, 2014 11 anos Autor creaturescripts ta sem tag são 2 scripts vampire.lua function onStatsChange(cid, attacker, type, combat, value) if (getPlayerSlotItem(attacker, 9).itemid == 2127) then if type == STATSCHANGE_HEALTHLOSS and isPlayer(attacker) or (getCreatureCondition(cid, CONDITION_MANASHIELD) == TRUE) then doCreatureAddHealth(attacker, value*0.25) doPlayerRemoveItem(attacker, 2127, 1) end end return true end heal.lua function onStatsChange(cid, attacker, type, combat, value) if isPlayer(attacker) then if getPlayerSlotItem(attacker, 5).itemid == 7438 or getPlayerSlotItem(attacker, 6).itemid == 7438 and getPlayerSlotItem(attacker, 10).itemid == 2352 then if type == STATSCHANGE_HEALTHLOSS and combat == COMBAT_PHYSICALDAMAGE or getCreatureCondition(cid, CONDITION_MANASHIELD) then doCreatureAddHealth(attacker, value*0.10) end end end return true end tem essa tag nos montros <event type="statschange" name="ReflectHeal" event="script" value="heal.lua"/> <event type="statschange" name="Vampire" event="script" value="vampire.lua"/> essa tag no login.lua registerCreatureEvent(cid, "Vampire") registerCreatureEvent(cid, "Heal") ta dando esse erro [0:25:31.926] [Warning - Monster::Monster] Unknown event name - ReflectH [0:25:31.927] [Warning - Monster::Monster] Unknown event name - Vampire Editado Julho 5, 2014 11 anos por loreal (veja o histórico de edições) I like
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.