request @command can summon list mvp

minx123

New member
Messages
283
Points
0
Github
minx123
hello.. i need help for when using command @mvpsummon all mvp that list on file.txt will be summon and will be at random area in 1 map.. 

can someone help me? its same like this.

// Create @mvpsummon command
bindatcmd "mvpsummon", strnpcinfo(3) +"::Onmvpsummon", .auth, .auth;

end;
 
Last edited by a moderator:
- script mvp_command -1,{OnInit: // Configurations: .cmdname$ = "mvp"; // Name of the command? .useLevel = 70; // Who can use this command? // Random mobs that will come out of the command // Fill up with mob IDs setarray .mobids[0],1002,1003; // Add or change Mob IDs here // Don't edit past here bindatcmd .cmdname$, strnpcinfo(3)+"::OnAtcommand",.useLevel; end;OnAtcommand: //Use custom spawn set monster "this",-1,-1,"--ja--",.mobids[rand(getarraysize(.mobids))],1,""; dispbottom "A random MvP was summoned!"; end;}
based on this script, how to display the spawned MVP name instead of A random MVP was summoned ? 

 
 
@@mrlongshen

Replace 

OnAtcommand://Use custom spawn setmonster "this",-1,-1,"--ja--",.mobids[rand(getarraysize(.mobids))],1,"";dispbottom "A random MvP was summoned!";end;
by

OnAtcommand://Use custom spawn setset .@mobId, .mobids[rand(getarraysize(.mobids))];monster "this",-1,-1,"--ja--",.@mobId,1,"";Dispbottom " " + getmonsterinfo(.@mobId,MOB_NAME) + " has been spawned"end;
@@minx123

I dunno if you can prevent mvp from warping in any other way than disabling their teleport skills in mob_skill_db.txt...Never had to do that, and dunno if it's possible to prevent only mvp from warping.

 
Last edited by a moderator:
@@Alayne thanks so much
default_smile.png


 
Back
Top