Log in

View Full Version : xlog if no more small stones?



holos
02-04-2015, 05:01 PM
a very simple script I guess can u pls help me? I have no talent in scripting :D

Unuke12345
02-04-2015, 05:25 PM
if (Self.ItemCount(ID) == 0) then
os.exit()
end

holos
02-04-2015, 05:33 PM
thanks a lot do I have to change (ID) to the small stones id ? if I change ID to the ID of small stones the script wont load

Xeromex
02-04-2015, 05:49 PM
thanks a lot do I have to change (ID) to the small stones id ? if I change ID to the ID of small stones the script wont load

I guess you need to add a loop?


while true do
if (Self.ItemCount(ID) == 0) then
os.exit()
end
end

holos
02-04-2015, 06:09 PM
what do u mean by loop ? I mean now the script kind of works if I dont have small stones anymore it will xlog but it laggs like shit when I still have small stones wtf ? :D fixes?

holos
02-04-2015, 10:20 PM
while true do
if Self.ItemCount("small stone") < 1 then
os.exit()
end
wait(200)
end
well I tried this out and it worked good but thanks anyways :-)