Hi, guys
im have Script For Get skills Distance, but how i add Max 130
im have Script For Get skills Distance, but how i add Max 130
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 6541 then
rand = math.random(1,1)
if rand == 1 then
doPlayerAddSkillTry(cid,4,2 * 35000)
doRemoveItem(item.uid,1)
doSendMagicEffect(frompos, 28)
doSendAnimatedText(getPlayerPosition(cid), "Skill Up", TEXTCOLOR_BLUE)
end
end
return 1
end