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

item that gives you promotion

Elexonic

Well-Known Member
Joined
Jun 18, 2008
Messages
1,920
Reaction score
59
I need that an item xxx when him click gives you of the second promotion.

Helmp my pleased.
 
Up: Srry :(

Need help with action script.

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) > 20 then

doPlayerSendTextMessage(cid,22,"You Are New promotion.")
doRemoveItem(item.uid, 1)
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then
doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
end
if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then
doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
end
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
end
if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then
doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
end
else
doPlayerSendCancel(cid,"Need Level 20 For user promotion.")
doRemoveItem(item.uid, 1)
end
else
doPlayerSendCancel(cid,"You are promotion..")
end
return TRUE
end

I dont`know make script
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerVocation(cid) == 1 then
		doPlayerSetVocation(cid, 5)
		doCreatureSay(cid, "You are now a Master Sorcerer!", TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	elseif getPlayerVocation(cid) == 2 then
		doPlayerSetVocation(cid, 6)
		doCreatureSay(cid, "You are now a Elder Druid!", TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	elseif getPlayerVocation(cid) == 3 then
		doPlayerSetVocation(cid, 7)
		doCreatureSay(cid, "You are now a Royal Paladin!", TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	elseif getPlayerVocation(cid) == 4 then
		doPlayerSetVocation(cid, 8)
		doCreatureSay(cid, "You are now a Elite Knight!", TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	else
		doPlayerSendCancel(cid,"You need to be promoted in order to use this item.")
	end
end


Rep For Help :P NOt test But Must Work :P
 
Don`t work say You need to be promoted in order to use this item.")

00:43 You see yourself. You are an elder druid.


New promtion is 9,10,11,12

Use Tfs 0.3.5
 
Back
Top