This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
StealthyS4m
Hello guys,
I have a script that checks who has most pvp in one day,it checks it by checking database and at the end of the day I want to set a player,who has most pvps, to hero.I don't know how to get character instance,so I can't do player.setHero(true).I can change database table "heroes",but I am not sure what columns like played,active,message mean.
I can get any info from database,but I am not sure how to set the player with most pvp to Hero(changing hero to 1 in characters table doesn't work).
So I either need a way to make a player a hero using database or better thing would be to get Character instance so I can use Player.setHero(true);
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now