Jump to content

@autopots


goddameit

Recommended Posts


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

index.php?app=downloads&module=display&section=screenshot&id=2826

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.

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 by goddameit
  • Upvote 8
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  85
  • Reputation:   17
  • Joined:  12/25/11
  • Last Seen:  

Great !!!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  806
  • Reputation:   220
  • Joined:  03/13/12
  • Last Seen:  

Autopots transform and heal out!! /gg

 

Nice work  :D

Link to comment
Share on other sites


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

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

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

I already fixed it, thanks for your great release

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

How to edit the timer? To make it potting a little bit more faster. Did this source may cause our server lag?

Link to comment
Share on other sites


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

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  03/08/12
  • Last Seen:  

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

Link to comment
Share on other sites


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

so, you can't use this?
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  03/08/12
  • Last Seen:  

 

so, you can't use this?

Yes i can't use this commands in centos Host :(

Link to comment
Share on other sites


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

I don't have centos, so sorry, I can't help this.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   4
  • Joined:  12/05/11
  • Last Seen:  

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


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

...

sscanf(message, "%hd %hd %hd",
-->
sscanf(message, "%d %d %d",
try it
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   4
  • Joined:  12/05/11
  • Last Seen:  

...

sscanf(message, "%hd %hd %hd",
-->
sscanf(message, "%d %d %d",
try it

 

Nice.... it works great... and compile without warning

thanks  /no1

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   4
  • Joined:  12/05/11
  • Last Seen:  

opsy... sleepy  /hum

Edited by Kaito Kid
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  03/08/12
  • Last Seen:  

...

forgot to let you know >> http://goo.gl/nZ5Ec

Thank you, now its working. :)

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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.

Link to comment
Share on other sites


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

if use add_timer, system will checks the function every x seconds for each user that use autopots

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


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  01/24/12
  • Last Seen:  

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

  • 2 weeks later...

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

update to v.2

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

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
 

 

/hmm

 

post-630-0-62547100-1366839248_thumb.png

Edited by Kaze
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
Reply to this topic...

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