• 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 Need help with vip system

Byllan

Member
Joined
Dec 29, 2009
Messages
1,079
Reaction score
12
Location
SWEDEN
When i click on Vip medal so come a window up and say

Edit Text

It is currently empty.
You can enter new text.


How i fix it i use shawak vip system
 
Can you help me out Cykotitan the id of medal is 5785

You add that:


Code:
function onUse(cid, item, frompos, item2, topos)

if item.itemid == 5785 then

local playerpos = getCreaturePosition(cid)

doRemoveItem(item.uid,1)
setPlayerStorageValue(cid,21444,1)

doSendMagicEffect(playerpos, 12)
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED) 
doCreatureSay(cid, "Gratulacie! Teraz jestes posiadaczem Vip Access! Czuj Sie Jak Kozak", TALKTYPE_ORANGE_1)
end
end

And to actions.xml?
 
Use this

PHP:
-- Credits StreamSide and Empty
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 15 days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
			setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 15))
			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 donator.")
	end	
return TRUE
end
 
items.xml
Code:
	<item id="5785" article="a" name="medal of honour">
		<attribute key="weight" value="100" />
[B][COLOR="Red"]		<attribute key="writeable" value="1" />
		<attribute key="maxTextLen" value="100" />[/COLOR][/B]
	</item>
but it won't work if you register it in actions, ffs
 
Back
Top