Jump to content

Utility: Punching Bag with DPS counter


Recommended Posts


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

File Name: Punching Bag with DPS counter

File Submitter: Secrets

File Submitted: 01 May 2016

File Category: Utilities

Content Author: secretdataz

 

Update: This script won't work on Hercules and you have to make it work yourself if you want to use it on Hercules.

 

This is yet another punching bag with DPS counter which I use to experiment with get/setunitdata command.

Feel free to use.

 

ก๊อปไปขายก็ไม่ว่านะ สคริปฟรี ผมไม่เสียรายได้อยู่แล้ว แต่เอาไปอ้างว่าทำเองนี่ไม่อายเหรอถามจริง

 

 

 

 

Click here to download this file

 

 

Edited by Secrets
Herc LUL
  • Upvote 4
  • MVP 1
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

Really cool idea with the DPS counter.

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   3
  • Joined:  09/04/16
  • Last Seen:  

Yey! It was awesome! Great work! Thanks for the script! :)

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   2
  • Joined:  02/15/14
  • Last Seen:  

Using Hercules

Hi sir, I met this problem when running the script, can anyone please help me regarding this matter? Thanks a lot!!


Addon: Also, how to fix the "warning" problem because most of my custom script met such problems. Thanks!~

punching bag bug.jpg

Edited by fallen0519
Link to comment
Share on other sites

  • 4 months later...

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

i can't attack the dummies thanks

 

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   2
  • Joined:  03/21/17
  • Last Seen:  

DSP is not showing

prontera,146,155,0    script    PunchingBag#0    844,{
    end;
    
OnMyMobDead:
OnInit:
    getunitdata(getnpcid(0), .@d);
    monster strnpcinfo(4),.@d[UNPC_X],.@d[UNPC_Y],"Punching Bag",1906,1,strnpcinfo(0)+"::OnMyMobDead";
    .@dupid = atoi(strnpcinfo(2));
    .gid[.@dupid] = $@mobid[0];
    .mhp[.@dupid] = strmobinfo(4,1271);
    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;
    
OnTimer1000:
    .@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;
        }
    }
    initnpctimer;
}

prontera,216,79,0    duplicate(PunchingBag#0)    PunchingBag#1    844
prontera,224,70,0    duplicate(PunchingBag#0)    PunchingBag#2    844
prontera,216,58,0    duplicate(PunchingBag#0)    PunchingBag#3    844
prontera,224,58,0    duplicate(PunchingBag#0)    PunchingBag#4    844

Edited by NakedWolf
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:  

@NakedWolf Any error in console?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   2
  • Joined:  03/21/17
  • Last Seen:  

no no error's in console @Secrets

sorry it was mistake your script works excellent

i forgot to change the mob id 

p[.@dupid] = strmobinfo(4,1271); <<<<---over here as i changed it here " monster strnpcinfo(4),.@d[UNPC_X],.@d[UNPC_Y],"Punching Bag",1906,1,strnpcinfo(0)+"::OnMyMobDead";

Edited by NakedWolf
it was my mistake
  • Upvote 1
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   0
  • Joined:  05/27/17
  • Last Seen:  

im not  able to click or attack the npc

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   2
  • Joined:  03/21/17
  • Last Seen:  

Add the NPC monster 

p[.@dupid] = strmobinfo(4,1906); <<<<---over here as i changed it here " monster strnpcinfo(4),.@d[UNPC_X],.@d[UNPC_Y],"Punching Bag",1906,1,strnpcinfo(0)+"::OnMyMobDead"; <<<----- and here

Link to comment
Share on other sites

  • 2 months later...

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

dummy disappear once mushroom event or disguise event started

 

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   5
  • Joined:  08/28/13
  • Last Seen:  

After the last update of RAthena, it appeared. It helps Me solve.

Error.jpg

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  29
  • Reputation:   1
  • Joined:  03/23/18
  • Last Seen:  

Any help on I can't attack the punching bag? I put it on prontera

Link to comment
Share on other sites

  • 2 years later...

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/03/13
  • Last Seen:  

hi why the punching bag looks like this to me if i change the NPCID i cannot be attacked.

 image.png.fce4719e236a2da6618a9d1146b0f529.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   2
  • Joined:  03/21/17
  • Last Seen:  

8 hours ago, Jholz27 said:

hi why the punching bag looks like this to me if i change the NPCID i cannot be attacked.

 image.png.fce4719e236a2da6618a9d1146b0f529.png

provide the script which you are using so some can check what the issue

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/03/13
  • Last Seen:  

11 hours ago, NakedWolf said:

provide the script which you are using so some can check what the issue

sorry, I already solved it it's because its summoning the wrong ID

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  308
  • Reputation:   24
  • Joined:  11/26/12
  • Last Seen:  

they move around inmy server why ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   1
  • Joined:  10/19/16
  • Last Seen:  

4 hours ago, chatterboy said:

they move around inmy server why ?

maybe wrong mob mode. You need to use mob modes that doesn't move similar to plants.

Try to download Sader's monster mode generator and create one that fits your punching bug

 

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  110
  • Reputation:   56
  • Joined:  05/29/18
  • Last Seen:  

This is nice but it can be reproduce with different element like Fire, Earth, Water, Wind targets?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  02/11/19
  • Last Seen:  

Good npc ? 

Edited by legtoleg
Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.01
  • Content Count:  51
  • Reputation:   0
  • Joined:  08/28/20
  • Last Seen:  

Hello bro can you help me how to make demi human and emperium type of punching bag thankyou so much!

Link to comment
Share on other sites

  • 6 months later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  16
  • Reputation:   0
  • Joined:  01/11/21
  • Last Seen:  

On 9/17/2020 at 10:23 AM, Sikdope said:

Hello bro can you help me how to make demi human and emperium type of punching bag thankyou so much!

Error...

bag.png

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  13
  • Reputation:   0
  • Joined:  08/19/20
  • Last Seen:  

NPC not showing DPS, no error on console.

Link to comment
Share on other sites

  • 8 months later...

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

Hi there @Secrets

not sure if you're still supporting this script, but i cant seems to make it work coz the cursor is always showing as NPC instead of the Attack-able cursor and it is un-clickable. 

No error appears on the console.

any help on this would be greatly appreciated.

image.png.208dcf3de9d976b9098cea5b293b805b.png

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:  

16 hours ago, amanikoko said:

-snip-

Try changing the mob id to something else.

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