Page 1 of 1
Buff StateID
Posted: Mon Aug 21, 2017 5:48 pm
by creatine
so before this when enabling auto scroll like greater awakening, greater courage, running scroll, I would use code such as:
Code: Select all
if Player:GetState():GetState( 9960 ) == nil and Helper:CheckAvailableInventory ( "Greater Running Scroll" ) then
PlayerInput:Inventory( "Greater Running Scroll" );
end
if Player:GetState():GetState( 9959 ) == nil and Helper:CheckAvailableInventory ( "Greater Courage Scroll" ) then
PlayerInput:Inventory( "Greater Courage Scroll" );
end
and this still works. I just wanted to know if anyone has the StateID code for greater awakening scroll, cuz thats the only one that im missing.
Re: Buff StateID
Posted: Mon Aug 21, 2017 6:52 pm
by Quirunerk
i can't use autoscroll script if u have can u share it ?
Re: Buff StateID
Posted: Tue Aug 22, 2017 5:22 am
by Diavolakos
For me these scripts always created problems, they made my char run in a straight line getting many mobs when the scrolsl were taken and he was in currently moving state.
I have since taken pets that take scrolls by themselves and I solved this problem.
If you take the "Tiamat Whelp" pet, it auto loots and also uses 3 scrolls and 1 food and 1 drink.
I do not know how expensive this is to your server, but trust me it literally saves the world having it.
Re: Buff StateID
Posted: Tue Aug 22, 2017 6:52 am
by creatine
Quirunerk wrote: ↑Mon Aug 21, 2017 6:52 pm
i can't use autoscroll script if u have can u share it ?
just add the codes into your class script
Re: Buff StateID
Posted: Tue Aug 22, 2017 8:00 am
by nucular
Why not use BuffManager?
viewtopic.php?f=4&t=219
And by the way you don't have to use state ids
Code: Select all
if Player:GetState():GetState( Helper:CheckName("Increase Movement Speed") ) == nil and Helper:CheckAvailableInventory ( "Greater Running Scroll" ) then
PlayerInput:Inventory( "Greater Running Scroll" );
end
should work
Re: Buff StateID
Posted: Tue Aug 22, 2017 12:40 pm
by Quirunerk
- [string "af.lua"]:1: attempt to index global 'Helper' (a nil value) im getting this how can i use scroll script actually ?