• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Friendly monsters?

vejin

I'm not an expert.
Joined
May 6, 2010
Messages
54
Reaction score
2
Location
Ultima
Hello.
I'd like to change my sources for druids not to be attacked by elves and dwarves.
What I mean:
Druids cannot attack elves and dwarves,
Dwarves and elves do not attack druids.

Does someone have a little bit knowledge to explain to me how to do it.
I mean that I tried to do it months ago but I didn't understand the code (I don't remember exactly, combat.cpp? monster.cpp?)
Or just explain to me how does the combat source work.

@EDIT Oh I would forget. I'm using TFS 1.0, so creaturescripts with onCombat function could be kinda useless.

@EDIT2: solved! I had to change TFS 1.0 to TFS 1.0 edited by EvilHero or something like this (don't remember developers :D) there in creaturescripts there is option onCombat where I put dwarves' and elves' names and made them return false if voc is druid. I have another problem. Friendly monsters don't attack druid but they follow him. It's a trouble, because they can block player and player cannot get rid of them but I think I'll solve this. Thanks.
 
Last edited:
Back
Top Bottom