Jump to content
  • 0

N>HELP Barricade Training Dummy Damage Test


Question

20 answers to this question

Recommended Posts

Posted

Barricade's already have a mob id: 1905 & 1906 i believe. Just make an NPC that will spawn the barricade 1 cell in front of them after they click it, and only let it work once per character, until it's dead.

mapname,x,y,z    script    Barricade Test    123,{
if(b_test){end;}
getmapxy(.@m$,.@x,.@y,0)
set b_test,1;
monster .@m$,.@x,(.@y+1),"Barricade Dummy",1906,1,"Barricade Test::OnDummyKill";
attachnpctimer;
initnpctimer;
end;
OnTimer60000:
set @min,@min+1;
if(@min==60){set @hour,@hour+1; set @min,0;}
setnpctimer 0;
end;
OnDummyKill:
set b_test,0;
stopnpctimer;
set @sec,(getnpctimer(0)/1000);
detachnpctimer;
dispbottom "You broke the barricade in: "+@hour+" hours : "+@min+" minutes : "+@sec+" seconds.";
@hour = @min = @sec = 0;
end;
}

Posted

hmm ... isn't barricade is a plant type monster that only receive 1 damage per hit ?

then anyone with highest aspd can break it off easily

I suggest we do something like OnPCAttackEvent,

just search OnPCAttackEvent in eathena board you'll find this suggestion bring up many times

however nobody at the time can do it

and developers deny this modification to be added into eathena at the time,

because they claim this modification can lag a live server

especially in a high rate server, where a lot players dealing high aspd speed

the OnPCAttackEvent will trigger like crazy, might cause lag

and it return a variable @damage, and use it in scripts to keep track the damage done to mobs

when I have some free time, maybe I'll make this modification to prove this rumor right or wrong

Posted

prontera,199,181,4 script Barricade Test 123,{
if(b_test){end;}
getmapxy(.@m$,.@x,.@y,0)
set b_test,1;
monster .@m$,.@x,(.@y+1),"Barricade Dummy",1906,1,"Barricade Test::OnDummyKill";
attachnpctimer;
initnpctimer;
end;
OnTimer60000:
set @min,@min+1;
if(@min==60){set @hour,@hour+1; set @min,0;}
setnpctimer 0;
end;
OnDummyKill:
set b_test,0;
stopnpctimer;
set @sec,(getnpctimer(0)/1000);
detachnpctimer;
dispbottom "You broke the barricade in: "+@hour+" hours : "+@min+" minutes : "+@sec+" seconds.";
@hour = @min = @sec = 0;
end;
}

This script still doesn't work...

Please anyone can help me to have this script ??

i saw in iRo there have training dummy for damage test...

Posted

i already did.....

here's the script

prontera,199,181,4 script Barricade Test 123,{
if(b_test){end;}
getmapxy(.@m$,.@x,.@y,0)
set b_test,1;
monster .@m$,.@x,(.@y+1),"Barricade Dummy",1906,1,"Barricade Test::OnDummyKill";
attachnpctimer;
initnpctimer;
end;
OnTimer60000:
set @min,@min+1;
if(@min==60){set @hour,@hour+1; set @min,0;}
setnpctimer 0;
end;
OnDummyKill:
set b_test,0;
stopnpctimer;
set @sec,(getnpctimer(0)/1000);
detachnpctimer;
dispbottom "You broke the barricade in: "+@hour+" hours : "+@min+" minutes : "+@sec+" seconds.";
@hour = @min = @sec = 0;
end;
}

Posted

try this simple script

prontera,0,0,0 script Punching Bag -1,{

OnInit:
    monster "prontera",160,180,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";
    end;

OnDummyKill:
    monster "prontera",160,180,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";
    end;

}

:meow:

Posted (edited)

omg, even a core developer come here and play XD

fulfill my promise from post#4

OnPCAttackEvent.patch

-    script    Punching Bag    -1,{
OnInit:
OnDummyKill:
    monster "prontera",160,180,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";
    end;
OnPCAttackEvent:
   message strcharinfo(0), "You have dealt "+ @damage +" damage to Punching Bag";
   end;
}

Edited by AnnieRuru
  • Upvote 1
Posted
omg, even a core developer come here and play XD

Lol..I'm here to make a try atleast.. hehehe

anyway..I suggest to make some tweak on your script..like display on screen the average damage done, skills used, info about the dummy target and etc..

and not by spamming the chars chat log...IMO.. :)

:meow:

Posted (edited)

-    script    Punching Bag    -1,{
OnInit:
OnDummyKill:
    monster "prontera",160,180,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";
    end;
OnPCAttackEvent:
   if ( !@test_punch ) end;
   @dps_damage += @damage;
   end;
}

prontera,157,180,5    script    kjdhfksjdf    100,{
   if ( @test_punch ) end;
   message strcharinfo(0), "Start punching !";
   @test_punch = 1;
   sleep2 10000;
   message strcharinfo(0), "You've dealt a total of "+ callfunc( "int__", @dps_damage ) +" damages in 10 seconds";
   @dps_damage = @test_punch = 0;
   end;
}

like this ? /heh

if write this with instance script like goddameit does

perhaps better ? /oops

Edited by AnnieRuru
  • Upvote 1
Posted

-	script	Punching Bag	-1,{
OnInit:
OnDummyKill:
 monster "prontera",160,180,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";
 end;
OnPCAttackEvent:
if ( !@test_punch ) end;
@dps_damage += @damage;
end;
}

prontera,157,180,5	script	kjdhfksjdf	100,{
if ( @test_punch ) end;
message strcharinfo(0), "Start punching !";
@test_punch = 1;
sleep2 10000;
message strcharinfo(0), "You've dealt a total of "+ callfunc( "int__", @dps_damage ) +" damages in 10 seconds";
@dps_damage = @test_punch = 0;
end;
}

like this ? /heh

if write this with instance script like goddameit does

perhaps better ? /oops

/no1 that's Annie =)

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...