The problem i see here is that if a VIP players is in a non-vip area and he runs out of days .. lets say hunting in non vip or in a war... he will be teleported back
considering vip zone a square between x 100 - 200 and y 100 - 200
Instead you could scan his position to see if he is in a vip zone ....
if playerposition.x >100 and playerposition.x< 200
if playerposition.y >100 and playerposition.y>200
teleport him
end
end
i dont want to elaborate on it if not necesary ... tell me if you get the idea or need the correct lua format hahahaha ... good system
Also maybe not an onlogin but an on move script (althought it would be very heavy for the server) because if i stay online then i have infinite VIP.
considering vip zone a square between x 100 - 200 and y 100 - 200
Instead you could scan his position to see if he is in a vip zone ....
if playerposition.x >100 and playerposition.x< 200
if playerposition.y >100 and playerposition.y>200
teleport him
end
end
i dont want to elaborate on it if not necesary ... tell me if you get the idea or need the correct lua format hahahaha ... good system
Also maybe not an onlogin but an on move script (althought it would be very heavy for the server) because if i stay online then i have infinite VIP.