Hey im a complete noob to editing scripts but i decided to look into it...
for raptor bot id like to add a function for not selling underworld/fow scrolls to merchant as they go for 4k,800g respectively by selling to rare scroll trader.
All i want is simple, do not sell scroll at all.
For this line of code, were do i find the table for which each number corresponds to which scroll (im complete noob to coding).
;~ Scrolls
Global $All_Scrolls_Array[9] = [3746, 22280, 765, 767, 768, 1887, 857, 894, 895]
this arguement already exists in the code:
If CheckArrayScrolls($lModelID) Then Return False
----why does does it sell the scroll to merch anyways?
mega edit lol:
i added this func to the store item section of code
Func StoreScrolls()
Scrolls(1, 20)
Scrolls(2, 5)
Scrolls(3, 10)
Scrolls(4, 10)
EndFunc
trying to maybe make all 9 scrolls manually false to not merch inside the canSell[] func
If $lModelID == 3746 Then Return False
If $lModelID == 22280 Then Return False
If $lModelID == 765 Then Return False
If $lModelID == 767 Then Return False
If $lModelID == 768 Then Return False
If $lModelID == 1887 Then Return False
If $lModelID == 857 Then Return False
If $lModelID == 894 Then Return False
If $lModelID == 895 Then Return False
; [3746, 22280, 765, 767, 768, 1887, 857, 894, 895] reference for all 9 scrolls
also manually added the 9 $ModelID into StackableDrops[] func
//this bugs the code so i reverted back to normal
aight im lost lol(gonna take a break, also thought about a if Stuck[] func to resign if you get stuck early to get survivor title but no idea how)
so none of the above stuff worked... last resort i deleted a line of code for which the bot sells stuff from your bag:
Out("Selling")
Sell(1)
Sell(2)
Sell(3)
;removed Sell(4) and used 4th bag as scroll/dye/lockpick holder
checking if it works meow
cool it worked

, bot doesn't sell items in your choice of bag, so in my case... uw/fow scrolls dont get sold if you keep atleast 1 of each in bag 4

. This makes the bot slightly less efficient though because your inventory will fill a tad faster and your bot will have to sell its full inventory a bit more frequently.
uwu
gonna work on storing shields/salvaging measure by measure mods---they yield on avg, half a stack of dust per shield salvage with measure inscrip on em. :O