WarCraft: Source

 

GetXp

Page history last edited by freddukes@... 1 yr ago

Get XP

 


Retrieves the amount of XP the user has for that race and stores it in a local variable which you define.

 

The correct syntax is:

 

<variable> = wcs.Command(<userid>).GetXp()

 

  • Variable - The variable where you'd wish to store the current XP of the user
  • Userid - The player you'd wish to retrieve the information for.


Example:

 

def player_spawn(ev):

    xp = wcs.Command(ev['userid']).GetXp()

    es.tell(ev['userid'],'#green','You have %s Xp'%xp)

Comments (0)

You don't have permission to comment on this page.