goddameit Posted February 19, 2013 Posted February 19, 2013 (edited) File Name: @autopots File Submitter: goddameit File Submitted: 18 Feb 2013 File Category: Source Modifications Content Author: Goddameit Preview : http://bit.ly/XzIQJj When HP/SP lower than you set, it will auto use that item. refer : http://rathena.org/board/topic/78307-auto-use-potions-autopots/ Command : @autopots <type>(0=OFF,1=OFF) <hp_rate> <hp_item id> <sp_rate> <sp_item id> PS : Test and create on rA 17132 Click here to download this file Edited April 28, 2013 by goddameit 8 Quote
Thanna Posted February 19, 2013 Posted February 19, 2013 hello goddameit you have release a great work again, I'll just ask if you can make it need a requirement for that may something like a ticket or a variable, "#premium 1", thanks in advance Quote
Neo-Mind Posted February 19, 2013 Posted February 19, 2013 Autopots transform and heal out!! Nice work Quote
goddameit Posted February 19, 2013 Author Posted February 19, 2013 hello goddameit you have release a great work again, I'll just ask if you can make it need a requirement for that may something like a ticket or a variable, "#premium 1", thanks in advance use bindatcmd to redefine it sample : http://rathena.org/board/topic/78195-modification-in-warpgo-command/#entry176838 1 Quote
Thanna Posted February 19, 2013 Posted February 19, 2013 I already fixed it, thanks for your great release Quote
uDe Posted February 21, 2013 Posted February 21, 2013 How to edit the timer? To make it potting a little bit more faster. Did this source may cause our server lag? Quote
goddameit Posted February 21, 2013 Author Posted February 21, 2013 How to edit the timer? To make it potting a little bit more faster. add_timer(gettick()+500,autoatpots_timer.... 500 = 0.5s Did this source may cause our server lag? maybe Quote
kyeme Posted February 23, 2013 Posted February 23, 2013 Hi.. Im using centos and iv got error, im using latest. atcommand.c: In function \u2018atcommand_autopots\u2019: atcommand.c:8598: warning: format \u2018%hd\u2019 expects type \u2018short int *\u2019, but argument 3 has type \u2018int *\u2019 atcommand.c:8598: warning: format \u2018%hd\u2019 expects type \u2018short int *\u2019, but argument 4 has type \u2018int *\u2019 atcommand.c:8598: warning: format \u2018%hd\u2019 expects type \u2018short int *\u2019, but argument 5 has type \u2018int *\u2019 This warning is only in centos,.. no warning in my windows OS. Quote
kyeme Posted February 23, 2013 Posted February 23, 2013 so, you can't use this? Yes i can't use this commands in centos Host Quote
goddameit Posted February 24, 2013 Author Posted February 24, 2013 I don't have centos, so sorry, I can't help this. Quote
Kaito Kid Posted February 24, 2013 Posted February 24, 2013 (edited) Got error too atcommand.c: In function âatcommand_autopotsâ: atcommand.c:8911: warning: format â%hdâ expects type âshort int *â, but argument 3 has type âint *â atcommand.c:8911: warning: format â%hdâ expects type âshort int *â, but argument 4 has type âint *â atcommand.c:8911: warning: format â%hdâ expects type âshort int *â, but argument 5 has type âint *â from this script: if (!message || !*message || sscanf(message, "%hd %hd %hd", &type, &rate, &nameid) < 3 || << this line ( type != 0 && type != 1 ) || ( rate < 1 || rate > 99 ) || ( itemdb_exists(nameid ) == NULL ) ) { Latest rathena and working.... but i want that messages wont showing when compiling thanks... nice work anyway Edited February 24, 2013 by Kaito Kid Quote
goddameit Posted February 25, 2013 Author Posted February 25, 2013 ... sscanf(message, "%hd %hd %hd", -->sscanf(message, "%d %d %d", try it Quote
Kaito Kid Posted February 25, 2013 Posted February 25, 2013 ... sscanf(message, "%hd %hd %hd", --> sscanf(message, "%d %d %d", try it Nice.... it works great... and compile without warning thanks Quote
goddameit Posted March 1, 2013 Author Posted March 1, 2013 ...forgot to let you know >> http://goo.gl/nZ5Ec Quote
Thanna Posted March 9, 2013 Posted March 9, 2013 sir goddameit, can I request for this command to work like this, @autopots and if a player will use HP only they will type it like this @autopots 50 501 0 0, and if they will use SP only they will type it like this @autopots 0 0 50 505, I hope you can and if they will both use it, it would be like this @autopots 50 501 50 505, I hope you can grant my request thanks in advance Quote
Kaito Kid Posted March 13, 2013 Posted March 13, 2013 (edited) opsy... sleepy Edited March 13, 2013 by Kaito Kid Quote
kyeme Posted March 13, 2013 Posted March 13, 2013 ...forgot to let you know >> http://goo.gl/nZ5Ec Thank you, now its working. Quote
Cydh Posted March 16, 2013 Posted March 16, 2013 sir goddameit, can I request for this command to work like this, @autopots and if a player will use HP only they will type it like this @autopots 50 501 0 0, and if they will use SP only they will type it like this @autopots 0 0 50 505, I hope you can and if they will both use it, it would be like this @autopots 50 501 50 505, I hope you can grant my request thanks in advance yeah, just like what I think before when see someone request for autopot, some MMORG games that using autopot system, will using pot based on HP/SP reduction, not based on time because if use add_timer, system will checks the function every x seconds for each user that use autopots, it's causing 'lag' for server. Quote
goddameit Posted March 16, 2013 Author Posted March 16, 2013 (edited) if use add_timer, system will checks the function every x seconds for each user that use autopotssc also will check every second, I guess if you're right, sc will lead more lag than this. not only sc, other timer like walk, idle,... etc but I don't care it haha Edited March 16, 2013 by goddameit Quote
Cydh Posted March 16, 2013 Posted March 16, 2013 (edited) LOL, forget to quote this How to edit the timer? To make it potting a little bit more faster. Did this source may cause our server lag?*earlier days I tried many times to post a reply, always failed. Edited March 16, 2013 by Cydh Quote
andhyjr Posted April 2, 2013 Posted April 2, 2013 (edited) Hi When i die, the potions are still being consumed... So, i change this... if(sd->sc.option & OPTION_AUTOPOTS) { if( ( type == 0 && ( sd->battle_status.hp*100/sd->battle_status.max_hp ) < rate || for this... if(sd->sc.option & OPTION_AUTOPOTS) { if( pc_isdead(sd) ){ return 0; } if( ( type == 0 && ( sd->battle_status.hp*100/sd->battle_status.max_hp ) < rate || Edited April 2, 2013 by andhyjr Quote
Deleted User Posted April 24, 2013 Posted April 24, 2013 (edited) Error 2 error C2198: 'add_timer' : too few arguments for call c:\users\lol214\desktop\rathena-sql-17282[trunk]\src\map\atcommand.c 9160 1 map-server_sql Error 1 error C2143: syntax error : missing ')' before 'constant' c:\users\arthur\desktop\rathena-sql-17282[trunk]\src\map\atcommand.c 9160 1 map-server_sql Error 3 error C2059: syntax error : ')' c:\users\lol214\desktop\rathena-sql-17282[trunk]\src\map\atcommand.c 9160 1 map-server_sql Edited April 24, 2013 by Kaze 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.