Jump to content
  • 0

N>HELP Barricade Training Dummy Damage Test


mikecool2607

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  10/23/12
  • Last Seen:  

anyone have a training dummy its like barricade so we can test our damages to our skills ?

Edited by mikecool2607
Link to comment
Share on other sites

20 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   1
  • Joined:  10/19/12
  • Last Seen:  

why don't you try making a new monster :) max hp 0 def and make it unmovable :) just make it respawn at the same location when its dead

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   1
  • Joined:  10/19/12
  • Last Seen:  

I think what he want's is like the training dummy in cabal... or that's what I only think? :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  10/23/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   1
  • Joined:  10/19/12
  • Last Seen:  

prontera,199,181,4<tab>script<tab>Barricade Test<tab>123,{

Edited by xin
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  10/23/12
  • Last Seen:  

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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   1
  • Joined:  10/19/12
  • Last Seen:  

oh well I can't do anything about it till I update mine into rathena :P if no one still answered this, I'll try

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

script error on npc/test.txt line 4
   parse_line: need ';'
    1 : {
    2 : if(b_test){end;}
    3 : getmapxy(.@m$,.@x,.@y,0)
*    4 : 's'et b_test,1;

....lol

don't you see that error on your map-server?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  10/23/12
  • Last Seen:  

goddameit ... Please help me to script this?? im not that good for scripting... please help :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  10/23/12
  • Last Seen:  

Euphy can you help me for this ? i will pay you 5usd for helping me... pls

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Euphy can you help me for this ? i will pay you 5usd for helping me... pls

I think you just need to put ; after

getmapxy(.@m$,.@x,.@y,0)

so it will become

getmapxy(.@m$,.@x,.@y,0);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   1
  • Joined:  10/19/12
  • Last Seen:  

haha lol didn't saw that ";" :P:D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  10/23/12
  • Last Seen:  

i already tried to put that... but still not work

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

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:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

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:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  125
  • Reputation:   2
  • Joined:  08/27/12
  • Last Seen:  

-	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 =)

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