Open Likeeit opened 7 years ago
There's no .@mobGID, you should try changing that to .@unitID and test
Excuse me @dastgir . I fixed the script and it still does not work.
Can someone else confirm this?
Would try this now and let you know
Can confirm, there's no option available to disable skill usage of monsters.
Also I found a minor bug(typo?) in getunitdata
#undef getunitdata_sub
return false;
it returns false even if it is successful, resulting in debug messages in console, I guess that should be changed to return true;
currently there is no script command to disable a monster to summon mobs
although its not that hard to do ...
rathena add MD_NOCAST_SKILL
... which I personally think that is unofficial
I think ... add something else with *setunitdata
like UDT_FLAG something that uses bitmask value ...
so can control more than 1 things
now your script
//to prevent from summon mob
setunitdata(.@unitID, UDT_MODE, getunitdata(.@unitID, UDT_MODE) &~ 8);
//or
setunitdata(.@unitID, UDT_AI, 0); //value retired from constant.db
1st one is... wrong
MD_ASSIST
is like ant_hell, where all the ants attack you if you just attack 1 of them
2nd one also wrong ... UDT_AI defines the monster behavior, which most of them are hard-coded
<ai> can be:
0 = none (default)
1 = attack/friendly
2 = sphere (Alchemist skill)
3 = flora (Alchemist skill)
4 = zanzou (Kagerou/Oboro skill)
I'll take this one then
Issue Prelude
Description
The first issue is that the monster continues to summon its mobs, even though I block via setunitdata and they do not attack, but use abilities.
As I'm trying to prevent the monster from using skills, I tried to find a mode for setunitdata, but I found none. I was suggested these options by dev. Meko, as a workaround, however, to no avail.
Current Behavior
Monster continues to invoke his mobs even blocking with setunitdata and no setunitdata has been found to block the skills of monsters and mobs.
Expected Behavior
Monster should not use skills and summon his mobs.
Steps To Reproduce The Issue
Branch(es):
Hercules rev. hash/commit:
Git revision src: Info: Hercules 32-bit for Windows Info: Exported revision (src): 'Unknown' Info: Exported revision (scripts): 'Unknown' Info: OS version: 'Windows 8 Workstation (other) (build 9200) [x86_64]'
Info: Compiled with Microsoft Visual C++ 2015 (v1900)
Operating System
Windows 10 Home - x64 64 bits
Topic with more information: http://herc.ws/board/topic/14706-script-that-runs-a-custom-monster-for-testing/#comment-82274