goddameit Posted February 19, 2013 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Share 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 Link to comment Share on other sites More sharing options...
Angel Posted February 19, 2013 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 85 Reputation: 17 Joined: 12/25/11 Last Seen: April 11 Share Posted February 19, 2013 Great !!!!! Quote Link to comment Share on other sites More sharing options...
Thanna Posted February 19, 2013 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 271 Reputation: 7 Joined: 01/06/12 Last Seen: May 16, 2015 Share 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 Link to comment Share on other sites More sharing options...
Neo-Mind Posted February 19, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 806 Reputation: 221 Joined: 03/13/12 Last Seen: September 17, 2024 Share Posted February 19, 2013 Autopots transform and heal out!! Nice work Quote Link to comment Share on other sites More sharing options...
goddameit Posted February 19, 2013 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
Thanna Posted February 19, 2013 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 271 Reputation: 7 Joined: 01/06/12 Last Seen: May 16, 2015 Share Posted February 19, 2013 I already fixed it, thanks for your great release Quote Link to comment Share on other sites More sharing options...
uDe Posted February 21, 2013 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 400 Reputation: 5 Joined: 12/05/11 Last Seen: September 27, 2015 Share 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 Link to comment Share on other sites More sharing options...
goddameit Posted February 21, 2013 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
kyeme Posted February 23, 2013 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 164 Reputation: 12 Joined: 03/08/12 Last Seen: 13 hours ago Share 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 Link to comment Share on other sites More sharing options...
goddameit Posted February 23, 2013 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted February 23, 2013 so, you can't use this? Quote Link to comment Share on other sites More sharing options...
kyeme Posted February 23, 2013 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 164 Reputation: 12 Joined: 03/08/12 Last Seen: 13 hours ago Share Posted February 23, 2013 so, you can't use this? Yes i can't use this commands in centos Host Quote Link to comment Share on other sites More sharing options...
goddameit Posted February 24, 2013 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted February 24, 2013 I don't have centos, so sorry, I can't help this. Quote Link to comment Share on other sites More sharing options...
Kaito Kid Posted February 24, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 102 Reputation: 4 Joined: 12/05/11 Last Seen: July 1, 2013 Share 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 Link to comment Share on other sites More sharing options...
goddameit Posted February 25, 2013 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted February 25, 2013 ... sscanf(message, "%hd %hd %hd", -->sscanf(message, "%d %d %d", try it Quote Link to comment Share on other sites More sharing options...
Kaito Kid Posted February 25, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 102 Reputation: 4 Joined: 12/05/11 Last Seen: July 1, 2013 Share 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 Link to comment Share on other sites More sharing options...
goddameit Posted March 1, 2013 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted March 1, 2013 ...forgot to let you know >> http://goo.gl/nZ5Ec Quote Link to comment Share on other sites More sharing options...
Thanna Posted March 9, 2013 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 271 Reputation: 7 Joined: 01/06/12 Last Seen: May 16, 2015 Share 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 Link to comment Share on other sites More sharing options...
Kaito Kid Posted March 13, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 102 Reputation: 4 Joined: 12/05/11 Last Seen: July 1, 2013 Share Posted March 13, 2013 (edited) opsy... sleepy Edited March 13, 2013 by Kaito Kid Quote Link to comment Share on other sites More sharing options...
kyeme Posted March 13, 2013 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 164 Reputation: 12 Joined: 03/08/12 Last Seen: 13 hours ago Share Posted March 13, 2013 ...forgot to let you know >> http://goo.gl/nZ5Ec Thank you, now its working. Quote Link to comment Share on other sites More sharing options...
Cydh Posted March 16, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share 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 Link to comment Share on other sites More sharing options...
goddameit Posted March 16, 2013 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
Cydh Posted March 16, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share 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 Link to comment Share on other sites More sharing options...
andhyjr Posted April 2, 2013 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 8 Reputation: 0 Joined: 01/24/12 Last Seen: December 10, 2014 Share 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 Link to comment Share on other sites More sharing options...
goddameit Posted April 17, 2013 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted April 17, 2013 update to v.2 Quote Link to comment Share on other sites More sharing options...
Deleted User Posted April 24, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 235 Reputation: 55 Joined: 12/02/11 Last Seen: February 26, 2021 Share 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 Link to comment Share on other sites More sharing options...
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.