Buff StateID

Post Reply
creatine
Posts: 120
Joined: Wed Jan 18, 2017 4:12 pm
Has thanked: 19 times
Been thanked: 5 times

Buff StateID

Post by creatine » Mon Aug 21, 2017 5:48 pm

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.

User avatar
Quirunerk
Posts: 65
Joined: Sun Aug 20, 2017 3:06 pm
Has thanked: 24 times
Been thanked: 1 time

Re: Buff StateID

Post by Quirunerk » Mon Aug 21, 2017 6:52 pm

i can't use autoscroll script if u have can u share it ?

User avatar
Diavolakos
Posts: 114
Joined: Thu Apr 20, 2017 5:05 am
Has thanked: 31 times
Been thanked: 13 times

Re: Buff StateID

Post by Diavolakos » Tue Aug 22, 2017 5:22 am

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.
I play on NA Server Siel

creatine
Posts: 120
Joined: Wed Jan 18, 2017 4:12 pm
Has thanked: 19 times
Been thanked: 5 times

Re: Buff StateID

Post by creatine » Tue Aug 22, 2017 6:52 am

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

User avatar
nucular
Site Admin
Posts: 260
Joined: Sat Jan 07, 2017 9:08 pm
Has thanked: 27 times
Been thanked: 388 times

Re: Buff StateID

Post by nucular » Tue Aug 22, 2017 8:00 am

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

User avatar
Quirunerk
Posts: 65
Joined: Sun Aug 20, 2017 3:06 pm
Has thanked: 24 times
Been thanked: 1 time

Re: Buff StateID

Post by Quirunerk » Tue Aug 22, 2017 12:40 pm

- [string "af.lua"]:1: attempt to index global 'Helper' (a nil value) im getting this how can i use scroll script actually ?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest