Can you help me out Cykotitan the id of medal is 5785
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
-- 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
<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>