[FSOD] Shatters Updated Code
Hello,
I've been working on the shatters code that has been posted here before, but was originally used from a source by @MikeRaarupBirk, and i've updated some of the code(drops, npc behaviors, etc).
Link to his original source: http://www.mpgh.net/forum/showthread.php?t=1135142
The map and textures are all the same, just a change in the behavior code.
New Added Things:
•Updated Drop Rates To Real Realm Drops ( feel free to edit yourself )
•Added pointers/notes for what some of the behaviors do for the new people.
•Changed how the stone paladin and stone mage && knight spawn work[Explanation below]
•Made the 1st boss bridge pillars spawn *correct* minions like real realm, and I also made it be on how close you are.
When I first tested this code, I noticed that the spawner(paladin and stone knight/mage) only spawned one of them, so I tested a few different loops of code, and finally found one that worked.
A basic explanation of how it works: The code basically in dumbified terms:
Bridge Pillars: The bridge pillars spawn the coordinated monsters for their pillar if you are "x" range of the pillar, so that the monsters don't over-flood the map and ruin the experience.
Paladin / Stone Mage&Knight Spawner: When this code was posted, the spawners only spawned one monster and then stopped, what I have done is updated it so that when the monsters die, it loops to another State that checks if the monsters are alive, and if they are, it waits and checks again in a few seconds. Upon the second check, if they are dead, it loops back to the main part where it spawns the minions over again if you are in close enough proximity.
These aren't some epic major coding updates lol, just a few flaws I found in the shatters code that I thought I could help make work better.
Nothing more, but I do hope you guys enjoy this post, and if you find any flaws, feel free to tell me so I can try and help you to the fullest extent.
Have a great day, I will be posting a link to the code as it is past the 100,000 character limit allowed on MPGH, but also virus scans for the file for extra safety.
Raw Text Link: http://pastebin.com/raw/5bxeZdYb
I posted the RAW link, because as the code is hundreds of lines long, this allows you to press ctrl + a to select all and copy it, on the main pastebin site if you pressed ctrl + a, it would copy all the stuff on the website instead of just the code.
Virus Scan 1: https://virusscan.jotti.org/en-US/fi...job/xqrqczyed0
Virus Scan 2: https://www.virustotal.com/en/file/2...is/1484311905/

I've been working on the shatters code that has been posted here before, but was originally used from a source by @MikeRaarupBirk, and i've updated some of the code(drops, npc behaviors, etc).
Link to his original source: http://www.mpgh.net/forum/showthread.php?t=1135142
The map and textures are all the same, just a change in the behavior code.
New Added Things:
•Updated Drop Rates To Real Realm Drops ( feel free to edit yourself )
•Added pointers/notes for what some of the behaviors do for the new people.
•Changed how the stone paladin and stone mage && knight spawn work[Explanation below]
•Made the 1st boss bridge pillars spawn *correct* minions like real realm, and I also made it be on how close you are.
When I first tested this code, I noticed that the spawner(paladin and stone knight/mage) only spawned one of them, so I tested a few different loops of code, and finally found one that worked.
A basic explanation of how it works: The code basically in dumbified terms:
Bridge Pillars: The bridge pillars spawn the coordinated monsters for their pillar if you are "x" range of the pillar, so that the monsters don't over-flood the map and ruin the experience.
Paladin / Stone Mage&Knight Spawner: When this code was posted, the spawners only spawned one monster and then stopped, what I have done is updated it so that when the monsters die, it loops to another State that checks if the monsters are alive, and if they are, it waits and checks again in a few seconds. Upon the second check, if they are dead, it loops back to the main part where it spawns the minions over again if you are in close enough proximity.
These aren't some epic major coding updates lol, just a few flaws I found in the shatters code that I thought I could help make work better.
Nothing more, but I do hope you guys enjoy this post, and if you find any flaws, feel free to tell me so I can try and help you to the fullest extent.
Have a great day, I will be posting a link to the code as it is past the 100,000 character limit allowed on MPGH, but also virus scans for the file for extra safety.
Raw Text Link: http://pastebin.com/raw/5bxeZdYb
I posted the RAW link, because as the code is hundreds of lines long, this allows you to press ctrl + a to select all and copy it, on the main pastebin site if you pressed ctrl + a, it would copy all the stuff on the website instead of just the code.
Virus Scan 1: https://virusscan.jotti.org/en-US/fi...job/xqrqczyed0
Virus Scan 2: https://www.virustotal.com/en/file/2...is/1484311905/

I tried changing the loot drop but then i got all messed up and didn't let me rebuild. Anyways TY for this new amazing shatters code. I also thank Mike for making an amazing code. I really want to code but i'm just stupid

