View Full Version : Paladin Help If NO spears
Saionz
04-01-2013, 11:10 AM
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!
icaro43
04-01-2013, 12:13 PM
try this one.
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.
Saionz
04-01-2013, 12:31 PM
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:
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
But how can I change the amount of the spears, without change anything in the .lua?
Tobjun
04-01-2013, 12:42 PM
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
Saionz
04-01-2013, 12:44 PM
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
I think I cant kill bonebeast/vamps/ds with sword haha, anyway ty for the help!
Tobjun
04-01-2013, 12:47 PM
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
Saionz
04-01-2013, 12:51 PM
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 ?
Tobjun
04-01-2013, 12:58 PM
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
Saionz
04-01-2013, 01:00 PM
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...
Tobjun
04-01-2013, 01:08 PM
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
Saionz
04-01-2013, 01:12 PM
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?
Tobjun
04-01-2013, 01:17 PM
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
Saionz
04-01-2013, 01:19 PM
lolol, I just realized that it buy gfb to hardcore mode? lol xdd isnt dangerous it ?
Tobjun
04-01-2013, 01:22 PM
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
icaro43
04-01-2013, 01:25 PM
ew just saw the mistake i made
icaro43
04-01-2013, 01:35 PM
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 ()
Saionz
04-01-2013, 01:36 PM
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.
Saionz
04-01-2013, 01:37 PM
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
Ei icaro43 thanks for tell me that about gay stile colours, its awesome haha
Joshwa534
04-01-2013, 11:42 PM
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.
I've got some re-writting to do on this script, I'll try to have a revised version of the Tarpit script released today if possible.
Joshwa534
04-02-2013, 01:38 AM
Saionz
http://forums.xenobot.net/showthread.php?8821-JXScripts-(-gt-.-)-gt-100-AFK-lt-(-.-lt-)&p=153698&viewfull=1#post153698
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.