Jump to content

Utility: Punching Bag with DPS counter


Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

2 hours ago, Secrets said:

Try changing the mob id to something else.

Even if he changes it to a monster, it will still appear. the script looks outdated.

Edited by Mael
Typo error
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  40
  • Reputation:   0
  • Joined:  02/26/21
  • Last Seen:  

Hi there @Secrets
 

Thank you so much for responding this. 

In fact i've tried changing to other mobs ID but it is still having the same unclickable problem.

Hope you can help on this.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

On 2/20/2022 at 7:45 PM, Mael said:

Even if he changes it to a monster, it will still appear. the script looks outdated.

That's unfortunate. I have no plan to update this anytime soon.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

On 2/20/2022 at 8:45 PM, Mael said:

Even if he changes it to a monster, it will still appear. the script looks outdated.

mine is still good im using latest rathena

image.png.8415b433ef6918e509d8778fcc76e99a.png

DPS details

image.png.59ad38b92f39e02af034841800b48a3e.png

Edited by AinsLord
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  40
  • Reputation:   0
  • Joined:  02/26/21
  • Last Seen:  

Hi @AinsLord

Don't mind can you share me your script so i can have a try on my server?

Thanking you in advance.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

Just now, amanikoko said:

Hi @AinsLord

Don't mind can you share me your script so i can have a try on my server?

Thanking you in advance.

punch.txt

just change the location of the dummy

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  40
  • Reputation:   0
  • Joined:  02/26/21
  • Last Seen:  

ughhh...

Still not able to click on it.

I'm using 20200304 client.

Here's my script.

Any help is greatly appreciated.

image.png.53fd01d7638e86e16432ec797f11076c.pngIPunchingBag.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

Just now, amanikoko said:

ughhh...

Still not able to click on it.

I'm using 20200304 client.

Here's my script.

Any help is greatly appreciated.

image.png.53fd01d7638e86e16432ec797f11076c.pngIPunchingBag.txt

nothing wrong with the script its the client version is the one that is not supported

im using the stable 20180621aRagexe

try to check the diff of your client in Nemo

i haven't tried 2020 version of clients

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  40
  • Reputation:   0
  • Joined:  02/26/21
  • Last Seen:  

Hi @AinsLord

Thanks for your respond earlier, i've managed to solve the click issue.

Once again thank you very much.

And thanks to @Secrets 's great release too.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

Just now, amanikoko said:

Hi @AinsLord

Thanks for your respond earlier, i've managed to solve the click issue.

Once again thank you very much.

And thanks to @Secrets 's great release too.

might want to share just incase someone encounter the same problem

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  40
  • Reputation:   0
  • Joined:  02/26/21
  • Last Seen:  

All i did was just edit the MOB ID to 1907 and the rest of the duplicates ones to change to 844 (invisible NPC Sprites).

The reason of the unclickable issue was previously ALL was updated as 1907 so it created a double layer of NPC on each and every punching bag itself.

Hope this helps =).

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

hello can we disable some skill to use in the Punching bag i found a bug while using tarrot card of fate the npc disappears and warp to a different locations. maybe because it was a bug and for example you are hiding in your gm account then you attack some monster they automatically teleport maybe its the same 

Link to comment
Share on other sites


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

21 minutes ago, GM Winter said:

hello can we disable some skill to use in the Punching bag i found a bug while using tarrot card of fate the npc disappears and warp to a different locations. maybe because it was a bug and for example you are hiding in your gm account then you attack some monster they automatically teleport maybe its the same 

here the script with mapflag no teleport

//===== rAthena Script =============================================
//= Punching Bag NPC
//===== By: ========================================================
//= Secretdataz
//===== Current Version: ===========================================
//= 0.2
//===== Changelog: =================================================
//= 0.1 Initial commit
//= 0.2 Add MD_KNOCKBACK_IMMUNE
//===== Compatible With: ===========================================
//= rAthena Project
//===== Additional Comments: =======================================
//= When duplicating this NPC. Only use NUMBER after the # [secret]
//==================================================================
prontera,215,78,0	script	PunchingBag#0	844,{
	end;
	
