the word "impossible" doesn't exist in my dictionary however for this kind of monster vs monster fighting system, I suggest using mob controller system mob_controller_20140102.patch
- script kfkjsbdf -1,{
getmobdata .ai_action[AI_ACTION_SRC], .@mob;
attachrid .@mob[4];
@summon = 0;
end;
OnInit:
bindatcmd "pokemon", strnpcinfo(0)+"::Onaaa", 99,99;
end;
Onaaa:
if ( @summon ) {
message strcharinfo(0), "You already summon a pet";
end;
}
if ( getpetinfo(PET_CLASS) ) {
message strcharinfo(0), "please return your pet into egg state to continue";
end;
}
getinventorylist;
for ( .@i = 0; .@i < @inventorylist_count; .@i++ ) {
if ( @inventorylist_card1[.@i] == -256 ) {
query_sql "select intimate, class, level, name from pet where pet_id = "+( .@id = @inventorylist_card2[.@i] + ( ( @inventorylist_card2[.@i] >= 0 )? 0 : 1 << 16 ) + @inventorylist_card3[.@i] * ( 1 << 16 ) ), .@intimate, .@class, .@level, .@name$;
if ( .@intimate > .pet_min_friendly ) {
.@menu$ = .@menu$ +"^0000FF"+ .@name$ +" ^00CC00{"+ getmonsterinfo( .@class, 0 ) +"} ^000000["+ .@level +"]:";
.@pet_name$[.@c] = .@name$;
.@pet_class[.@c] = .@class;
.@pet_level[.@c] = .@level;
.@c++;
}
}
}
if ( !.@c ) {
mes "your inventory doesn't have any pet egg that intimate enough";
close;
}
mes "select which pet that you want it to summon";
next;
.@s = select( .@menu$ ) -1;
getmapxy .@map$, .@x, .@y, 0;
.@id = mobspawn( .@name$[.@s], .@pet_class[.@s], .@map$, .@x, .@y );
mobattach .@id, strnpcinfo(0);
mobassist .@id, getcharid(3);
setmobdata .@id, 25, AI_ACTION_TYPE_DEAD;
setmobdata .@id, 9, MD_CANMOVE | MD_AGGRESSIVE | MD_CANATTACK | MD_DETECTOR ;
@summon = 1;
end;
}
change to no
the most basic monster that follows you around I prefer mob controller because you can adjust the stats of the monster to your liking like this one http://www.eathena.ws/board/index.php?s=&showtopic=187045&view=findpost&p=1058796 hmm ... wanna me write the 1vs1 pet fighting system ? just post a reply and it shall be done because mob controller system got a learning curve ... dunno how many times have I say this but, I think I might be only member now who knows how to write a mob controller script