Stone Guardian Behavior... (Not the real codes!)

Posts 115 of 15 · Page 1 of 1
Stone Guardian Behavior... (Not the real codes!)
Here you are guys!

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 _ StoneG = Behav()

                 .Init(0x0d78, Behaves("Oryx Stone Guardian Right",
                 new RunBehaviors(
                 SmoothWandering.Instance(2f, 2f),
                 Cooldown.Instance(800, MultiAttack.Instance(200, 40 * (float)Math.PI / 360, 4, 0, projectileIndex: 2)),
                 Cooldown.Instance(900, MultiAttack.Instance(200, 55 * (float)Math.PI / 360, 6, 0, projectileIndex: 1)),
                 Cooldown.Instance(850, MultiAttack.Instance(200, 70 * (float)Math.PI / 360, 4, 0, projectileIndex: 0))          
                 ),
                 loot: new LootBehavior(LootDef.Empty,
                 Tuple.Create(100, new LootDef(0, 3, 0, 8,
                 Tuple.Create(0.01, (ILoot)new ItemLoot("Ancient Stone Sword"))
                 )))))

                 .Init(0x0d79, Behaves("Oryx Stone Guardian Left",
                 new RunBehaviors(
                 SmoothWandering.Instance(2f, 2f),
                 Cooldown.Instance(800, MultiAttack.Instance(200, 40 * (float)Math.PI / 360, 4, 0, projectileIndex: 2)),
                 Cooldown.Instance(900, MultiAttack.Instance(200, 55 * (float)Math.PI / 360, 6, 0, projectileIndex: 1)),
                 Cooldown.Instance(850, MultiAttack.Instance(200, 70 * (float)Math.PI / 360, 4, 0, projectileIndex: 0))
                 ),
                 loot: new LootBehavior(LootDef.Empty,
                 Tuple.Create(100, new LootDef(0, 3, 0, 8,
                 Tuple.Create(0.01, (ILoot)new ItemLoot("Ancient Stone Sword"))
                 )))));
    }
}
Thanks to @ossimc82 for bug fixes !

Name the Behavior:

"BehaviorDb.StoneG.cs"
I only placed some ")" and some ","
thats enough to help somebody ^^
hmmm, looks more like GML to me
Quote Originally Posted by Roey2009 View Post
hmmm, looks more like GML to me
GML? Whats that ?
thank you. it work but. how do you spawn them.
type: "/spawn Oryx Stone Guardian Right", "/spawn Oryx Stone Guardian Left" ...
Thank you i havent got around to making guardian behaviors

---------- Post added at 11:29 PM ---------- Previous post was at 11:09 PM ----------

Thank you i havent got around to making guardian behaviors
Help add me on skype: murilopw001 PLEASE
sorry, noob question... where do i save this?
Quote Originally Posted by hytyotwo View Post
sorry, noob question... where do i save this?
wserver > logic > db

Make sure you add it into your server project.
Quote Originally Posted by Lunati View Post
wserver > logic > db

Make sure you add it into your server project.
and... how do i do that?
:/
i'm sorry im new to this area, i haven't played with JS /C# yet, so i dont realy understand much of this talk
Quote Originally Posted by hytyotwo View Post
and... how do i do that?
:/
i'm sorry im new to this area, i haven't played with JS /C# yet, so i dont realy understand much of this talk
In visual studio (or sharpdevelop) use the solution explorer to navigate to wserver > logic > db. Right click db and add new item. Name it whatever you want it, and click add. Then replace the content of your newly created cs file with the code provided here.
Posts 115 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?