Jump to content
  • 0

event MVP vs MVP


Eterno

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   0
  • Joined:  11/14/12
  • Last Seen:  

Can I have a script that make an event like this?

http://youtu.be/p4AgdL2slP8

Edited by Eterno
Link to comment
Share on other sites

20 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

You can spawn mobs with a custom 'ai':

*monster "<map name>",<x>,<y>,"<name to show>",<mob id>,<amount>{,"<event label>",<size>,<ai>};

<ai> can be:

0 = none (default)

1 = attack/friendly

2 = sphere (Alchemist skill)

3 = flora (Alchemist skill)

4 = zanzou (Kagerou/Oboro skill)

Using AI 0 and 1 on aggressive monsters will make them attack each other.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1181
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

please follow the guide from this link

http://rathena.org/b...-turnament-mvp/

Edited by hendra814
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  08/09/12
  • Last Seen:  

Same request

You can spawn mobs with a custom 'ai':

*monster "<map name>",<x>,<y>,"<name to show>",<mob id>,<amount>{,"<event label>",<size>,<ai>};

<ai> can be:

0 = none (default)

1 = attack/friendly

2 = sphere (Alchemist skill)

3 = flora (Alchemist skill)

4 = zanzou (Kagerou/Oboro skill)

Using AI 0 and 1 on aggressive monsters will make them attack each other.

-	script	hthuong	-1,{
OnWhisperGlobal:
if (getgroupid() < 99) close;
monster "pvp_2v2", 46, 45, "Test mob 1", 1647, 1,strnpcinfo(0)+"::Dead",0,1;
sleep2 2000;
monster "pvp_2v2", 46, 45, "Test mob 2", 1785, 1,strnpcinfo(0)+"::Dead",0,1;
}

They not attack each other.

How to call mvp monster without their servant

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

@hthuong: They have to be 0 and 1, not both the same flag.

