Hey Otland, i need a Script, Skill up Doll if i use a Doll my skill will going to upfor Magic, Axe, Sword, Club. Thank You
Bazi.
local itemID = 9004
local swordlvls = 3000 ---- How much sword "hits" 1 hit = like if player hit a monster 1x... it will give.
local words = "Text here."
local swordlevel = 150 -------From this sword skill and less he can use this item.
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemID and getPlayerSkillLevel(cid, SKILL_SWORD) <= swordlevel then
doCreatureSay(cid, "You just used an Sword Fighting Scroll!" ,19)
doPlayerAddSkillTry(cid, SKILL_SWORD, swordlvls)
doRemoveItem(cid, item.uid, 1)
else
doPlayerSendCancel(cid, "Sorry but you have to high sword fighting skill to use this scroll")
end
return 1
end
<action itemid="9004" script="swordskilldoll.lua"/>
local itemID = 9004
local swordlvls = 3000 ---- How much sword "hits" 1 hit = like if player hit a monster 1x... it will give.
local words = "Text here."
local swordlevel = 150 -------From this sword skill and less he can use this item.
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemID and getPlayerSkillLevel(cid, SKILL_SWORD) <= swordlevel then
doCreatureSay(cid, "You just used an Sword Fighting Scroll!" ,19)
doPlayerAddSkillTry(cid, SKILL_SWORD, swordlvls)
doRemoveItem(cid, item.uid, 1)
else
doPlayerSendCancel(cid, "Sorry but you have to high sword fighting skill to use this scroll")
end
return 1
end
LUA:local itemID = 9004 local swordlvls = 3000 ---- How much sword "hits" 1 hit = like if player hit a monster 1x... it will give. local words = "Text here." local swordlevel = 150 -------From this sword skill and less he can use this item. function onUse(cid, item, frompos, item2, topos) if item.itemid == itemID and getPlayerSkillLevel(cid, SKILL_SWORD) <= swordlevel then doCreatureSay(cid, "You just used an Sword Fighting Scroll!" ,19) doPlayerAddSkillTry(cid, SKILL_SWORD, swordlvls) doRemoveItem(cid, item.uid, 1) else doPlayerSendCancel(cid, "Sorry but you have to high sword fighting skill to use this scroll") end return 1 end