Page 1 of 1

Levelup!

PostPosted: Fri Oct 08, 2010 4:15 pm
by .:MiB:.
I was wondering since I was gonna code a function in one of my python scripts, how to make it so you can levelup someone.

~MiB

PostPosted: Fri Oct 08, 2010 9:04 pm
by XE_ManUp
from gungame51.core.players.shortcuts import Player

Player(userid).levelup(levelsAwarded, victim=0, reason='')


levelsAwarded is the number of levels to award.
victim is the userid of the victim, if any.
reason is the string reason code to be used for why the player is being levelled up.

PostPosted: Fri Oct 08, 2010 11:32 pm
by .:MiB:.
Thanks just exactly what I needed!

~MiB