Vip Ranks

Hello, this is my first shareoff here… With this patch you can use vip ranks for some purposes instead of GM ranks not to conflict with the gm commands… you guys understand.

In c++ you can use this code to get the player’s account vip level:

player->GetSession()->GetVipLevel()
Pastebin patch: http://pastebin.com/hkMMsvtq

Download patch: http://205.196.122.22/fm6nnxnwbe1g/3rpqnu2ldhuf7d2/vipranking.zip

Private Paste ID: hkMMsvtq

This is a private paste. If you created this paste, please login to view it.

However, never the less; creating a vip rank with RBAC is easy. This patch is going to be in conflict with the coming RBAC changes by the way.

now the pastebin link is public didnt knew that lol

about the rbac, you maybe are right /emoticons/default_smile.png

can you give me, sample commands…?

because i tried like this won’t work…

static bool HandleSAMPLECommand(ChatHandler * handler, const char * args)
{
Player* me = player->GetSession()->GetVipLevel();

thanks before

Try this:

static bool HandleSAMPLECommand(ChatHandler * handler, const char * args) { Player* player = handler->GetSession()->GetPlayer(); uint32 viplevel = player->GetSession()->GetVipLevel();