Chazstic (05-08-2015),sebastianfra12 (05-08-2015),~V~ (05-07-2015)
Hey guys!
So i decided to make ice cave (yey) for Club559. Let me explain very short how theese codes works:
There is the mini ice bats swarming with the big bat and ofc mini yetis and big yetis. There is also a portal dropper called: "Ice Cave Portal Dropper"
When all Big Yetis and Big Bats are killed it will activate, remove Invulnerable and drop the inner portal. Ihavent added inner+codes but thats the part 2 of this thread.
So here is the XMLs for Addition.xml:
Go make a file in: Wserver>logic>db called: BehaviorDb.IceCave.csCode:<Object type="0x1978" id="Mini Yeti"> <Group>IceCave</Group> <Enemy/> <Class>Character</Class> <AnimatedTexture> <File>chars8x8rEncounters</File> <Index>118</Index> </AnimatedTexture> <HitSound>monster/cyclops_hit</HitSound> <DeathSound>monster/cyclops_death</DeathSound> <Size>100</Size> <MaxHitPoints>2890</MaxHitPoints> <Defense>25</Defense> <XpMult>1.1</XpMult> <Projectile id="0"> <ObjectId>Ice Burst</ObjectId> <Damage>100</Damage> <Speed>100</Speed> <LifetimeMS>800</LifetimeMS> <Wavy/> </Projectile> </Object> <Object type="0x1977" id="Big Yeti"> <Enemy/> <Class>Character</Class> <AnimatedTexture> <File>chars16x16rEncounters</File> <Index>50</Index> </AnimatedTexture> <HitSound>monster/cyclops_hit</HitSound> <DeathSound>monster/cyclops_death</DeathSound> <Size>120</Size> <MaxHitPoints>7000</MaxHitPoints> <Defense>40</Defense> <XpMult>1.4</XpMult> <Projectile id="0"> <ObjectId>Ice Burst</ObjectId> <Damage>70</Damage> <Speed>35</Speed> <LifetimeMS>1200</LifetimeMS> </Projectile> </Object> <Object type="0x1980" id="Mini Ice Bat"> <Group>IceCave</Group> <Enemy/> <Class>Character</Class> <AnimatedTexture> <File>chars8x8rEncounters</File> <Index>119</Index> </AnimatedTexture> <HitSound>monster/cyclops_hit</HitSound> <DeathSound>monster/cyclops_death</DeathSound> <Size>100</Size> <MaxHitPoints>1200</MaxHitPoints> <Defense>30</Defense> <XpMult>1.1</XpMult> <Projectile id="0"> <ObjectId>Ice Burst</ObjectId> <Damage>10</Damage> <Speed>35</Speed> <LifetimeMS>800</LifetimeMS> <Wavy/> </Projectile> </Object> <Object type="0x1979" id="Big Ice Bat"> <Enemy/> <Class>Character</Class> <AnimatedTexture> <File>chars16x16rEncounters</File> <Index>51</Index> </AnimatedTexture> <HitSound>monster/cyclops_hit</HitSound> <DeathSound>monster/cyclops_death</DeathSound> <Size>120</Size> <MaxHitPoints>4240</MaxHitPoints> <Defense>40</Defense> <XpMult>1.4</XpMult> <Projectile id="0"> <ObjectId>Ice Burst</ObjectId> <Damage>25</Damage> <Speed>35</Speed> <LifetimeMS>1200</LifetimeMS> </Projectile> </Object> <Object type="0x1981" id="Ice Cave Portal Dropper"> <Class>Character</Class> <Enemy/> <NoMiniMap/> <StasisImmune/> <Texture> <File>invisible</File> <Index>0</Index> </Texture> <MaxHitPoints>5000</MaxHitPoints> <Defense>0</Defense> <XpMult>0</XpMult> <Size>100</Size> <ShadowSize>0</ShadowSize> <HitSound>monster/chicken_hit</HitSound> <DeathSound>monster/chicken_death</DeathSound> <Projectile id="0"> <ObjectId>Pink Dot</ObjectId> <Damage>100</Damage> <Speed>65</Speed> <Size>120</Size> <LifetimeMS>2000</LifetimeMS> <MultiHit /> </Projectile> </Object>
and paste in this:
Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using wServer.realm; using wServer.logic.attack; using wServer.logic.movement; using wServer.logic.loot; using wServer.logic.taunt; using wServer.logic.cond; namespace wServer.logic { partial class BehaviorDb { static _ IceCave = Behav() .Init(0x1977, Behaves("Big Yeti", new RunBehaviors( Once.Instance(SpawnMinionImmediate.Instance(0x1978, 5, 1, 2)), Once.Instance(SpawnMinionImmediate.Instance(0x1978, 5, 1, 2)), SmoothWandering.Instance(2f, 2f), Chasing.Instance(5, 5, 1, null), Cooldown.Instance(860, MultiAttack.Instance(10, 15 * (float)Math.PI / 360, 3, 0, projectileIndex: 0)) ), loot: new LootBehavior(LootDef.Empty, Tuple.Create(100, new LootDef(0, 3, 0, 8, Tuple.Create(0.01, (ILoot)new ItemLoot("Health Potion")) ))))) .Init(0x1978, Behaves("Mini Yeti", new RunBehaviors( SmoothWandering.Instance(2f, 2f), Chasing.Instance(5, 5, 1, null), Cooldown.Instance(3000, SimpleAttack.Instance(12, 0)) )) ) .Init(0x1979, Behaves("Big Ice Bat", new RunBehaviors( Once.Instance(SpawnMinionImmediate.Instance(0x1980, 5, 1, 2)), Once.Instance(SpawnMinionImmediate.Instance(0x1980, 5, 1, 2)), SmoothWandering.Instance(2f, 2f), Cooldown.Instance(860, MultiAttack.Instance(10, 15 * (float)Math.PI / 360, 3, 0, projectileIndex: 0)) ), loot: new LootBehavior(LootDef.Empty, Tuple.Create(100, new LootDef(0, 3, 0, 8, Tuple.Create(0.01, (ILoot)new ItemLoot("Health Potion")) ))))) .Init(0x1980, Behaves("Mini Ice Bat", new RunBehaviors( SmoothWandering.Instance(2f, 2f), Chasing.Instance(5, 5, 1, null), Cooldown.Instance(800, MultiAttack.Instance(10, 30 * (float)Math.PI / 360, 6, 0, projectileIndex: 0)) )) ) .Init(0x1981, Behaves("Inner Portal Dropper", new RunBehaviors( Once.Instance(SetConditionEffect.Instance(ConditionEffectIndex.Invulnerable)), If.Instance(IsEntityNotPresent.Instance(60, 0x1977), Once.Instance(new SetKey(-1, 1))), IfEqual.Instance(-1, 1, new QueuedBehavior( StateOnce.Instance(new SimpleTaunt("Innocent souls. So delicious. You have sated me. Now come, i shall give you your reward.")), UnsetConditionEffect.Instance(ConditionEffectIndex.Invulnerable) )) ), condBehaviors: new ConditionalBehavior[] { new DeathPortal(0x1971, 100)} )); } }
and in the buttom of the behavior code you should see 0x1971.
here is the XMl for that portal:
Code:<Object type="0x1971" id="Inner Portal"> <Class>Portal</Class> <IntergamePortal/> <DungeonName>The Inner Sanctum</DungeonName> <Texture> <File>lofiObj6</File> <Index>0xcd</Index> </Texture> </Object>
Please leave a thanks to me and enjoy the behaviors! This is all coded by me! Part 2 incoming soon!
-ENJOY!
Chazstic (05-08-2015),sebastianfra12 (05-08-2015),~V~ (05-07-2015)
Chazstic (05-08-2015)
Works fine, please do more
[Vouched] Filehost l VPN l Music l Streaming l Gaming l Education l Security l Torrent l Others [All Accounts Shop]
Educational Account Store [Chegg l Coursehero l Grammarly l Pluarsight l Udemy l Ect]
VPN Store [ExpressVPN l IPVanish l HideMyAss l VyerVPN l NordVPN l StrongVPN l Others]
90% of Torrent - Trackers Accounts l Invites l Service l Warranty