Log in

View Full Version : SkinCorpse integrated with the targeting



dexter killer
08-14-2012, 02:00 AM
I believe that this function among others, is very important and necessary. I researched a lot before posting, and did not find a script that actually did it the right way. I am using this script below created by forgee:
local range = 5 -- how far away to look for corpseID local corpseID = 4212 dofile("Forgee.lua") while true do Self.Skin(range, corpseID) wait(400, 600) end At first he is very good, but as the creature's body have two ID (One when he dies and another just after a few seconds, and the second is ID that is "skinable") the bot will only perform the skincorpse in the next lap that goes into the cave, if he find the body, it may have decomposed, and thus not realizing the skincorpse.

Infernal Bolt
08-14-2012, 03:17 AM
So you want it to stand next to the body for 10 seconds every time you kill something and drag your exp down? :D

dexter killer
08-14-2012, 03:43 AM
So you want it to stand next to the body for 10 seconds every time you kill something and drag your exp down? :D

I want! You don't? Justify! :D

Bushu
08-14-2012, 09:39 AM
function stake() --CREDITS TO ERRA
if (Self.ItemCount(5908) >= 1 and Self.TargetID() == 0) then
for x = -7, 7, 1 do
for y = -5, 5, 1 do
local item = Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y,

Self.Position().z)
if (item.id == 4212) then
delayWalker(1000)
Self.UseItemWithGround(5908, Self.Position().x + x, Self.Position().y + y,

Self.Position().z)
wait(300,1000)
end
end
end
end
wait(400)
end


while (true) do
stake()
end

this one is actually for bonebeasts, but still, skinning

dexter killer
08-14-2012, 06:45 PM
function stake() --CREDITS TO ERRA
if (Self.ItemCount(5908) >= 1 and Self.TargetID() == 0) then
for x = -7, 7, 1 do
for y = -5, 5, 1 do
local item = Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y,

Self.Position().z)
if (item.id == 4212) then
delayWalker(1000)
Self.UseItemWithGround(5908, Self.Position().x + x, Self.Position().y + y,

Self.Position().z)
wait(300,1000)
end
end
end
end
wait(400)
end


while (true) do
stake()
end

this one is actually for bonebeasts, but still, skinning

I'll test! ty for now!! :D

DarkstaR
08-14-2012, 06:51 PM
Personally, I would optimize that script by locating the current target on screen, waiting for it to disappear (creature:IsVisible()), and then checking that tile after 2 seconds. A LOT faster.

Bushu
08-14-2012, 07:08 PM
Personally, I would optimize that script by locating the current target on screen, waiting for it to disappear (creature:IsVisible()), and then checking that tile after 2 seconds. A LOT faster.
I'm so damn exhausted last week I can't bother myself using brain xd
The thing that summer break end at the end of september is really overhelming

dexter killer
08-15-2012, 12:22 AM
Personally, I would optimize that script by locating the current target on screen, waiting for it to disappear (creature:IsVisible()), and then checking that tile after 2 seconds. A LOT faster.

It would be too much to ask that you try to do that?! :D

Syntax
08-15-2012, 12:36 AM
I'll make it so Nick can focus on my requests :3
Thinking about making a script suite that should satisfy most people's general needs.