This Is War
Member
- Joined
- Aug 22, 2013
- Messages
- 123
- Reaction score
- 11
Hello and im here to re-host a Skill Item script, Im not the one who created it but i thought id share it with otland Mainly tested on 8.60 forgotten server .0.3.6 crying damson v8
Data/Actions/Actions.xml
Lua:
<action itemid="8304" script="magiclv.lua"/>
<action itemid="4869" script="axe.lua"/>
<action itemid="4863" script="dist.lua"/>
<action itemid="4865" script="shield.lua"/>
Data/Actions/Scripts/Axe.lua
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 4869 then
rand = math.random(1,1)
if rand == 1 then
doPlayerAddSkillTry(cid,3,2 * 44000)
doRemoveItem(item.uid,1)
doSendMagicEffect(frompos, 28)
doSendAnimatedText(getPlayerPosition(cid), "Skill Up", TEXTCOLOR_BLUE)
end
end
return 1
end
Data/Actions/Scripts/Distance.lua
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 4863 then
rand = math.random(1,1)
if rand == 1 then
doPlayerAddSkillTry(cid,4,2 * 43000)
doRemoveItem(item.uid,1)
doSendMagicEffect(frompos, 28)
doSendAnimatedText(getPlayerPosition(cid), "Skill Up", TEXTCOLOR_BLUE)
end
end
return 1
end
Data/Actions/Scripts/Magiclv.lua
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 8304 then
rand = math.random(1,1)
if rand == 1 then
doPlayerAddSpentMana(cid, 4100000)
doRemoveItem(item.uid,1)
doSendMagicEffect(frompos, 28)
doSendAnimatedText(getPlayerPosition(cid), "Magic Up!", TEXTCOLOR_BLUE)
end
end
return 1
end
Data/Actions/Scripts/Shield.lua
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 4865 then
rand = math.random(1,1)
if rand == 1 then
doPlayerAddSkillTry(cid,5,2 * 45000)
doRemoveItem(item.uid,1)
doSendMagicEffect(frompos, 28)
doSendAnimatedText(getPlayerPosition(cid), "Skill Up", TEXTCOLOR_BLUE)
end
end
return 1
end
Last edited: