-
AntauriX.
User deleted
Primero vayan a su carpeta de otserver.
Luego metanse a otra carpeta ke se llama "Actions"
Editan el siguiente archivo actions.xml
Y agrenge esto.CODE<action itemid="3120" script="ultimateskill.lua" allowfaruse="1" />
Luego crean un archivo llamado ultimateskill.lua y lo meten en actions/scripts
Y pongan esto.CODE-- Version 1.5 - by AntauriX --
function onUse(cid, item, frompos, item2, topos)
playerpos = getPlayerPosition(cid)
playervoc = getPlayerVocation(item2.uid)
skill1 = getPlayerSkill(cid,1)
skill2 = getPlayerSkill(cid,2)
skill3 = getPlayerSkill(cid,3)
skill4 = getPlayerSkill(cid,4)
skill5 = getPlayerSkill(cid,5)
skill6 = getPlayerSkill(cid,6)
if playervoc == 1 or playervoc == 2 then
doSendMagicEffect(playerpos,2)
doPlayerSendCancel(cid,"You cannot use this rune.")
elseif playervoc == 3 or playervoc == 4 then
if item2.itemid == cid and skill1 >= 40 then
doPlayerAddSkillTry(item2.uid,1,1000)
doPlayerAddSkillTry(item2.uid,5,2000)
doPlayerAddSkillTry(item2.uid,6,100)
doSendMagicEffect(topos,12)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
elseif item2.itemid == cid and skill2 >= 40 then
doPlayerAddSkillTry(item2.uid,2,1000)
doPlayerAddSkillTry(item2.uid,5,2000)
doPlayerAddSkillTry(item2.uid,6,100)
doSendMagicEffect(topos,12)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
elseif item2.itemid == cid and skill3 >= 40 then
doPlayerAddSkillTry(item2.uid,3,1000)
doPlayerAddSkillTry(item2.uid,5,2000)
doPlayerAddSkillTry(item2.uid,6,100)
doSendMagicEffect(topos,12)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
elseif item2.itemid == cid and skill4 >= 40 then
doPlayerAddSkillTry(item2.uid,4,1000)
doPlayerAddSkillTry(item2.uid,5,1200)
doPlayerAddSkillTry(item2.uid,6,100)
doSendMagicEffect(topos,12)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
elseif skill1 < 40 or skill2 < 40 or skill3 < 40 or skill4 < 40 then
doSendMagicEffect(playerpos,2)
doPlayerSendCancel(cid,"You don't have the required skill level to use that rune.")
else
doSendMagicEffect(playerpos,2)
doPlayerSendCancel(cid,"Sorry, not possible.")
end
else
doSendMagicEffect(playerpos,2)
doPlayerSendCancel(cid,"You can only use this rune on creatures.")
end
return 1
end
Espero ke les guste
Dudas aki.