Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ATable = {{"Rat",5964, 3993}, {"Chicken",6042,4331}, {"Black Sheep",5994,4095}}
- corpse = Module.New('Dead Body pickup', function (mod)
- local _FOUNDT
- local data
- local c = Creature(Self.TargetID())
- if c then
- for i = 1 #ATable do
- if c:Name() == ATable[i][1] then
- _FOUNDT = true
- data = ATable[i]
- end
- end
- if _FOUNDT then
- if Self.ItemCount(data[3]) < 1 then
- crtPos = c:Position()
- Walker.Stop()
- Looter.Stop()
- while c:isAlive() do
- crtPos = c:Position()
- end
- Targeting.Stop()
- wait(1000,1400)
- Self.BrowseField(crtPos.x, crtPos.y, crtPos.z)
- wait(1200,1400)
- local browse = Container.GetLast()
- for i = 0, browse:ItemCount()-1 do
- local item = browse:GetItemData(i)
- if item.id == data[2] then
- while browse:GetItemData(i).id == data[2] do
- wait(1000)
- end
- browse:MoveItemToContainer(i, 0, 0, 1)
- break
- elseif item.id == data[3] then
- browse:MoveItemToContainer(i, 0, 0, 1)
- break
- end
- end
- Walker.Start()
- Targeting.Start()
- end
- end
- end
- end, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement