Jump to content
Secrets

Utility: Punching Bag with DPS counter

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

i can't attack the dummies thanks

 

Share this post


Link to post
Share on other sites

DSP is not showing

prontera,146,155,0    script    PunchingBag#0    844,{
    end;
    
OnMyMobDead:
OnInit:
    getunitdata(getnpcid(0), [email protected]);
    monster strnpcinfo(4),[email protected][UNPC_X],[email protected][UNPC_Y],"Punching Bag",1906,1,strnpcinfo(0)+"::OnMyMobDead";
    [email protected] = atoi(strnpcinfo(2));
    .gid[[email protected]] = [email protected][0];
    .mhp[[email protected]] = strmobinfo(4,1271);
    setunitdata .gid[[email protected]],UMOB_MODE,[email protected][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:
    [email protected] = atoi(strnpcinfo(2));
    if(unitexists(.gid[[email protected]])){
        getunitdata(.gid[[email protected]],[email protected]);
        [email protected] = (.mhp[[email protected]] - [email protected][UMOB_HP]);
        if([email protected] > 0){
            npctalk "Punching Bag : I've taken " + ([email protected]/5) + " DPS in last 5 seconds.";
            setunitdata .gid[[email protected]],UMOB_HP,.mhp[[email protected]];
            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

Share this post


Link to post
Share on other sites

no no error's in console @Secrets

sorry it was mistake your script works excellent

i forgot to change the mob id 

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

Edited by NakedWolf
it was my mistake
  • Upvote 1

Share this post


Link to post
Share on other sites

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

Error.jpg

Share this post


Link to post
Share on other sites

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

 image.png.fce4719e236a2da6618a9d1146b0f529.png

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Good npc 😉 

Edited by legtoleg

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.