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

promotion

Magictibiaman

New Member
Joined
May 25, 2009
Messages
371
Reaction score
0
how do i make so once i open a chest to collect my items i also become promoted, (ex. knight to elder knight)
or does step through a portal, or anything like, that i don't like the king so i want another way to give promotions
anyone got any ideas?
 
Last edited:
figured out. so don't worry. if anyone is interested in the code

don't forget to register the xml part
Code:
function onUse(cid, item, frompos, itemEx, topos)
	player1 = getThingfromPos(getCreaturePosition(cid))

	if(getPlayerStorageValue(player1.uid,7040) == -1) then
		setPlayerPromotionLevel(cid, getPlayerPromotionLevel(cid) + 1)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been promoted to ".. getVocationInfo(getPlayerVocation(cid)).name ..".")
		setPlayerStorageValue(player1.uid,7040,1)
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have already been promoted.")
	end

	return 1
end
 
Okey good you fixed it, but why are you bumping all the time? 2 times withing 20 hours. Your not the only person who needs help here -.- 24 hours between each bump.
 
Back
Top