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

Vip medal and 0.4

  • Thread starter Thread starter Lanceq2
  • Start date Start date
L

Lanceq2

Guest
I moved from 0.3.6 to 0.4 and I have a problem. I changed the file items.otb from 0.3.6 to 0.4 the rest of the left as it was with 0.3.6 and everything works fine items are working properly but the only problem is the VIP Medal, and if I click on it then I have to write something and it does not work. Yet at the same ots 0.3.6 medal of work and added vip acces. Im using rev 3884
 
this?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

	if getPlayerStorageValue(cid,11551) < 1 then
		if getPlayerLevel(cid) > 1 then
			getPlayerStorageValue(cid, 11551)
			doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED) 
			doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for 99999 days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
			setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 999))
			doRemoveItem(item.uid, 1)
		else
			doPlayerSendCancel(cid,"You need to be at least level 2 to use this.")
			doRemoveItem(item.uid, 1)
		end
	else
		doPlayerSendCancel(cid,"You are already a VIP.")
	end	
return TRUE
end
 
Back
Top