-	script	test	-1,{
OnWhisperGlobal:
getmapxy(.@map$,.@x,.@y,0);
monster .@map$,.@x,.@y,"AI 0",1647,1,"",0,0;
monster .@map$,.@x,.@y,"AI 1",1785,1,"",0,1;
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  08/09/12
  • Last Seen:  

I want both attack each other, not one monster attack and one monster cannot attack.

And i don't want their servant appear

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   0
  • Joined:  11/14/12
  • Last Seen:  

I want both attack each other, not one monster attack and one monster cannot attack.

And i don't want their servant appear

my problem too :(

how to summon mvp without their servant? X_X

Link to comment
Share on other sites


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

this is the file that enable mvp to summon servant..

trunk/db/re/mob_skill_db.txt

the only way to disable summon servant is...remove the skill cast that summon servant...for each monster you want..

but it will affect the "normal" mvp ...because they shared the same file same data...because they are from same mob_id ...

your available option.....

create a new mob_db entry in mob_db file....and summon it using that new mob_id..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

The monsters do both attack each other... o.o

OsB03.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

Is there a way to have monsters be more like player summons so they don't attack any players and attack monsters they see?

Or is that what the 0,1 combination does?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  08/09/12
  • Last Seen:  

this is the file that enable mvp to summon servant..

trunk/db/re/mob_skill_db.txt

the only way to disable summon servant is...remove the skill cast that summon servant...for each monster you want..

but it will affect the "normal" mvp ...because they shared the same file same data...because they are from same mob_id ...

your available option.....

create a new mob_db entry in mob_db file....and summon it using that new mob_id..

Thanks

The monsters do both attack each other... o.o

OsB03.jpg

Sorry I looked confused because there are so many servant

Is there a way to have monsters be more like player summons so they don't attack any players and attack monsters they see?

Or is that what the 0,1 combination does?

http://rathena.org/b...er/#entry151417

Edited by hthuong
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

this event should be control by GM command, not by scripts

read the youtube comment

a gm summoning both MVP's to make em fight eachother -.-????

how to reproduce

// When a mob is attacked by another monster, will the mob retaliate against the master of said mob instead of the mob itself?

// NOTE: Summoned mobs are both those acquired via @summon and summoned by Alchemists

retaliate_to_master: no

1. change to no, then @reloadbattleconf

2. get 2 GM @hide

3. @duel between both GM

4. one GM "@summon 1916 999999999", another GM "@summon 2022 999999999"

and you get the result

so simple that everyone can do this in their server

src\map\unit.c

    if( src->type == BL_MOB )
       switch( skill_num )
       {
           case NPC_SUMMONSLAVE:
           case NPC_SUMMONMONSTER:
           case AL_TELEPORT:
               if( ((TBL_MOB*)src)->master_id && ((TBL_MOB*)src)->special_state.ai )
                   return 0;
       }

when a monster going to cast any of these 3 skills,

if the monster has a master ID, or the monster itself is in special AI state, it wont summon a slave monster

special_state.ai is like, a homunculus -> marine sphere .. flora

or a player summoned monster

src\map\atcommand.c

ACMD_FUNC(summon)
.......
   md->master_id=sd->bl.id;
   md->special_state.ai=1;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   0
  • Joined:  11/14/12
  • Last Seen:  

oh yes, thank you all :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  08/09/12
  • Last Seen:  

this event should be control by GM command, not by scripts

read the youtube comment

a gm summoning both MVP's to make em fight eachother -.-????

how to reproduce

// When a mob is attacked by another monster, will the mob retaliate against the master of said mob instead of the mob itself?

// NOTE: Summoned mobs are both those acquired via @summon and summoned by Alchemists

retaliate_to_master: no

1. change to no, then @reloadbattleconf

2. get 2 GM @hide

3. @duel between both GM

4. one GM "@summon 1916 999999999", another GM "@summon 2022 999999999"

and you get the result

so simple that everyone can do this in their server

src\map\unit.c

	if( src->type == BL_MOB )
	switch( skill_num )
	{
		case NPC_SUMMONSLAVE:
		case NPC_SUMMONMONSTER:
		case AL_TELEPORT:
			if( ((TBL_MOB*)src)->master_id && ((TBL_MOB*)src)->special_state.ai )
				return 0;
	}

when a monster going to cast any of these 3 skills,

if the monster has a master ID, or the monster itself is in special AI state, it wont summon a slave monster

special_state.ai is like, a homunculus -> marine sphere .. flora

or a player summoned monster

src\map\atcommand.c

ACMD_FUNC(summon)
.......
md->master_id=sd->bl.id;
md->special_state.ai=1;

I follow this way. And i enable mapflag monster_noteleport but monster still teleport. How to disable teleport of monster.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

Hthuong, I'm not sure which particular part in that thread you are referring. These wouldn't be global scripts, more setup so I can have pvp team based with monster allies on each team.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

the monster shouldn't be teleporting

because if the mobs has a master ID, it wont cast summon_slave or al_teleport

which I already pointed out in unit.c in my previous post

atcommand.c

ACMD_FUNC(summon)
{
.......
int duration = 0;
.......
if (duration < 1)
	duration =1;
else if (duration > 60)
	duration =60;
.....
md->deletetimer=add_timer(tick+(duration*60000),mob_timer_delete,md->bl.id,0);

I just found out, the duration is int type variable, and per-existing code limited the duration by

60*60000 = 360000 mili-seconds = 1 hour

I think its long enough for them to kill each other already

make sure you summon the mvp by

@summon 1916 60

and not by

@summon 1916

because if you didn't specify a number in duration field, it will automatically disappear itself in 1 minute

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  09/07/12
  • Last Seen:  

Can I have a script that make an event like this?

http://youtu.be/p4AgdL2slP8

Edit..fix..

Edited by tjiuz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1181
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

Can I have a script that make an event like this?

[media=]http://youtu.be/p4AgdL2slP8[/media]

Where i can download this map ?

1) Pick one assisting GM, or two if you only want to chill and do nothing.

2) Warp to any arena you wish. For example the game room maps used in this video. ( g_room1-1 / g_room1-2 / g_room1-3 )

Coordinates are around 75,183 for the ring

3) Have your assisting GMs use @hide and @killer at-commands.

4) Have both of them summon a mob of your choice.

5) Enjoy the show.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   25
  • Joined:  11/23/11
  • Last Seen:  

I have a script of this but is in spanish.

I made the monsters attack each other by using unitattack after setting the gid in vars with bg_monster.

set .@mvp1, bg_monster ( 1, "prontera", 155, 160, "poring 1", 1002, "monsters::OnDie1" ) ;
set .@mvp2, bg_monster ( 2, "prontera", 155, 162, "poring 2", 1002, "monsters::OnDie2" ) ;
sleep 500 ;
unitattack .@mvp1, .@mvp2 ;
unitattack .@mvp2, .@mvp1 ;

OnDie1:
set .@a,1;
OnDie2:
set .@a, .@a + 1;

announce "poring "+.@a+" won",0;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

@Omnipotent

yeah you can do it that way, but the mvp will summon slave and will cast teleport when they are in low hp

and also, doing by script allows players to kill the mvp, because it is summon by scripts

a mvp summon by GMs disallow casting summon slave or teleporting,

and of course, players can only watch the show, without KS the MVP

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   25
  • Joined:  11/23/11
  • Last Seen:  

Kind of off-topic:

I had that solved by using mapflags (noskill, monster_noteleport and stuff), then removing the equipped items for players (custom mapflag for no equip) and having walls, i.e: they can't attack in range (no bow) nor use skills.

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