Jump to content
  • 0

Help me about MPV Battle....


saovarott159

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  53
  • Reputation:   1
  • Joined:  10/06/16
  • Last Seen:  

Help me please.....

If the dead back to the save point soon and clear Boss MVP in area battle MVP.

Where should edit on script...

Thank you so much...

// ================ Script ==============



OnStartMvP:
        
        monster "oasis",245,103,getmonsterinfo(.Mvpids,0),.Mvpids[rand(getarraysize(.Mvpids))],1,"MvP_Event::OnKillmonster";
        sleep2 60000;
            enablenpc "BossDeal#Failed";
            killmonster "oasis","MvP_Event::OnKillmonster";
            set $@Playing,0;
            disablenpc "BossDeal#Failed";
            
        end;
        
}

-    script    MvP_Event    -1,{
        
OnKillmonster:

        areaannounce "oasis",220,111,257,78,"have 10sec. pick item before moving save point",0;
        sleep2 10000;
        warp "SavePoint",0,0;
        set $@Playing,0;
        end;
        
OnInit:
        killmonster "oasis","MvP_Event::OnKillmonster";
        end;
}

oasis    mapflag    nobranch
oasis    mapflag    noicewall
oasis    mapflag    nomemo
oasis    mapflag    noteleport
oasis    mapflag    monster_noteleport

 

Edited by saovarott159
Please use CODEBOX.
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

OnPCDieEvent:
	if ( strcharinfo(3) == "oasis" ) {
        warp "SavePoint",0,0;
        set $@Playing,0;
	}
	end;

you can try add these code into your script.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   597
  • Joined:  11/25/11
  • Last Seen:  

Well, although the question seems uncomprehensible, I think you want to make dead players to be teleported as soon as they fall from a specific MVP.
Look at doc/scriptcommands.txt and study a Lavel named OnPCDieEvent, you may start from there.

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...