Help on Mob types

09/10/2008 23:36 stephanyd#1
Anyone knows wich file to work on to make Mobs attacking with Magic ?
09/11/2008 00:35 tao4229#2
Entities.cs

And look in your database(Depending on which version of LOTF you have, the LOTF I got already had some =]).
09/11/2008 00:42 kafetao#3
else if (MType == 6)
World.MobAttacksCharSkill(this, Target, (uint)DMG, skillid, skillLevel);
09/11/2008 01:56 stephanyd#4
I did that but mob isn't moving or attacking:confused:
09/11/2008 18:38 Tw3ak#5
That is because LOTF isn't coded to use magic mobs if i remember right,You have to code it in yourself to make them truely use magic.

With standard LOTF source you can make mobs use magic "skills" on people but the dmg is still actually physical not matk until you code it in properly.
09/11/2008 18:58 keving#6
On basic lotf Guards attacks you with an MagicSkill use that line for MagicAttack :)
09/12/2008 01:34 tao4229#7
Quote:
Originally Posted by Tw3ak View Post
That is because LOTF isn't coded to use magic mobs if i remember right,You have to code it in yourself to make them truely use magic.

With standard LOTF source you can make mobs use magic "skills" on people but the dmg is still actually physical not matk until you code it in properly.
It comes from their max/min attack in the database(On the version I had, it seems to be a bit different from the one that most people have, It already had basi spawned and shite) but it takes it from the m-defense. IDK if you're talking about more advanced stuff like it sends the packet for normal damage or some shit I couldn't think of comprehending... but meh'..
09/17/2008 00:37 THE BAT#8
Quote:
Originally Posted by keving View Post
On basic lotf Guards attacks you with an MagicSkill use that line for MagicAttack :)
Yes

Use World.MobAttacksCharSkill(); before making the mob attack
09/17/2008 00:48 Rechocto#9
My Guards and my summons use magic :), just make a function for it, and a new mobtype for it :D
09/17/2008 00:51 tao4229#10
Quote:
Originally Posted by Rechocto View Post
My Guards and my summons use magic :), just make a function for it, and a new mobtype for it :D
Hey, may I ask two questions?(Oops theres one.)

Next, do your mobs(summons) "jump" or just run/walk... If they jump, I may want some help on that :p
09/17/2008 01:05 Rechocto#11
@Tao - move the summons talk to [Only registered and activated users can see links. Click Here To Register...]

but right now they just run\walk.. to make your summons jump add a new section to packets (you have World.MobMoves(), I'm sure that sends packet type 1005) and have it send the same as mobmoves but instead of 1005 which would be walk you send jump.. I don't remember right now since I deleted my copper\silver\gold guard thing I had going but it might be 1007?
09/17/2008 01:06 tao4229#12
Quote:
Originally Posted by Rechocto View Post
@Tao - move the summons talk to [Only registered and activated users can see links. Click Here To Register...]

but right now they just runwalk.. to make your summons jump add a new section to packets (you have World.MobMoves(), I'm sure that sends packet type 1005) and have it send the same as mobmoves but instead of 1005 which would be walk you send jump.. I don't remember right now since I deleted my coppersilvergold guard thing I had going but it might be 1007?
That's what I figured :p, I'll ask around and see if anyone knows the packet type.