goddameit Posted February 2, 2013 Posted February 2, 2013 (edited) Preview: [media=] [/media]This is my old script and I just do a little update. Equip pickaxe and helmet, hit the stone and see did any mineral drop. * Download : Your pickaxe (item_db.txt) : http://pastebin.com/y40BYB82 Script : Minner.txt Edited February 5, 2013 by goddameit 5 1 Quote
Nipsino Posted February 3, 2013 Posted February 3, 2013 Looks awesome. I'll read through the script and probably create one based on yours. Thanks, Goddameit! Quote
mrlongshen Posted February 4, 2013 Posted February 4, 2013 (edited) why its not get the item ? T_T can you help me ? its get only the 1st hit, then no repeated get the item.. hmm.. Edited February 4, 2013 by mrlongshen Quote
goddameit Posted February 5, 2013 Author Posted February 5, 2013 (edited) update : http://rathena.org/board/topic/78209-miner/#entry177215 Edited February 5, 2013 by goddameit 1 Quote
williamII Posted February 6, 2013 Posted February 6, 2013 (edited) thx Edited February 6, 2013 by williamII Quote
Kidlatsv Posted October 23, 2017 Posted October 23, 2017 Okay, got this to work, but the question is, how do I make it so that the getitem only procs when attacking that guardian stone? In its current setting, attacking anything will proc the getitem values in the script. Quote
Kidlatsv Posted October 23, 2017 Posted October 23, 2017 (edited) 2 hours ago, Quesooo said: please update this just change the following line in Minner.txt and this'll work just fine. Spoiler else if( getequipid(9) == 6010 && getequipid(6) == 5009 ) - It was using an old slot before, so it wasn't properly detecting the upper headgear and weapon slot. - Anyway, the bigger issue is that the script procs on ANY monster you attack, so you get iron ores, elus, irons, even when you're just attacking porings. - I've been trying find a way to make it proc only when you're attacking a certain mob, like the guardian stone for example. - I'm a newb at scripting (an understatement to be sure), I tried strmobinfo, OnTouchNPC, and a slew of other methods but I can't make it behave as I desire, it can be done, hopefully. Maybe I just lack the necessary scripting knowledge or syntax savvy to make it behave the way I want it to, I'm still hoping that someone would come to my rescue. - I actually found a way to make it work, but it would become an instancing event and that would suck, big time. Edited October 23, 2017 by Kidlatsv Quote
DairyPresto Posted September 29, 2018 Posted September 29, 2018 is there any solution when im hitting the stone it miss? Quote
ADM Ytallo Posted January 19, 2019 Posted January 19, 2019 (edited) please repair npc Edited January 19, 2019 by YtalloNv Quote
mawjustin Posted January 24, 2021 Posted January 24, 2021 Check these changes. I managed to make this work. Made some updates. getequipid(8) == 6010 && getequipid(6) == 5009 /* Author Goddameit Version 2013/02/06 Web http://bit.ly/MDuQ9F */ function script Minner_Main { if( getarg(0) == 2 ) { undisguise; if( strcharinfo(3) == "manuk" ) warp "SavePoint",0,0; end; } else if( strcharinfo(3) == "manuk" && getequipid(8) == 6010 && getequipid(6) == 5009 ) { if( getarg(0) == 0 ) disguise 1169; if( getarg(0) == 1 ) { set .@r, rand(1000); if( .@r < 700 ) getitem 1002,1; else if( .@r >= 700 && .@r < 990 ) getitem 757,1; else getitem 756,1; specialeffect2 154; }else ; return; } else ; return; } - script Minnerx -1,{OnLill: set .@t,1;OnInit: if(!.@t)set .@t,100; monster "manuk",0,0,"--ja--",1907,.@t,"Minnerx::OnLill"; end; } I updated the Pickaxe, from bonus bAtkRate, -100, to bonus bAtkRate, -99. 6010,Pickaxe,Pickaxe,4,10,,10,10,,1,0,0xFFFFFFFF,7,0,34,0,0,0,0,{ bonus bAspd,-30; bonus bCritical,100; bonus bAtkRate,-99; autobonus "{ callfunc \"Minner_Main\",1; }",10000,1,BF_WEAPON; },{ callfunc "Minner_Main",0; },{ callfunc "Minner_Main",2; } 1 Quote
TeoBeack Posted April 21, 2021 Posted April 21, 2021 On 1/24/2021 at 8:35 AM, mawjustin said: Check these changes. I managed to make this work. Made some updates. getequipid(8) == 6010 && getequipid(6) == 5009 /* Author Goddameit Version 2013/02/06 Web http://bit.ly/MDuQ9F */ function script Minner_Main { if( getarg(0) == 2 ) { undisguise; if( strcharinfo(3) == "manuk" ) warp "SavePoint",0,0; end; } else if( strcharinfo(3) == "manuk" && getequipid(8) == 6010 && getequipid(6) == 5009 ) { if( getarg(0) == 0 ) disguise 1169; if( getarg(0) == 1 ) { set .@r, rand(1000); if( .@r < 700 ) getitem 1002,1; else if( .@r >= 700 && .@r < 990 ) getitem 757,1; else getitem 756,1; specialeffect2 154; }else ; return; } else ; return; } - script Minnerx -1,{OnLill: set .@t,1;OnInit: if(!.@t)set .@t,100; monster "manuk",0,0,"--ja--",1907,.@t,"Minnerx::OnLill"; end; } I updated the Pickaxe, from bonus bAtkRate, -100, to bonus bAtkRate, -99. 6010,Pickaxe,Pickaxe,4,10,,10,10,,1,0,0xFFFFFFFF,7,0,34,0,0,0,0,{ bonus bAspd,-30; bonus bCritical,100; bonus bAtkRate,-99; autobonus "{ callfunc \"Minner_Main\",1; }",10000,1,BF_WEAPON; },{ callfunc "Minner_Main",0; },{ callfunc "Minner_Main",2; } I managed to run, but I wanted to add more items. Has as? Quote
mawjustin Posted April 28, 2021 Posted April 28, 2021 Just duplicate else if( .@r >= 700 && .@r < 990 ) getitem 757,1; Quote
macmac88 Posted May 25, 2021 Posted May 25, 2021 how do i put this on my test server? i'm a newbie in scripting... does the script only work on manuk map? Quote
mawjustin Posted May 26, 2021 Posted May 26, 2021 15 hours ago, macmac88 said: how do i put this on my test server? i'm a newbie in scripting... does the script only work on manuk map? put this in your npc script, I suggest you study basic rathena scripting first this is coded for manuk, so yes. if( getarg(0) == 2 ) { undisguise; if( strcharinfo(3) == "manuk" ) warp "SavePoint",0,0; end; } else if( strcharinfo(3) == "manuk" && getequipid(8) == 6010 && getequipid(6) == 5009 ) { Quote
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.