• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Skill UP Shielding

XaNaduxD

Candy Boy ;*
Joined
Oct 25, 2009
Messages
31
Reaction score
0
Location
Poland
Hello,
The script will show you the addition of Skill.

PHP:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2264 then
doPlayerAddSkillTry(cid,5,10000)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
doSendMagicEffect(topos,12)
doPlayerSay(cid,"Shielding UP",1)
else
doRemoveItem(item.uid,1)
end
end

End :D
 
cool action, but how do i edit to make give sword, or axe, or distance, or magic lvl?? D:
 
This script made me cry :(

Here you go:
XML:
<action itemid="ItemID" event="script" value="skill_scroll.lua"/>

Lua:
local add_skill,amount = SKILL_SWORD,1 --Edit skill name Ex: SKILL_CLUB,1 = that means amount so, it add now 1 sword fighting.
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	doPlayerAddSkill(cid, add_skill, amount)
	doSendMagicEffect(getThingPos(cid),math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE))
	doCreatureSay(cid, "SKILL UP!", TALKTYPE_ORANGE_1)
	doRemoveItem(item.uid, 1)
end
 
Last edited:
Back
Top