lukervis 0 Postado Novembro 6, 2010 Share Postado Novembro 6, 2010 Ae galera, gostaria de saber como deixar essa mana rune somente para mage -- New MF rune by Joao Paulo 3.0 version -- function onUse(cid, item, frompos, item2, topos) playerpos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253} player = getThingfromPos(playerpos) ml = getPlayerMagLevel(cid) lvl = getPlayerLevel(cid) if item2.itemid == 1 and ml >= 2 then doPlayerAddMana(player.uid,500) --------------- Caso keira mais mana modifike aki doSendAnimatedText(getCreaturePosition(cid), "Aaaaah...", 5) doSendMagicEffect(playerpos,30) if item.type > 1 then doChangeTypeItem(item.uid,item.type-1) else doRemoveItem(item.uid,1) end end if item2.itemid == 1 and ml <= 1 then doSendMagicEffect(frompos,2) doPlayerSendCancel(cid,"You dont have magic level to use this rune.") end if item2.itemid >= 2 then doPlayerSendCancel(cid,"You can only use this rune in you or in players.") doSendMAgicEffect(frompos,2) end return 1 end E essa só para knights -- New MF rune by Joao Paulo 3.0 version -- function onUse(cid, item, frompos, item2, topos) playerpos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253} player = getThingfromPos(playerpos) ml = getPlayerMagLevel(cid) lvl = getPlayerLevel(cid) if item2.itemid == 1 and ml >= 2 then doPlayerAddMana(player.uid,130) --------------- Caso keira mais mana modifike aki doSendAnimatedText(getCreaturePosition(cid), "Aaaaah...", 2) doSendMagicEffect(playerpos,34) if item.type > 1 then doChangeTypeItem(item.uid,item.type-1) else doRemoveItem(item.uid,1) end end if item2.itemid == 1 and ml <= 1 then doSendMagicEffect(frompos,2) doPlayerSendCancel(cid,"You dont have magic level to use this rune.") end if item2.itemid >= 2 then doPlayerSendCancel(cid,"You can only use this rune in you or in players.") doSendMAgicEffect(frompos,2) end return 1 end E essa só para pally -- New MF rune by Joao Paulo 3.0 version -- function onUse(cid, item, frompos, item2, topos) playerpos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253} player = getThingfromPos(playerpos) ml = getPlayerMagLevel(cid) lvl = getPlayerLevel(cid) if item2.itemid == 1 and ml >= 2 then doPlayerAddMana(player.uid,300) --------------- Caso keira mais mana modifike aki doSendAnimatedText(getCreaturePosition(cid), "Aaaaah...", 30) doSendMagicEffect(playerpos,39) if item.type > 1 then doChangeTypeItem(item.uid,item.type-1) else doRemoveItem(item.uid,1) end end if item2.itemid == 1 and ml <= 1 then doSendMagicEffect(frompos,2) doPlayerSendCancel(cid,"You dont have magic level to use this rune.") end if item2.itemid >= 2 then doPlayerSendCancel(cid,"You can only use this rune in you or in players.") doSendMAgicEffect(frompos,2) end return 1 end Obrigado desde já Link para o comentário https://xtibia.com/forum/topic/144337-duvida-item-para-mage-pally-e-knight/ Compartilhar em outros sites More sharing options...
Posts Recomendados