05-23-2017, 02:43 PM
Hello guys,
Playing with maps
Quote:Version 82.5
+ Tibia 10.94 items (thanks Catar, for helping me)
+ [macro] Map.ItemsOnTile(X, Y, Z)
+ [macro] Map.Item.ID(X, Y, Z, Index)
+ [macro] Map.Item.Count(X, Y, Z, Index)
+ [macro] Map.ItemOnTop.ID(X, Y, Z)
+ [macro] Map.ItemOnTop.Count(X, Y, Z)
+ [macro] Map.CreatureOnTop.ID(X, Y, Z)
* Fixed FullCheck for Advanced Attack Wavers
Playing with maps
Code:
0 {Play With Map}
Index:=0
Items:=Map.ItemsOnTile(:X, :Y, :Z)
{ReadItemAgain}
ID:=Map.Item.ID(:X, :Y, :Z, !Index)
Count:=Map.Item.Count(:X, :Y, :Z, !Index)
Debug.Log(:X :Y :Z Index=!Index ID=!ID Count=!Count)
!Index<!Items [Leave]
VarAdd(Index, 1)
GoLabel(ReadItemAgain)
{Leave}
ItemOnTopID:=Map.ItemOnTop.ID(:X, :Y, :Z)
ItemOnTopCount:=Map.ItemOnTop.Count(:X, :Y, :Z)
CreatureOnTop:=Map.CreatureOnTop.ID(:X, :Y, :Z)
Debug.Log(On Top ID=!ItemOnTopID Count=!ItemOnTopCount Creature=!CreatureOnTop)