Jump to content
goddameit

@autopots

Recommended Posts

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

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

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

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

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

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

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

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

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

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.