Hi dudes,
can someone help me? Im not really good making .lua so I dont know how to do this.
I want to disable targeting if I dont have spears left, can someone help me please?
Thank you!
Printable View
Hi dudes,
can someone help me? Im not really good making .lua so I dont know how to do this.
I want to disable targeting if I dont have spears left, can someone help me please?
Thank you!
try this one.
lua code:
local spearID = 7378 -- set the spear id. [7378 = royal spear], [3277 = regular spear]
while(true)do
if(Self.ItemCount(spearID) == 0)then
setLooterEnabled(false)
lootEnabled = false
wait(200, 600)
end
create a new file.lua and run it on the scripter.
Okey I fix that there wasnt another "end" but there is a problem, when I dont have spears it disables the targeting, but when I have spears again, it doesnt enable it, help please?
Thanks @icaro43 !
Edit: Okey I fix it.
lua code:
But how can I change the amount of the spears, without change anything in the .lua?Code:local spearID = 7378 -- set the spear id. [7378 = royal spear], [3277 = regular spear]
while(true)do
if(Self.ItemCount(spearID) == 0)then
setTargetingEnabled(false)
TargetingEnabled = false
wait(200, 600)
elseif(Self.ItemCount (spearID) == 34) then
setTargetingEnabled(true)
TargetingEnable = true
wait (200, 600)
end
end
Use a spike sword or something when u dont have spears, and just target with that one, thats how i dis with my paladin lvl 8-80
hehe kk, tought u wanted it for a lower lvl since if ur using the script Tarpit tomb (as i guess seeing the kind of creatures u kill and thats the best tomb script) Just set your min spears to a higher value, and if u still want to have a script like that, i cant help you xD gl tho
which script u mean is the best of tarpit tomb? I did my own cuz @Joshwa534 didnt help me to fix his script xdd, u mean his script ?
Yeah @Joshwa534 has the best scripts (in my opinion) so i recommend using hes, tho what do you mean by not helping you fix it? ;o I just paid and got linked to the downloadpage right away? :p
Yes I bought it too, but its not working for me, it does somethings strange, it gets walker stuck on the "Nohardcore" part and I told him and sent screen about it and he didnt fix it Uu... and it always goes to refill, no matter if I have enough supplies, it always leave...
Well its a bug for me too there, i spoke to him about it he said u can go passed blue flame all the time, no matter what lvl, so i did, much better exp/h, so i suggest you do that xD tho mine is not refilling all the time, so that problem is most likely from your side, tho just check hes lua, set everything right, set true at go passed the blue flame (hardcore) and try it again, u will have a good time!
Edit: "mine is not refilling all the time" What i mean is, it only refills when it should refill
Damn, so maybe I must look a it carefully, going to check it right now. Ty dude I'll post the results later :p
btw how many exp/h u did there at lvl 68~? and waste or profit?
i took lvl 65-71 one day there, umm, profit but not like omfg im rich, still profit and good exp. Yeah post the results, will be interesting to see! ;p
lolol, I just realized that it buy gfb to hardcore mode? lol xdd isnt dangerous it ?
Nah i dident use a single gfb, also i used the scipts safe exevo mas san, that follows, just to boost the exp/h :p i started using it at lvl 55 with dist 80
ew just saw the mistake i made
lua code:
local spearID = 7378 -- set the spear id. [7378 = royal spear], [3277 = regular spear]
local spearOFF = 3 -- set the spear amount to turn off targetting
local Targetting = true
while(true)do
if ((Self.ItemCount(spearID) <= spearOFF) and Targetting) then
setTargetingEnabled(false)
Targetting = false
elseif ((Self.ItemCount(spearID) > spearOFF) and not Targetting) then
setTargetingEnabled(true)
Targetting = true
end
wait(200, 600)
end
btw you can use (xcode=lua) and (/xcode) to wrap lua codes in that colorfull gay style, but using brackets [ ] instead of parenthesis ()
Dude I was wrong, it works perfect, fucking awesome 65k/h in just 1 round, thanks for open my eyes again !! didnt use any gfb (I think it just buy them) and using safe exevo mas san, awesome, lvl 68 distance 90, gonna own it.
Ei @icaro43 thanks for tell me that about gay stile colours, its awesome haha