Jump to content
  • 0

Cast EarthQuake in Specific location


tote

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.01
  • Content Count:  22
  • Reputation:   1
  • Joined:  09/11/23
  • Last Seen:  

Hello,
Recently I've seen this short video, where probably throught scripting, it seems the MVP casts earthquake in an specific location (like following the user).

Video

I've done a quick script where I show the current behavior, and how the monster, casts the EarthQuake skill, however it always shows the animation in the own monster, not in the specified area (also visible because of the showscale parameter / red tiles).

Video Script - demo

How could I do, to cast the earthquake in the located area, and not in the own caster?

I appretiate any possible help, thanks!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  255
  • Reputation:   114
  • Joined:  06/02/12
  • Last Seen:  

Hi. Use a invencible hidden monster, give it use invisible skill and earthquake.
Summon it wherever you want. It will look like the main monster casts the skill.

Example:

\db\re\mob_db.yml


  - Id: 3038
    AegisName: HIDDEN_MOB7
    Name: Monster 7
    JapaneseName: Hidden Mob 7
    Level: 151
    Hp: 10000
    Attack: 500
    Defense: 200
    MagicDefense: 100
    Str: 100
    Agi: 100
    Vit: 100
    Int: 100
    Dex: 400
    Luk: 100
    AttackRange: 1
    SkillRange: 12
    ChaseRange: 12
    Size: Small
    Race: Formless
    Element: Ghost
    ElementLevel: 4
    WalkSpeed: 1000
    Class: Boss
    Modes:
      Aggressive: true
      IgnoreMagic: true
      IgnoreMelee: true
      IgnoreMisc: true
      IgnoreRanged: true

\db\re\mob_skill_db.txt

3038,Hidden Mob 7@NPC_INVISIBLE,idle,353,1,10000,0,30000,yes,self,always,0,,,,,,,
3038,Hidden Mob 7@NPC_INVISIBLE,attack,353,1,10000,0,30000,yes,self,always,0,,,,,,,
3038,Hidden Mob 7@NPC_HELLBURNING,idle,719,1,10000,0,3000,yes,self,always,0,,,,,,,
3038,Hidden Mob 7@NPC_HELLBURNING,attack,719,1,10000,0,3000,yes,self,always,0,,,,,,,

Script

prontera,155,145,5	script	Test#bssk03	2362,{
	npctalk "Walk close to me in the next 10 seconds and you will burn!";

	.@event$ = strnpcinfo(0) + "::OnMyMobDead";	
	monster "prontera",155,148, "#f_w_1",3038,1, .@event$;
	monster "prontera",158,145, "#f_w_1",3038,1, .@event$;
	monster "prontera",155,142, "#f_w_1",3038,1, .@event$;
	monster "prontera",152,145, "#f_w_1",3038,1, .@event$;

	sleep 10000;
	killmonster "prontera", .@event$;
	npctalk "It's safe now...";
	end;

OnMyMobDead:
	end;
}

 

Edited by Racaae
grammar
  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.01
  • Content Count:  22
  • Reputation:   1
  • Joined:  09/11/23
  • Last Seen:  

2 hours ago, Racaae said:

Hi. Use a invencible hidden monster, give it use invisible skill and earthquake.
Summon it wherever you want. It will look like the main monster casts the skill.

Example:

\db\re\mob_db.yml


  - Id: 3038
    AegisName: HIDDEN_MOB7
    Name: Monster 7
    JapaneseName: Hidden Mob 7
    Level: 151
    Hp: 10000
    Attack: 500
    Defense: 200
    MagicDefense: 100
    Str: 100
    Agi: 100
    Vit: 100
    Int: 100
    Dex: 400
    Luk: 100
    AttackRange: 1
    SkillRange: 12
    ChaseRange: 12
    Size: Small
    Race: Formless
    Element: Ghost
    ElementLevel: 4
    WalkSpeed: 1000
    Class: Boss
    Modes:
      Aggressive: true
      IgnoreMagic: true
      IgnoreMelee: true
      IgnoreMisc: true
      IgnoreRanged: true

\db\re\mob_skill_db.txt

3038,Hidden Mob 7@NPC_INVISIBLE,idle,353,1,10000,0,30000,yes,self,always,0,,,,,,,
3038,Hidden Mob 7@NPC_INVISIBLE,attack,353,1,10000,0,30000,yes,self,always,0,,,,,,,
3038,Hidden Mob 7@NPC_HELLBURNING,idle,719,1,10000,0,3000,yes,self,always,0,,,,,,,
3038,Hidden Mob 7@NPC_HELLBURNING,attack,719,1,10000,0,3000,yes,self,always,0,,,,,,,

Script

prontera,155,145,5	script	Test#bssk03	2362,{
	npctalk "Walk close to me in the next 10 seconds and you will burn!";

	.@event$ = strnpcinfo(0) + "::OnMyMobDead";	
	monster "prontera",155,148, "#f_w_1",3038,1, .@event$;
	monster "prontera",158,145, "#f_w_1",3038,1, .@event$;
	monster "prontera",155,142, "#f_w_1",3038,1, .@event$;
	monster "prontera",152,145, "#f_w_1",3038,1, .@event$;

	sleep 10000;
	killmonster "prontera", .@event$;
	npctalk "It's safe now...";
	end;

OnMyMobDead:
	end;
}

 

Thanks a lot, It works really great!

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