Para's VanillaTool [Rework]

08/26/2017 04:59 Stndartuser123#5986
Quote:
Originally Posted by Paraly View Post
So you want to use the potion while a script is running? you're talking about the combat wizard script?
Yes, that is it.
08/26/2017 11:19 Paraly#5987
Quote:
Originally Posted by Stndartuser123 View Post
Yes, that is it.
You know that the combat script asks for a potion name for sustain so you just have enter it and it's fine
08/26/2017 16:47 Stndartuser123#5988
Quote:
Originally Posted by Paraly View Post
You know that the combat script asks for a potion name for sustain so you just have enter it and it's fine
Yes, i know, and than i write "Superior Recovery Potion"

Nothing happens....

As my bot is a assassin, i would like him to use the pot with 90% of HP

Thanks
08/26/2017 17:31 Paraly#5989
Quote:
Originally Posted by Stndartuser123 View Post
Yes, i know, and than i write "Superior Recovery Potion"

Nothing happens....

As my bot is a assassin, i would like him to use the pot with 90% of HP

Thanks
open up the combat routine script in some text editor
scroll to the very end, you find this code

Code:
start_Potion;

_IFMemRead=%AddrFreeMem4,BYTE,=1;
MemPtrWrite=%PlayerBase,%OffsetAnim,300,WORD; <-- Activate NoAnim
#ENDIF


_MemPtrReadVar=%PlayerBase,%OffsetMaxMP,WORD,11; <-- saves max MP in %Var11
_MemPtrReadVar=%PlayerBase,%OffsetMP,WORD,12; <-- saves current MP in %Var12
_Calc11=%Var12/%Var11; <-- divides %Var12 trough %Var11 and saves the result in %Var11
_Calc11=%Var11*100; <-- multiplies %Var11 with 100 and saves the result in %Var11
MemWrite=%AddrFreeMem12,%Var11,FLOAT; <-- writes current mana percent value in %AddrFreeMem12
MemWrite=%AddrFreeMem10,%Var3,WCHAR[1];

_IFMemRead=%AddrFreeMem10,BYTE,65-122;
_IFMemRead=%AddrFreeMem12,FLOAT,<50; <-- If mana below 50%
#IF=%Timer=162000124,30000;
Command=/Use %Var3;
CreateTimer=162000124;
#ENDIF


_IFMemRead=%AddrFreeMem10,BYTE,65-122;
_IFMemPtrRead=%PlayerBase,%OffsetPercentHP,BYTE,<40;
#IF=%Timer=162000124,30000;
Command=/Use %Var3;
CreateTimer=162000124;
#ENDIF

end_Potion;
change
Code:
_IFMemPtrRead=%PlayerBase,%OffsetPercentHP,BYTE,<40;
to what ever percentage value you like, for example
Code:
_IFMemPtrRead=%PlayerBase,%OffsetPercentHP,BYTE,<90;
would use it when it's below 90% health

also you could change
Code:
Command=/Use %Var3;
to
Code:
UseID=PotionItemID;
08/26/2017 18:42 Stndartuser123#5990
Quote:
Originally Posted by Paraly View Post
open up the combat routine script in some text editor
scroll to the very end, you find this code

Code:
start_Potion;

_IFMemRead=%AddrFreeMem4,BYTE,=1;
MemPtrWrite=%PlayerBase,%OffsetAnim,300,WORD; <-- Activate NoAnim
#ENDIF


_MemPtrReadVar=%PlayerBase,%OffsetMaxMP,WORD,11; <-- saves max MP in %Var11
_MemPtrReadVar=%PlayerBase,%OffsetMP,WORD,12; <-- saves current MP in %Var12
_Calc11=%Var12/%Var11; <-- divides %Var12 trough %Var11 and saves the result in %Var11
_Calc11=%Var11*100; <-- multiplies %Var11 with 100 and saves the result in %Var11
MemWrite=%AddrFreeMem12,%Var11,FLOAT; <-- writes current mana percent value in %AddrFreeMem12
MemWrite=%AddrFreeMem10,%Var3,WCHAR[1];

_IFMemRead=%AddrFreeMem10,BYTE,65-122;
_IFMemRead=%AddrFreeMem12,FLOAT,<50; <-- If mana below 50%
#IF=%Timer=162000124,30000;
Command=/Use %Var3;
CreateTimer=162000124;
#ENDIF


_IFMemRead=%AddrFreeMem10,BYTE,65-122;
_IFMemPtrRead=%PlayerBase,%OffsetPercentHP,BYTE,<40;
#IF=%Timer=162000124,30000;
Command=/Use %Var3;
CreateTimer=162000124;
#ENDIF

end_Potion;
change
Code:
_IFMemPtrRead=%PlayerBase,%OffsetPercentHP,BYTE,<40;
to what ever percentage value you like, for example
Code:
_IFMemPtrRead=%PlayerBase,%OffsetPercentHP,BYTE,<90;
would use it when it's below 90% health

also you could change
Code:
Command=/Use %Var3;
to
Code:
UseID=PotionItemID;
Thanks Para! you support are the best!
08/27/2017 10:36 gb2978#5991
how do we get ulimited instances entry
08/27/2017 11:31 Paraly#5992
Quote:
Originally Posted by gb2978 View Post
how do we get ulimited instances entry
Impossible.
08/27/2017 12:37 node182#5993
best way to farm chronos stones?
08/27/2017 20:28 t00l#5994
anyone have great Combat routine (estera) pm me
08/27/2017 20:33 FaCaDa_BRA#5995
Song use no-animation or enhanced ?
The other classes, which they use?

Ranger Enha....
Sin No-ani....
Bla Bla Bla...
08/27/2017 20:52 sucu#5996
HACKER on?
08/27/2017 20:54 Paraly#5997
Quote:
Originally Posted by FaCaDa_BRA View Post
Song use no-animation or enhanced ?
The other classes, which they use?

Ranger Enha....
Sin No-ani....
Bla Bla Bla...
I would use custom animation at 350 as songweaver

People have different preferances, some use enhanced at songweaver some use custom and some NoAnimation, just try around and find your own value
Quote:
Originally Posted by sucu View Post
HACKER on?
If you mean if my site is online, yes it is.
08/27/2017 21:02 sucu#5998
Quote:
Originally Posted by Paraly View Post
If you mean if my site is online, yes it is.
So something is going wrong ... because after running Pipe 2.00 as administrator and starting the game, when I run Para's VanillaTool -Rework- 4.05.exe nothing happens ... it does not inject.
08/27/2017 21:15 Paraly#5999
Quote:
Originally Posted by sucu View Post
So something is going wrong ... because after running Pipe 2.00 as administrator and starting the game, when I run Para's VanillaTool -Rework- 4.05.exe nothing happens ... it does not inject.
Can you open subvanillatool.com with your browser?
08/27/2017 21:33 FaCaDa_BRA#6000
Quote:
Originally Posted by Paraly View Post
I would use custom animation at 350 as songweaver

People have different preferances, some use enhanced at songweaver some use custom and some NoAnimation, just try around and find your own value

If you mean if my site is online, yes it is.
You have a schema for all classes?
Each class with your use.