[HELP] ONLY VIP CAN ACCESS A CERTAIN WORLD

Newbie Spellweaver
Joined
Nov 8, 2023
Messages
59
Reaction score
26
Hi, good day!

I’d like to ask for help regarding world access restrictions in the source code. Specifically, I want to implement a system similar to the Azria ticket, where only players with VIP status can enter a certain world.

I’ve created a new ticket and a new world, and now I want to restrict access so that only VIP players can enter using that ticket.

Could someone guide me on where in the source code I can apply this restriction or modify the logic to enforce it?
 
Server Information
Florist
Solution
C++:
CUser::DoUseItemTicket
This function triggered when you use ticket item.

You can also add extra checks in:
C++:
 CUser::Process
(the simplest option) and verify whether VIP is active periodically (for example, every 10-15 seconds). If a player is in a specific world but VIP is not active, he will be teleported to Flaris.
C++:
CUser::DoUseItemTicket
This function triggered when you use ticket item.

You can also add extra checks in:
C++:
 CUser::Process
(the simplest option) and verify whether VIP is active periodically (for example, every 10-15 seconds). If a player is in a specific world but VIP is not active, he will be teleported to Flaris.
 
Upvote 0
Solution
C++:
CUser::DoUseItemTicket
This function triggered when you use ticket item.

You can also add extra checks in:
C++:
 CUser::Process
(the simplest option) and verify whether VIP is active periodically (for example, every 10-15 seconds). If a player is in a specific world but VIP is not active, he will be teleported to Flaris.
Thank you as always! I'll try this now.

C++:
CUser::DoUseItemTicket
This function triggered when you use ticket item.

You can also add extra checks in:
C++:
 CUser::Process
(the simplest option) and verify whether VIP is active periodically (for example, every 10-15 seconds). If a player is in a specific world but VIP is not active, he will be teleported to Flaris.
It works. With the help of ChatGPT and you, I was able to achieve what I wanted to do. Again, thank you.
 
Last edited:
Upvote 0
Back