crashgb
Crash
- Joined
- Aug 20, 2013
- Messages
- 48
- Reaction score
- 0
Help! not reduce the VIP days.
I occupy the system VIP by Kekox
check my Action/Script/vipmedal.lua
check my action.xml
check my Globalevents/script/daysremover
and my globalevents.xml
what is the problem?
thanks people!!
I occupy the system VIP by Kekox
check my Action/Script/vipmedal.lua
-- Vip medal by Kekox
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVipDays(cid) > 365 then
doPlayerSendCancel(cid, "You can only have 1 year of vip account or less.")
else
doAddVipDays(cid, 10)
doCreatureSay(cid, "VIP")
doPlayerPopupFYI(cid, "We have added 10 vip days to your account!\nEnjoy it!.")
doRemoveItem(item.uid)
end
return true
end
check my action.xml
<action itemid="5785" event="script" value="vipmedal.lua"/>
check my Globalevents/script/daysremover
--- Script by Kekox
function onTime()
db.executeQuery("UPDATE accounts SET vipdays = vipdays - 1 WHERE vipdays > 0;")
return true
end
and my globalevents.xml
<globalevent name="VipDaysRemover" time="00:01" event="script" value="daysremover.lua"/>
what is the problem?
thanks people!!