Jump to content
  • 0

Punching Bag / Dummy npc Script


waaa123

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  11/09/12
  • Last Seen:  

Can someone please help me i need a Punching Bag / Dummy script for my RO that cannot be teleport by a Tarot Skill TIA 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  38
  • Reputation:   6
  • Joined:  08/17/12
  • Last Seen:  


- script Punching Bag -1,{
OnInit:
monster "isahollm",248,104,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";
monster "isahollm",256,104,"Punching Bag",1905,1,"Punching Bag::OnDummyKill3";
monster "isahollm",240,104,"Punching Bag",1905,1,"Punching Bag::OnDummyKill2";
setmapflag( "isahollm",mf_monster_noteleport );
end;
OnDummyKill:
monster "isahollm",248,104,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";
end;
OnDummyKill2:
monster "isahollm",240,104,"Punching Bag",1905,1,"Punching Bag::OnDummyKill2";
end;
OnDummyKill3:
monster "isahollm",256,104,"Punching Bag",1905,1,"Punching Bag::OnDummyKill3";
end;
OnPCAttackEvent:
if ( !@test_punch ) end;
@dps_damage += @damage;
end;
}

 

Just edit the coordinates and edit isahollm to the map you want to put the punching bag. Take note: Use tabs and edit the map where the mapflag monster_noteleport was set

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  4
  • Reputation:   0
  • Joined:  05/06/17
  • Last Seen:  

Hi im newbie here can you  guide me where to put that dummy is it on NPC? Thanks

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

3 minutes ago, Chuckzxc said:

Hi im newbie here can you  guide me where to put that dummy is it on NPC? Thanks

Yes this is an npc :)) you just need to adjust the coordinates of the monster (Dummy NPC) to your liking and the mapflag :D

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  4
  • Reputation:   0
  • Joined:  05/06/17
  • Last Seen:  

can you guide me on how to do it on mapflag? thanks

 

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

15 minutes ago, Chuckzxc said:

can you guide me on how to do it on mapflag? thanks

 

- script Punching Bag -1,{

OnInit:

monster "izlude",248,104,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";

monster "izlude",256,104,"Punching Bag",1905,1,"Punching Bag::OnDummyKill3";

monster "izlude",240,104,"Punching Bag",1905,1,"Punching Bag::OnDummyKill2";

setmapflag( "izlude",mf_monster_noteleport );

end;

OnDummyKill:

monster "isahollm",248,104,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";

end;

OnDummyKill2:

monster "isahollm",240,104,"Punching Bag",1905,1,"Punching Bag::OnDummyKill2";

end;

OnDummyKill3:

monster "isahollm",256,104,"Punching Bag",1905,1,"Punching Bag::OnDummyKill3";

end;

OnPCAttackEvent:

if ( !@test_punch ) end;

@dps_damage += @damage;

end;

}

// Mapflag
izlude	mapflag	monster_noteleport

For example you want to add it in izlude just use :))
izlude    mapflag   monster_noteleport
 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  4
  • Reputation:   0
  • Joined:  05/06/17
  • Last Seen:  

I still cannot enable it here's the script, im not sure if i did it right on my mapflag on what folder should i put it? thanks

- script Punching Bag -1,{

OnInit:

monster "prontera",191,176,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";

monster "prontera",198,176,"Punching Bag",1905,1,"Punching Bag::OnDummyKill3";

monster "prontera",204,176,"Punching Bag",1905,1,"Punching Bag::OnDummyKill2";

setmapflag( "prontera",mf_monster_noteleport );

end;

OnDummyKill:

monster "prontera",191,176,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";

end;

OnDummyKill2:

monster "prontera",198,176,"Punching Bag",1905,1,"Punching Bag::OnDummyKill2";

end;

OnDummyKill3:

monster "prontera",204,176,"Punching Bag",1905,1,"Punching Bag::OnDummyKill3";

end;

OnPCAttackEvent:

if ( !@test_punch ) end;

@dps_damage += @damage;

end;

}

// Mapflag
prontera    mapflag    monster_noteleport

 

Edited by Cyro
Please use code box next time
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...