OnMyMobDead:
OnInit:
	getunitdata(getnpcid(0), .@d);
	monster strnpcinfo(4),.@d[UNPC_X],.@d[UNPC_Y],"Punching Bag",2411,1,strnpcinfo(0)+"::OnMyMobDead";
	.@dupid = atoi(strnpcinfo(2));
	.gid[.@dupid] = $@mobid[0];
	.mhp[.@dupid] = strmobinfo(4,2411);
	setunitdata .gid[.@dupid],UMOB_MODE,.@d[UMOB_MODE]|0x4000000|0x0200000; // Set MD_STATUS_IMMUNE (0x4000000) because EDP/burn/%MHP based status can skew the DPS counter so much.
	initnpctimer;
	end;
	
OnTimer5000:
	.@dupid = atoi(strnpcinfo(2));
	if(unitexists(.gid[.@dupid])){
		getunitdata(.gid[.@dupid],.@d);
		.@diff = (.mhp[.@dupid] - .@d[UMOB_HP]);
		if(.@diff > 0){
			npctalk "Punching Bag : I've taken " + (.@diff/5) + " DPS in last 5 seconds.";
			setunitdata .gid[.@dupid],UMOB_HP,.mhp[.@dupid];
			specialeffect EF_HEAL;
			setmapflag( "prontera",mf_monster_noteleport );
		}
	}
	initnpctimer;
}

prontera,224,78,0	duplicate(PunchingBag#0)	PunchingBag#1	844
prontera,224,66,0	duplicate(PunchingBag#0)	PunchingBag#2	844
prontera,215,66,0	duplicate(PunchingBag#0)	PunchingBag#3	844
Welgaia,182,143,0	duplicate(PunchingBag#0)	PunchingBag#4	844
Welgaia,157,143,0	duplicate(PunchingBag#0)	PunchingBag#5	844
Welgaia,132,143,0	duplicate(PunchingBag#0)	PunchingBag#6	844

// Mapflag
prontera	mapflag	monster_noteleport

 

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

7 minutes ago, hendra814 said:

here the script with mapflag no teleport

//===== rAthena Script =============================================
//= Punching Bag NPC
//===== By: ========================================================
//= Secretdataz
//===== Current Version: ===========================================
//= 0.2
//===== Changelog: =================================================
//= 0.1 Initial commit
//= 0.2 Add MD_KNOCKBACK_IMMUNE
//===== Compatible With: ===========================================
//= rAthena Project
//===== Additional Comments: =======================================
//= When duplicating this NPC. Only use NUMBER after the # [secret]
//==================================================================
prontera,215,78,0	script	PunchingBag#0	844,{
	end;
	
OnMyMobDead:
OnInit:
	getunitdata(getnpcid(0), .@d);
	monster strnpcinfo(4),.@d[UNPC_X],.@d[UNPC_Y],"Punching Bag",2411,1,strnpcinfo(0)+"::OnMyMobDead";
	.@dupid = atoi(strnpcinfo(2));
	.gid[.@dupid] = $@mobid[0];
	.mhp[.@dupid] = strmobinfo(4,2411);
	setunitdata .gid[.@dupid],UMOB_MODE,.@d[UMOB_MODE]|0x4000000|0x0200000; // Set MD_STATUS_IMMUNE (0x4000000) because EDP/burn/%MHP based status can skew the DPS counter so much.
	initnpctimer;
	end;
	
OnTimer5000:
	.@dupid = atoi(strnpcinfo(2));
	if(unitexists(.gid[.@dupid])){
		getunitdata(.gid[.@dupid],.@d);
		.@diff = (.mhp[.@dupid] - .@d[UMOB_HP]);
		if(.@diff > 0){
			npctalk "Punching Bag : I've taken " + (.@diff/5) + " DPS in last 5 seconds.";
			setunitdata .gid[.@dupid],UMOB_HP,.mhp[.@dupid];
			specialeffect EF_HEAL;
			setmapflag( "prontera",mf_monster_noteleport );
		}
	}
	initnpctimer;
}

prontera,224,78,0	duplicate(PunchingBag#0)	PunchingBag#1	844
prontera,224,66,0	duplicate(PunchingBag#0)	PunchingBag#2	844
prontera,215,66,0	duplicate(PunchingBag#0)	PunchingBag#3	844
Welgaia,182,143,0	duplicate(PunchingBag#0)	PunchingBag#4	844
Welgaia,157,143,0	duplicate(PunchingBag#0)	PunchingBag#5	844
Welgaia,132,143,0	duplicate(PunchingBag#0)	PunchingBag#6	844

// Mapflag
prontera	mapflag	monster_noteleport

 

thanks will try it later

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
Reply to this topic...

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