• 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!

How to move trough certain monsters?

whitevo

Feeling good, thats what I do.
Joined
Jan 2, 2015
Messages
3,454
Solutions
1
Reaction score
627
Location
Estonia
How can i make it so, that:
if player tries to step on monster and the type of the monster is XX then (-- or monster has hidden health)
He can step on the monster
else
it works like it always does, player can't step on monster.

I'm trying to put some light into game trough monsters conditions, because items are not good enough to do it and I don't use OTC yet to make the items with correct lighting.
Problem is that, normal players can't step on these invisible lights. because well.. monster is in the way.

Also, what are these and how can I use them?

registerEnum(FLAG_NOLIMIT)
registerEnum(FLAG_IGNOREBLOCKITEM)
registerEnum(FLAG_IGNOREBLOCKCREATURE)
registerEnum(FLAG_CHILDISOWNER)
registerEnum(FLAG_PATHFINDING)
registerEnum(FLAG_IGNOREFIELDDAMAGE)
registerEnum(FLAG_IGNORENOTMOVEABLE)
registerEnum(FLAG_IGNOREAUTOSTACK)
 
the flags are used for functions like container:addItem and container:addItemEx

Code:
container:addItem(itemId[, count/subType = 1[, index = INDEX_WHEREEVER[, flags = 0]]])
container:addItemEx(item[, index = INDEX_WHEREEVER[, flags = 0]])

as for the walking through certain monsters, that'll be a source edit I believe. find where it allows players to walk through each other (non-pvp, protection zones, etc.) and add a modification for monsters.
 
Back
Top