Hello me again, a few minutes ago i'm coding a new Monster object and BehaviorDb
I'm fully coding in Visual Studio and InteliJ IDEA 14.1.7
And some reason i can spawn my Monster but its Missing on worlds(i think the problem is not in the AnimatedTexture)
But if i use /killall command, system will said 1 enemy has killed
video:
XML Codes:
Code:
<Object type="0x7182" id="JohTestMob1">
<Group>Abyss Demons</Group>
<Enemy/>
<Class>Character</Class>
<Texture>
<File>lofiChar28x8</File>
<Index>0x22</Index>
</Texture>
<HitSound>monster/abyss_demons_hit</HitSound>
<DeathSound>monster/abyss_demons_death</DeathSound>
<Size>100</Size>
<MaxHitPoints>400</MaxHitPoints>
<Defense>30</Defense>
<Projectile id="0">
<ObjectId>Red Fire</ObjectId>
<Damage>80</Damage>
<Speed>60</Speed>
<LifetimeMS>3000</LifetimeMS>
</Projectile>
<DisplayId>JohTestMob1</DisplayId>
</Object>
Behavior:
Code:
#region
using wServer.logic.behaviors;
using wServer.logic.transitions;
using wServer.logic.loot;
#endregion
namespace wServer.logic
{
partial class BehaviorDb
{
private _ JohTestingObject = () => Behav()
.Init("JohTestMob1",
new State(
new Prioritize(
new Follow(1, 8, 5),
new Wander(0.25)
),
new Shoot(8, 3, projectileIndex: 0, coolDown: 1000)
),
new ItemLoot("Fire Sword", 0.025),
new ItemLoot("Steel Shield", 0.025)
)
;
}
}
yea i used Demon of the Abyss codes for my Object
Sorry for bad English