Is there code with lua to check if the player is a Vip form lvl 1-5 or something like that because i would like to implement this into my code so that not just everyone can use the functions of the gossip.
Is there code with lua to check if the player is a Vip form lvl 1-5 or something like that because i would like to implement this into my code so that not just everyone can use the functions of the gossip.
Only possible in C++ i think.![]()
In C++ it would be:
Code:if(plr->GetSession()->CanUseCommand("1") || plr->GetSession()->CanUseCommand("2")... and so on.
Some more information would be appreciated...
Are you making a Lua item/NPC ?
If it's an NPC then C++ would be the way.
If it's an Item then Lua is fine, because then you can just choose to make the item soulbound on pickup, and then only give it to those persons who should use it. Which in this case would be the VIPs.
AngelSandy that would be good, but i wasnt going to make 2 of the same it for that...
I didn't say so.
Read over my text again.
I want all players to Have telestone but some to have special commands so ur idea is make one with the script, then for Vips make another with a same script but with Added Functions.
What we had on another server was if you had an item you would get some extra functions, like we had a special vip house,the vips could only enter with a key, if they didnt had the key, they event didnt have the possibilty to click the button because there was no button.
Not that I know the command for that, to check if someone has a item(anyone knows)?
I know the command for if they have a item the problem is that I want it to be in one Gossip Script that is on a item...
well the best way to do that is with C++
but those are some commands that could be good for the lua engines
that would be pretty cool i guess right?Code:pUnit:GetGMLevel()
Lunar Gaming - Reaching For The Stars