Code:
[03/19 14:52:45] Unhandled Exception! Writing Minidump file.
This file with explanation and last lines from log files should be given to the development team.
Saved dump file to 'POL096-2006-03-17-20060319060721-0.dmp'
Last Script: scripts/ai/merchant.ecl PC: 916
merchant.lst
Code:
function CountExisting( container, objtype )
887: pop param 'objtype'
888: pop param 'container'
var count := 0;
889: decl local #2
890: 0L
891: :=
892: #
if(TypeOf(objtype)=="String")
893: local #0
894: Func(0,9): TypeOf
895: "String"
896: ==
897: if false goto 901
objtype:=GetObjTypeByName(objtype);
898: local #0
899: Func(4,33): GetObjtypeByName
900: local0 :=
foreach item in EnumerateItemsInContainer( container )
901: local #1
902: 0L
903: Func(4,5): EnumerateItemsInContainer
904: initforeach @918
if (item.objtype == objtype)
905: local #3
906: get member id 'objtype' (4)
907: local #0
908: ==
909: if false goto 915
count := count + item.amount;
910: local #2
911: local #3
912: get member id 'amount' (13)
913: +
914: local2 :=
SleepMs(10);
915: 10L
916: Func(3,4): sleepms
917: #
918: stepforeach @905
919: leave block(3)
return count;
920: local #2
921: return
No pathfinding anywhere in here, in fact none in this entire script at all... Unless of course, the log listed the wrong script and wrong spot.