mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Finished the crafting start window system. Added PassiveGuildleveQuests and refactors the Quest object. Cleaned up how zone music is handled.
This commit is contained in:
		| @@ -83,7 +83,7 @@ namespace Meteor.Map.Actors | ||||
|         public ModifierList genusMods; | ||||
|         public ModifierList spawnMods; | ||||
|  | ||||
|         protected Dictionary<MobModifier, Int64> mobModifiers = new Dictionary<MobModifier, Int64>(); | ||||
|         protected Dictionary<MobModifier, long> mobModifiers = new Dictionary<MobModifier, long>(); | ||||
|  | ||||
|         public BattleNpc(int actorNumber, ActorClass actorClass, string uniqueId, Area spawnedArea, float posX, float posY, float posZ, float rot, | ||||
|             ushort actorState, uint animationId, string customDisplayName) | ||||
| @@ -320,7 +320,7 @@ namespace Meteor.Map.Actors | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 var err = String.Format("[{0}][{1}] {2} {3} {4} {5} tried to die ded", actorId, GetUniqueId(), positionX, positionY, positionZ, GetZone().GetName()); | ||||
|                 var err = string.Format("[{0}][{1}] {2} {3} {4} {5} tried to die ded", actorId, GetUniqueId(), positionX, positionY, positionZ, GetZone().GetName()); | ||||
|                 Program.Log.Error(err); | ||||
|                 //throw new Exception(err); | ||||
|             } | ||||
| @@ -434,20 +434,20 @@ namespace Meteor.Map.Actors | ||||
|             this.bnpcId = id; | ||||
|         } | ||||
|  | ||||
|         public Int64 GetMobMod(MobModifier mobMod) | ||||
|         public long GetMobMod(MobModifier mobMod) | ||||
|         { | ||||
|             return GetMobMod((uint)mobMod); | ||||
|         } | ||||
|  | ||||
|         public Int64 GetMobMod(uint mobModId) | ||||
|         public long GetMobMod(uint mobModId) | ||||
|         { | ||||
|             Int64 res; | ||||
|             long res; | ||||
|             if (mobModifiers.TryGetValue((MobModifier)mobModId, out res)) | ||||
|                 return res; | ||||
|             return 0; | ||||
|         } | ||||
|  | ||||
|         public void SetMobMod(uint mobModId, Int64 val) | ||||
|         public void SetMobMod(uint mobModId, long val) | ||||
|         { | ||||
|             if (mobModifiers.ContainsKey((MobModifier)mobModId)) | ||||
|                 mobModifiers[(MobModifier)mobModId] = val; | ||||
|   | ||||
| @@ -81,7 +81,7 @@ namespace Meteor.Map.Actors | ||||
|             LoadNpcAppearance(actorClass.actorClassId); | ||||
|  | ||||
|             className = actorClass.classPath.Substring(actorClass.classPath.LastIndexOf("/") + 1); | ||||
|             this.classPath = String.Format("{0}/{1}", actorClass.classPath.Substring(0, actorClass.classPath.LastIndexOf('/')).ToLower(), className); | ||||
|             this.classPath = string.Format("{0}/{1}", actorClass.classPath.Substring(0, actorClass.classPath.LastIndexOf('/')).ToLower(), className); | ||||
|  | ||||
|             charaWork.battleSave.potencial = 1.0f; | ||||
|  | ||||
| @@ -109,8 +109,8 @@ namespace Meteor.Map.Actors | ||||
|                     isMapObj = false; | ||||
|                 else | ||||
|                 {                    | ||||
|                     layout = (uint)(Int32)lParams[4].value; | ||||
|                     instance = (uint)(Int32)lParams[5].value; | ||||
|                     layout = (uint)(int)lParams[4].value; | ||||
|                     instance = (uint)(int)lParams[5].value; | ||||
|                     isStatic = true; | ||||
|                 } | ||||
|             } | ||||
| @@ -236,7 +236,7 @@ namespace Meteor.Map.Actors | ||||
|             for (int i = 0; i < charaWork.property.Length; i++) | ||||
|             { | ||||
|                 if (charaWork.property[i] != 0) | ||||
|                     propPacketUtil.AddProperty(String.Format("charaWork.property[{0}]", i)); | ||||
|                     propPacketUtil.AddProperty(string.Format("charaWork.property[{0}]", i)); | ||||
|             } | ||||
|  | ||||
|             //Parameters | ||||
| @@ -261,14 +261,14 @@ namespace Meteor.Map.Actors | ||||
|             for (int i = 0; i < charaWork.statusShownTime.Length; i++) | ||||
|             { | ||||
|                 if (charaWork.statusShownTime[i] != 0) | ||||
|                     propPacketUtil.AddProperty(String.Format("charaWork.statusShownTime[{0}]", i)); | ||||
|                     propPacketUtil.AddProperty(string.Format("charaWork.statusShownTime[{0}]", i)); | ||||
|             } | ||||
|  | ||||
|             //General Parameters | ||||
|             for (int i = 3; i < charaWork.battleTemp.generalParameter.Length; i++) | ||||
|             { | ||||
|                 if (charaWork.battleTemp.generalParameter[i] != 0) | ||||
|                     propPacketUtil.AddProperty(String.Format("charaWork.battleTemp.generalParameter[{0}]", i)); | ||||
|                     propPacketUtil.AddProperty(string.Format("charaWork.battleTemp.generalParameter[{0}]", i)); | ||||
|             } | ||||
|  | ||||
|             propPacketUtil.AddProperty("npcWork.hateType"); | ||||
| @@ -302,7 +302,7 @@ namespace Meteor.Map.Actors | ||||
|  | ||||
|         public void LoadNpcAppearance(uint id) | ||||
|         { | ||||
|             using (MySqlConnection conn = new MySqlConnection(String.Format("Server={0}; Port={1}; Database={2}; UID={3}; Password={4}", ConfigConstants.DATABASE_HOST, ConfigConstants.DATABASE_PORT, ConfigConstants.DATABASE_NAME, ConfigConstants.DATABASE_USERNAME, ConfigConstants.DATABASE_PASSWORD))) | ||||
|             using (MySqlConnection conn = new MySqlConnection(string.Format("Server={0}; Port={1}; Database={2}; UID={3}; Password={4}", ConfigConstants.DATABASE_HOST, ConfigConstants.DATABASE_PORT, ConfigConstants.DATABASE_NAME, ConfigConstants.DATABASE_USERNAME, ConfigConstants.DATABASE_PASSWORD))) | ||||
|             { | ||||
|                 try | ||||
|                 { | ||||
|   | ||||
| @@ -39,7 +39,7 @@ namespace Meteor.Map.actors.chara.npc | ||||
|         { | ||||
|             this.retainerId = retainerId; | ||||
|             this.ownerPlayer = player; | ||||
|             this.actorName = String.Format("_rtnre{0:x7}", actorId); | ||||
|             this.actorName = string.Format("_rtnre{0:x7}", actorId); | ||||
|  | ||||
|             itemPackages[ItemPackage.NORMAL] = new ItemPackage(this, MAXSIZE_INVENTORY_NORMAL, ItemPackage.NORMAL); | ||||
|             itemPackages[ItemPackage.CURRENCY_CRYSTALS] = new ItemPackage(this, MAXSIZE_INVENTORY_CURRANCY, ItemPackage.CURRENCY_CRYSTALS); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user