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

Windows whats wrong with my premium doll

zdzisek

New Member
Joined
Aug 30, 2009
Messages
48
Reaction score
0
i think you know my problem already i know is annoying you but is going on my fucking nerves too whats wrong with it i paste everything correct but is still not working.are you suppose to say a comment when you have a doll or click on it and press use?

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVipDays(cid) > 365 then
doPlayerSendCancel(cid, "You can only have 1 year of premium account or less.")
else
doPlayerAddPremiumDays(cid, 30)
doCreatureSay(cid, "Premium")
doPlayerPopupFYI(cid, "We have added 30 vip days to your account!\nEnjoy it!.")
doRemoveItem(item.uid)
end
return true



<action itemid="9693" event="script" value="premdoll.lua"/>
 
LUA:
local config = {
	addPremiumDays = 30
}


function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerVipDays(cid) > 365 then
		doPlayerSendCancel(cid, "You can only have 1 year of premium account or less.")
	else
		doPlayerAddPremiumDays(cid, config.addPremiumDays)
		doCreatureSay(cid, "Premium", TALKTYPE_ORANGE_1)
		doPlayerPopupFYI(cid, "We have added ".. config.addPremiumDays .." vip days to your account!\nEnjoy it!.")
		doRemoveItem(item.uid)
	end
	
	return true
end
 

Similar threads

Back
Top