trying to code scroll usage

12/09/2020 05:33 moneyvsmoney#1
im working on something that i need to use a scroll for, however when the action comes about the game crashes.
Func usescroll()
Out("scrolling")
useitem($scroll)

EndFunc ;use scroll
is what i am using and i do have it declared in global with the scroll id#
Global Const $scroll = xxxx
i have also tried to take a page out of the ToC script with no luck. any help would be appreciated. TiA!! would prefer to have scrolls sit in (4,1)
12/09/2020 17:13 n0futur3#2
I think UseItem needs the ItemID, but I guess $scroll is the modelId. UseItem(GetItemByModelId($scroll)) should work
12/11/2020 18:59 corey54321#3
what scrolls are you trying to use all scrolls have different model numbers

also all you need to declare the variables

Code:
Global Const $fow = 34 :use you Map #
Global Const $scroll = 22280 ; use your scrolls model #

Func enterscroll()
	Out("using scroll")
	useitembymodelid($scroll)
	WaitMapLoading($fow)
 EndFunc   ;==>enterscroll