VoidExpanse/scope-player
Scope player
Used to manage player-related stuff.
Visibility: Global.
List of functions
AddAccess | ||
---|---|---|
Arguments | Returns | Example |
|
void |
player.AddAccess("dlirry", "order_3"); |
Description | ||
Grants player specified access. |
RemoveAccess | ||
---|---|---|
Arguments | Returns | Example |
|
void |
player.RemoveAccess("dlirry", "order_3"); |
Description | ||
Removes from player specified access. |
AddMoney | ||
---|---|---|
Arguments | Returns | Example |
|
void |
player.AddMoney("dlirry", 100500); |
Description | ||
Adds specified amount of money to a player. |
AddQuestRewardMoney | ||
---|---|---|
Arguments | Returns | Example |
|
void |
player.AddQuestRewardMoney("dlirry", 100500); |
Description | ||
Adds specified amount of money to a player, but takes into account bonus to rewards that player might have from skills. |
AddExperience | ||
---|---|---|
Arguments | Returns | Example |
|
void |
player.AddExperience("dlirry", 100500); |
Description | ||
Adds specified amount of experience to player. The same effect as ship.SetCurrentValueDelta(2535, "experience", 100500); |
AddQuestRewardExperience | ||
---|---|---|
Arguments | Returns | Example |
|
void |
player.AddQuestRewardExperience("dlirry", 100500); |
Description | ||
Adds specified amount of experience to player, but takes into account bonus to rewards that player might have from skills. |
GetMoney | ||
---|---|---|
Arguments | Returns | Example |
|
int: player's money |
var money = player.GetMoney("dlirry"); |
Description | ||
Gets current amount of player's money |
GetShipOfPlayer | ||
---|---|---|
Arguments | Returns | Example |
|
int: player's ship ID |
var ship_id = player.GetShipOfPlayer("dlirry"); |
Description | ||
Returns ID of player's ship. |
RemoveMoney | ||
---|---|---|
Arguments | Returns | Example |
|
void |
vplayer.RemoveMoney("dlirry", 100); |
Description | ||
Removes specified amount of money from player. |