Ranger Forage

robbj4

Well-Known Member
Anyone have a fix for the Ranger Forage script? The script works untill you active the forage start button. Then it CTD.
All other scripts work fine so its not isxvg. Thanks.
 

robbj4

Well-Known Member
I posted the debug this morning after I figured out how to do it. Hopefully that works. I’m not much of a programmer and would not know where to start to try and fix it myself (if it’s in the script).
Thanks
 

jabnael

Active Member
Help please

I have this code in a script for a ranger.
It forages fine just will not loot the items.

function F_Forage()
{
if ${Me.Ability[Forage].IsReady} && ${Me.ToPawn.CombatState}==0 && ${Pawn[id, ${MAID}].CombatState}==0 && ${DoForage}
{
declare X int local 1
Me.Ability[Forage]:Use
wait 50
do
{
Loot.Item[${X}]:Lootall
wait 10
}
while ${X:Inc}<=${Loot.NumItems}
If ${Me.IsLooting}
{
Loot:EndLooting
}
}
}

Any help would be appriciated thanks
 

banemall

Active Member
The problem with the forage script is in the Itemname field.

It is returning "NULL" for all items, so it is unable to determine what is available to loot, so it skips the loot statement.

I'm no programmer, but have been looking at it myself the last couple of days, and I have no idea how to fix it....
 
Top Bottom