|
|
Make a list and add fireworks in it.Quote:
i need help with my firework system [Only registered and activated users can see links. Click Here To Register...]
public static const HONOR_POINTS_UPDATE:String = "HP";
this.delegateDict[ServerCommands.HONOR_POINTS_UPDATE] = this.assembleHonorPointsUpdate;
private function assembleHonorPointsUpdate(param1:Array) : void
{
Hero.honorPoints = int(param1[3]);
this.main.getGuiManager().updateInfoField(SimpleWindow.WINDOW_CLASS_USER,SimpleContainer.CONTAINER_CLASS_HERO_INFO_2,SimpleElement.TYPE_HONOR);
}
You can edit it but adding a function on some assemblies brokes the file. I can do everything on others but ServerCommands mess' everything. Use this maybe..Quote:
I'm trying to edit main.swf because I want to add Honor update function:
I'm doing this:
-Add this line in ServerCommands.as->class ServerCommands:
-Add this line in SetAttributeAssembly.as->class SetAttributeAssembly->function initDelegateDict():Code:public static const HONOR_POINTS_UPDATE:String = "HP";
-Add this function in SetAttributeAssembly.as->class SetAttributeAssembly:Code:this.delegateDict[ServerCommands.HONOR_POINTS_UPDATE] = this.assembleHonorPointsUpdate;
And I get this bug (no full load) entering on map:Code:private function assembleHonorPointsUpdate(param1:Array) : void { Hero.honorPoints = int(param1[3]); this.main.getGuiManager().updateInfoField(SimpleWindow.WINDOW_CLASS_USER,SimpleContainer.CONTAINER_CLASS_HERO_INFO_2,SimpleElement.TYPE_HONOR); }
[Only registered and activated users can see links. Click Here To Register...]
Note: I edited main.swf with JPEXS decompiler and with the edit (experimental) tool.
This code is for rewarding honor to a user, I only want to update it.Quote:
You can edit it but adding a function on some assemblies brokes the file. I can do everything on others but ServerCommands mess' everything. Use this maybe..
0|LM|ST|HON|" + amount + "|" + user.Honor