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

Scripter One script - Monsters ignoring storage

I tried to do something in source but without success. I think to do it by lua. If getPlayerFlagValue(cid, IGNORED_BY_MONSTERS) but, there is no a function to set a player the flag.
 
all you have to do is change the monster select target function in monsters.cpp and use Player* player = creature->getPlayer(); and if player exists use player->getStorageValue
I tried to do something in source but without success. I think to do it by lua. If getPlayerFlagValue(cid, IGNORED_BY_MONSTERS) but, there is no a function to set a player the flag.
you can only create flags in c++ to work with that function, afaik there's no way to do this in lua
 
What about setting a custom group to a player with that one additional flag?
 
You need to have
Code:
Monster::searchTarget
in monster.cpp
modified.

That's all.
 

Similar threads

Back
Top