mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Synth/Gather commands now appear automatically.
This commit is contained in:
parent
8a5b97f5b2
commit
8695deb880
@ -276,6 +276,8 @@ namespace Meteor.Map.Actors
|
||||
Database.LoadPlayerCharacter(this);
|
||||
lastPlayTimeUpdate = Utils.UnixTimeStampUTC();
|
||||
|
||||
SetSpecialCommands(charaWork.parameterSave.state_mainSkill[0]);
|
||||
|
||||
this.aiContainer = new AIContainer(this, new PlayerController(this), null, new TargetFind(this));
|
||||
allegiance = CharacterTargetingAllegiance.Player;
|
||||
CalculateBaseStats();
|
||||
@ -1222,6 +1224,7 @@ namespace Meteor.Map.Actors
|
||||
}
|
||||
}
|
||||
|
||||
SetSpecialCommands(charaWork.parameterSave.state_mainSkill[0]);
|
||||
UpdateHotbar();
|
||||
|
||||
List<SubPacket> packets = propertyBuilder.Done();
|
||||
@ -1233,6 +1236,37 @@ namespace Meteor.Map.Actors
|
||||
RecalculateStats();
|
||||
}
|
||||
|
||||
private void SetSpecialCommands(byte classId)
|
||||
{
|
||||
//Added special commands for crafter/gatherer
|
||||
charaWork.command[16] = 0;
|
||||
charaWork.command[17] = 0;
|
||||
if (classId >= 29 && classId <= 36)
|
||||
{
|
||||
charaWork.command[16] = 0xA0F00000 | 22001; //Synthesize
|
||||
}
|
||||
else if (classId == 39) //Miner
|
||||
{
|
||||
charaWork.command[16] = 0xA0F00000 | 22002; //Mine
|
||||
charaWork.command[17] = 0xA0F00000 | 22006; //Quarry
|
||||
}
|
||||
else if (classId == 40) //Botanist
|
||||
{
|
||||
charaWork.command[16] = 0xA0F00000 | 22003; //Log
|
||||
charaWork.command[17] = 0xA0F00000 | 22007; //Harvest
|
||||
}
|
||||
else if (classId == 41) //Fisher
|
||||
{
|
||||
charaWork.command[16] = 0xA0F00000 | 22004; //Fish
|
||||
charaWork.command[17] = 0xA0F00000 | 22008; //Spearfish
|
||||
}
|
||||
else if (classId == 42) //Shepherd
|
||||
{
|
||||
charaWork.command[16] = 0xA0F00000 | 22005; //Herd
|
||||
charaWork.command[17] = 0xA0F00000 | 22009; //Herd 2
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateClassLevel(byte classId, short level)
|
||||
{
|
||||
Database.PlayerCharacterUpdateClassLevel(this, classId, level);
|
||||
|
Loading…
Reference in New Issue
Block a user