Jump to content
  • 0
minx123

request @command can summon list mvp

Question

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;

 

Edited by minx123

Share this post


Link to post
Share on other sites

12 answers to this question

Recommended Posts

  • 0
-	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 ? 

 

 

Share this post


Link to post
Share on other sites
  • 0

@@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.

Edited by Alayne

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.