mikecool2607 Posted October 25, 2012 Posted October 25, 2012 (edited) anyone have a training dummy its like barricade so we can test our damages to our skills ? Edited October 25, 2012 by mikecool2607 Quote
xin Posted October 26, 2012 Posted October 26, 2012 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 Quote
GmOcean Posted October 26, 2012 Posted October 26, 2012 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; } Quote
AnnieRuru Posted October 26, 2012 Posted October 26, 2012 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 Quote
xin Posted October 26, 2012 Posted October 26, 2012 I think what he want's is like the training dummy in cabal... or that's what I only think? Quote
mikecool2607 Posted October 26, 2012 Author Posted October 26, 2012 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... Quote
xin Posted October 26, 2012 Posted October 26, 2012 (edited) prontera,199,181,4<tab>script<tab>Barricade Test<tab>123,{ Edited October 26, 2012 by xin Quote
mikecool2607 Posted October 26, 2012 Author Posted October 26, 2012 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; } Quote
xin Posted October 27, 2012 Posted October 27, 2012 oh well I can't do anything about it till I update mine into rathena if no one still answered this, I'll try Quote
goddameit Posted October 27, 2012 Posted October 27, 2012 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? Quote
mikecool2607 Posted October 27, 2012 Author Posted October 27, 2012 goddameit ... Please help me to script this?? im not that good for scripting... please help Quote
Euphy Posted October 27, 2012 Posted October 27, 2012 It's a very obvious error... http://rathena.org/wiki/Overview_of_Errors#parse_line:_need_.27.3B.27 Quote
mikecool2607 Posted October 27, 2012 Author Posted October 27, 2012 Euphy can you help me for this ? i will pay you 5usd for helping me... pls Quote
Elijah23 Posted October 28, 2012 Posted October 28, 2012 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); Quote
mikecool2607 Posted November 9, 2012 Author Posted November 9, 2012 i already tried to put that... but still not work Quote
malufett Posted November 9, 2012 Posted November 9, 2012 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; } Quote
AnnieRuru Posted November 9, 2012 Posted November 9, 2012 (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 November 9, 2012 by AnnieRuru 1 Quote
malufett Posted November 9, 2012 Posted November 9, 2012 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.. Quote
AnnieRuru Posted November 9, 2012 Posted November 9, 2012 (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 ? if write this with instance script like goddameit does perhaps better ? Edited November 9, 2012 by AnnieRuru 1 Quote
Aya Posted November 9, 2012 Posted November 9, 2012 - 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 ? if write this with instance script like goddameit does perhaps better ? that's Annie =) Quote
Question
mikecool2607
anyone have a training dummy its like barricade so we can test our damages to our skills ?
Edited by mikecool260720 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.