the days aren't removed when the char isn't online, im using rev2 0.3.7 by martyx
I would have tochange the whole system since its based on all account.What do i have to change/fix to get just vip on the character that i use the vip medal on?
Now i get on the whole account but i just want on one of the character...
Like if i use a vip medal i get vip on that char that i use the medal on
Help me!![]()
If days arent removed when char offline, then it should not remove it also when char is online because days removal doesnt have anything to be with character on or off.
- - - Updated - - -
I would have tochange the whole system since its based on all account.
function onTime()
db.executeQuery("UPDATE accounts SET vipdays = vipdays - 1 WHERE vipdays > 0;")
return true
end
<globalevent name="VipDaysRemover" time="00:01" event="script" value="daysremover.lua"/>
Post it in Premium Board, you cant post it herei use TFS 0.4. 3777
ALTER TABLE `accounts` ADD
`vipdays` int(11) NOT NULL DEFAULT 0;
Info:getID()
Try this[Warning - Event::loadScript] Event onTime not found (data/globalevents/scripts/daysremover.lua)
stay error :'(
i use TFS 0.4. 3777