• 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!

Solved Melee Script.

WibbenZ

Global Moderator
Staff member
Global Moderator
Joined
Oct 16, 2008
Messages
6,374
Solutions
229
Reaction score
1,503
Location
Sweden
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
		


if itemid == 7720 and getPlayerStorageValue(cid,120212) == 2 then
			doCreatureSay(cid, "You can only use this scroll once!", TALKTYPE_ORANGE_1)


else if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 or getPlayerVocation(cid) == 9 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 10 then

			setPlayerStorageValue(cid,1202,2)
			doRemoveItem(item.uid)
			doPlayerAddSkillTry(cid,1,10)
			doPlayerAddSkillTry(cid,2,10)
			doPlayerAddSkillTry(cid,3,10)
			doPlayerAddSkillTry(cid,4,10)
			doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
			doCreatureSay(cid, "You Gained 10 Melee and Distance Skills! Thank you for your donation!", TALKTYPE_ORANGE_1)
else
		doCreatureSay(cid, "Only for Knights and Paladins!", TALKTYPE_ORANGE_1)
		end
	
end
end

Hey guys, I rep that guy that helpes me getting it just to 10 axe, sword, club, dist.
Hope you guys can help me one more time :)
Regards, Wibbenz
 
Last edited:
Code:
  function onUse(cid, item, fromPosition, itemEx, toPosition)
               


if item.uid == 29053 and getPlayerStorageValue(cid,29053) == 2 then
                        doCreatureSay(cid, "You have already recieved this power!", TALKTYPE_ORANGE_1)


else if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 or getPlayerVocation(cid) == 23 then

                        setPlayerStorageValue(cid,29053,2)
			doPlayerAddSkill(cid,1,10)
                        doPlayerAddSkill(cid,2,10)
                        doPlayerAddSkill(cid,3,10)
                        doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
                        doCreatureSay(cid, "You Gained 10 Melee Skills!", TALKTYPE_ORANGE_1)
else
                doCreatureSay(cid, "Only for Knights!", TALKTYPE_ORANGE_1)
                end
       
end
end

Try it?

:peace:
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
                


if itemid == 7720 and getPlayerStorageValue(cid,120212) == 2 then
                        doCreatureSay(cid, "You can only use this scroll once!", TALKTYPE_ORANGE_1)


else if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 or getPlayerVocation(cid) == 9 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 10 then

                        setPlayerStorageValue(cid,1202,2)
                        doRemoveItem(item.uid)
                        doPlayerAddSkillTry(cid,1,10)
                        doPlayerAddSkillTry(cid,2,10)
                        doPlayerAddSkillTry(cid,3,10)
                        doPlayerAddSkillTry(cid,4,10)
                        doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
                        doCreatureSay(cid, "You Gained 10 Melee and Distance Skills! Thank you for your donation!", TALKTYPE_ORANGE_1)
else
                doCreatureSay(cid, "Only for Knights and Paladins!", TALKTYPE_ORANGE_1)
                end
        
end
end

Plox I give rep++ tomoro cant give more today :p.
 
Back
Top