Jump to content

@autopots


goddameit

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

line 9160 add a + between gettick() and 500

gettick()+500

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:  

btw, there is item execption? :D

 

how if I do @autopots 1 50 501 50 502? :D

there's no execption for item that gives HP or SP or maybe both

 

and what's type for? /hmm

<type>(0=OFF,1=OFF)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

some sc are timered yeah, so it's quite similar and 500ms is quite big.

If you wanted to do it hp / sp based tough you could have done it in status_dammage and here you go.

  • Upvote 1
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:  

btw, there is item execption? :D

 

how if I do @autopots 1 50 501 50 502? :D

there's no execption for item that gives HP or SP or maybe both

 

and what's type for? /hmm

 

<type>(0=OFF,1=OFF)

 

if you type "@autopots 0 blablabla..." this will call system that you want to turn off

(just a bool for start or end)

 

there's no execption for item that gives HP or SP or maybe both

Use item for recovering HP will be priority as

  /ok

 

-

 

v.3 : remove useless thing

Edited by goddameit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  145
  • Reputation:   15
  • Joined:  01/06/12
  • Last Seen:  

Warning    1    warning C4101: 'i' : unreferenced local variable    k:\rathena\testserver\src\map\atcommand.c    8585    map-server_sql

on int hp_rate=0, hp_nameid=0, sp_rate=0, sp_nameid=0, type=0, i;
 

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:  

Warning    1    warning C4101: 'i' : unreferenced local variable    k:\rathena\testserver\src\map\atcommand.c    8585    map-server_sql

on int hp_rate=0, hp_nameid=0, sp_rate=0, sp_nameid=0, type=0, i;

 

 

int hp_rate=0, hp_nameid=0, sp_rate=0, sp_nameid=0, type=0, i;

you can remove this if you really care this warning

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:  

I just wanna share, on another MMORPG that has autopots,

they have separate timer for HP and SP, maybe you want improve like that..

and other one, autoconsume healing item is based on what healing item that placed on hotkey, maybe if you want to try it. haha

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  145
  • Reputation:   15
  • Joined:  01/06/12
  • Last Seen:  

it can be if you add to skill by level 1 to 10

1 = 10%

to

10 = 100%

skill = hotkey

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 just wanna share, on another MMORPG that has autopots,

they have separate timer for HP and SP, maybe you want improve like that..

and other one, autoconsume healing item is based on what healing item that placed on hotkey, maybe if you want to try it. haha

 

if you want to make system will do recover HP and SP at same time or using hotkey,

 

just change ''use item'' to ''directly heal + delete item'' or else.

 

anyway, this is open source, you can edit it to what you want.

 

I will only fix or update what I think is important or good.  /ok

Edited by goddameit
Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  06/27/13
  • Last Seen:  

error in compiling. im using latest rath. is there an update for this yet? could be nice to have one of these. T_T..

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  315
  • Reputation:   12
  • Joined:  11/21/11
  • Last Seen:  

can update to git please? the lasted diff don't work.

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  250
  • Topics Per Day:  0.06
  • Content Count:  697
  • Reputation:   15
  • Joined:  01/07/12
  • Last Seen:  

quick question, can this be use on eAthena?

Link to comment
Share on other sites

  • 3 years later...

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  03/27/13
  • Last Seen:  

bump

 

someone can help me?

sorry for reviving topic

 

atcommand.c: In function 'autoatpots_timer':
atcommand.c:8557: error: expected ')' before numeric constant
atcommand.c:8557: error: too few arguments to function 'add_timer'
atcommand.c:8528: warning: unused variable 'item'
atcommand.c: In function 'atcommand_autopots':
atcommand.c:8604: error: expected ')' before numeric constant
atcommand.c:8604: error: too few arguments to function 'add_timer'
atcommand.c: In function 'atcommand_mobevent':
atcommand.c:8691: warning: unused variable 'y'
atcommand.c:8691: warning: unused variable 'x'
 

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  11/17/14
  • Last Seen:  

update please :(

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

Need help

compile is error how to fixit

 

 

Screenshot_2.png

Link to comment
Share on other sites


  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

11 hours ago, ittiphol said:

Need help

compile is error how to fixit

 

 

Screenshot_2.png

i would suggest using this

https://github.com/rathena/rathena/blob/master/npc/custom/etc/autopot.txt

no need for src edit

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

On 12/3/2019 at 3:32 AM, sader1992 said:

i would suggest using this

https://github.com/rathena/rathena/blob/master/npc/custom/etc/autopot.txt

no need for src edit

autopot.txt

it's works fine

autopot.txt

it's use only type text box

but now i try apply to item to use it

thank you

Somebody help me ?

how to use this script by callfunc

not type in textbox chat

thank you.

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