MobAI's

smoochy boys on tour

Inflikted

LOMCN Veteran
Veteran
Aug 4, 2003
256
7
114
so i want to make more difficult mobs, maxing out things on the database, only gets you so far.. as to doing about and around 200-400 dmg per hit, and i want to get hits around 1,000-2000 dmg per hit. and some bosses are wierd, adding more than 255 dc, actually weakens their hits lol. so i figured creating ai files was the way to go, to increase their attacks. now i try to make up a monai file, reloaded the monai to the mob i wanted for. and it says the monai file was loaded succesfully. but when i spawn it. there are no changes to it.
is there a step i am missing. or there are limits to what certain mobs can do as far as AI goes. thanks
 

Kindas

Dedicated Member
Dedicated Member
Mar 27, 2007
20
0
48
Check few things.
1. Mob race:255
2. File with script AI: <exactlymobname>.txt
3. File <exactlymobname>.txt in list MonAi_Def.txt (im not sure name of file.. but in main folder Envir)
If te script are correct, should be working :)

Regards
 
Upvote 0

Inflikted

LOMCN Veteran
Veteran
Aug 4, 2003
256
7
114
alright i got it to work for the most part... but the glitchyness of the movement is a bit cumbersome and annoying. is there a way to control the speed of the mob movement through mobai files? or better yet... dont move at all lol. after its next to an enemy? or am i forever doomed with the excessive movement of the mobs, while it can hit harder its hard to control..
 
Upvote 0

Kindas

Dedicated Member
Dedicated Member
Mar 27, 2007
20
0
48
The better way to control movement speed it is parameters in database.. in AI script place only damage stats :)
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
I've got it to work without the staggering movement, just took out the delay part of the scripts. :)
 
Upvote 0

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
also how near is a enemy u make also best with db entry in HL_Monster the colum COOLEYE say u how near u must be as player that a monster see u and try to attack
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
I don't really understand that sorry amenovis but cooleye is to do with the effectiveness of invisibility to mobs, using invis, mass invis and trans.
 
Upvote 0

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
mhh can be i know only as i changed cooleye from a mob he saw me much later first it was cooleye 100. it comes to me before i saw him than i changed to cooleye 50 and it comes to me as i saw him after i changed it to 0 he saw me only as i stand beside him. so ??? but its also possible that my server is cheating me he make it much to often so all is possible

i had think its for it cause i had it but also possible im wrong
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
This should help:

Monster setup columns (left to right)

Name - Mob name

Race

RaceImg - This is the type of Attack the mob Does

Appr - What it looks like on screen

lvl - mob lvl used for taming/turnundead, thrusting etc.
(not just that, also HP regen etc..)

undead - 0=living 1=undead

tameable - 0=Not Tameable 1=Tameable

wz1 - % of that creature that will walk through fire 9= meaning 10%
of them will walk through fire (2= 80% walk through etc).

cooleye - This is for use with Clear ring, hide, etc

venomDC - POISON attack Strength

exp - experience points gained by killing mob

hp - health points of mob

mp - Magic points of mob

wz2 - Min AC

wz3 - Max AC

ac - MAC of mob (general resistance to magical attack)

FireMAC - Resistance to Fire (if negative number make it weak to that element)

IceMAC - Ice resistance (as above)

LightMAC - Electic resistance (as above)

WindMAC - wind resistance (as above)

HolyMAC - Holy resistance (as above)

DarkMAC - Dark resistance (as above)

PhantomMAC Phantom resistance (as above)

DC - Minimum dc of mob

DCMax - maximum dc of mob

MCType - the magic type mob attacks with:
0:Physical attack, 1:Fire, 2:Ice, 3:Electric, 4:Wind, 5:Holy,
6:Poison/Paralysis/Dark, 7:Phantom.

MC - minimum magic power of mob

MCMax - maximum magic power of mob

Speed - agility of mob (higher the number the harder it is to hit)

Hit - accuracy of mob (higher the number more likely it is to hit
character)

WalkSpd - movement speed of mob (lower the numer faster it is)

WalkWait - how long mob waits between steps

WalkStep - how many steps mob makes between waits

AttackSpd - speed mob attacks character (lower the number faster it is)

Wz4 - Distance that it can see you from
(Changed it on EC and you had to go and smack it on the nose)

Wz5 - unknown
 
Upvote 0

Inflikted

LOMCN Veteran
Veteran
Aug 4, 2003
256
7
114
i have taken the delay parts of the script out. all that does is increase spell attacks maybe i didnt explain it right..
you no how a regular mob it comes attacks you, and stays there, with the mobai scripts i use, it will move around while its right next to the person
like a simple script like this...
Code:
[@DevilsGod, STATUS, 1]
#IF
random 1 20
Near   12
#ACT
Jumpto
Power RATE 2000
hit [2]
Power RATE 2000
#IF
random 1 2
Near 13
#ACT
Spell [3] FIREBOMB 2000 (6) FULLMOON
Spell [3] HEALING 800 (23) SELF
SETSTATUS 0
break
my old guess is something to do with "Near 13" which i thought just told it to react to someone on how far away they are. I am not sure what the numbers in the bracket do though, could that be a problem? like FIREBOMB 2000 (6) dunno what 6 stands for.

also on another side note, ive seen this done before, to script teleport only mobs, how can this be done effectively, without making it constantly reteleport to the same spot over and over. which seems to be in a place i am stuck.
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
number in brackets is a graphic type, 6 being firebomb, experiment with numbers :)

Near is the distance away from the target it will attack from, to be honest I never go over 12 as you're probably getting near to off-screen over that.

If you use a delay 100 it keeps the jerkiness down to a minimum and use random 20 for 1 in 20 chance, not random 1 20, etc....
 
Upvote 0

Inflikted

LOMCN Veteran
Veteran
Aug 4, 2003
256
7
114
ah i recalled an old trick :)
to use
#IF
random 1 1
Near 1
#ACT
Spell [3] Firewall 6000 5 () SELF Delay 500

it firewall's itself, when it reaches the enemy. so it doesnt move then :)
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
no they don't....and i think, without testing that would constantly firewall itself if it was right next to a player character, allbeit with a brief 500 delay.
 
Upvote 0