I want to level up the weapon ability by hitting on frog-eggs in tergothen bay and also using simple repair hammer.
Have created a script for a long time for leveling my weapons on "Mendoza Ayekin" so it works fine, but it doesnt in tergothen bay - I cannot get this f... eggs in target. Have u any solutions, whats going wrong there?
Are you talking about the fact that it keeps clearing the target after the egg has taken some damage? That might be because the egg doesn't target you. It may have worked with Mendoza if that mob targeted you.
The problem is "player:haveTarget". That does the regular checks so the ANTI_KS value comes into play. You can set ANTI_KS to false. That should work. Or you could not use haveTarget. Something like.
local egg = player:findNearestNameOrId(106062)
if egg then
player:target(egg.Address)
Attack() -- You can use "Attack()" instead of "sendMacro("UseSkill(1,1)")"
yrest(10000)
....etc
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
local mainhand = inventory.EquipSlots[16]
local weapon
if mainhand:isType("1-Handed Swords") then
weapon = "BLADE"
elseif mainhand:isType("2-Handed Swords") then
weapon = "CLAYMORE"
etc.
...
print("Weapon skill is "..RoMScript("GetPlayerCurrentSkillValue(\""..weapon.."\")"))
You can get the rest of the weapon type names from "rom\cache\itemtypestable.lua".
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
Hey, I'd double check to see if durability makes any difference to the weapon skill you gain. I've been doing a bit of testing and durability has dropped to about 35 and the weapon skill gained still seems the same.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
Hey, I'd double check to see if durability makes any difference to the weapon skill you gain. I've been doing a bit of testing and durability has dropped to about 35 and the weapon skill gained still seems the same.
Yes, that's right. It doesn't matter, if the durability is 35, 120 or maybe just 1. But after 12 hours (like in the script) the durability will be at 0 and if it's 0 you only level up the Weaponless Skill. It's the same if you hit a mob, when it's at 0, you will make damage like you don't wear a weapon
Hey, I'd double check to see if durability makes any difference to the weapon skill you gain. I've been doing a bit of testing and durability has dropped to about 35 and the weapon skill gained still seems the same.
Yes, that's right. It doesn't matter, if the durability is 35, 120 or maybe just 1. But after 12 hours (like in the script) the durability will be at 0 and if it's 0 you only level up the Weaponless Skill. It's the same if you hit a mob, when it's at 0, you will make damage like you don't wear a weapon
Thats right, after the durability of the weapon going down to 0, you will start leveling the weaponless ability - therefore it should use simple repair hammer (also in my script) - it works fine; repair every 2-3 hours, depending on the main durability.
In Ravenfell the Deadland Sand Scorpion Pupa regen so they cant be killed just attack them no scripting required your character will hit them 24/7.
Although you should probably add something to repair the weapon when dura is lowered.
**EDIT**
If your hitting them to hard go to logar buy the crappiest weapon you can get naked and hit them.
lol, so you have no clue whats going on here
Your raising the weapon ability for your class. That's whats going on unless i missed something?
ALL my characters weapon abilities are maxed from using this method. The target regenerates health so hitting it with lvl 8 weapons and no gear you hit it for less than it regens.
You can hit the same target all day long 24/7 as long as you repair the weapon every hour or so.
Weapon lvl, dura (unless its 0) and target have nothing to do with raising the weapon skill of your character.
yeah of course, but its about lvling the weapon in tergothen bay, there are eggs too, but lvl 67-68, so the lvling process is much faster than your eggs in ravenfell. read the first post, its about using the bot to autoattack those eggs, reattack if someone kills them and automatically repair the weapon(s) when dura is near zero.
rock, it's not possible for me to call the isType() function, can u tell my why this I cannot use it in the onload section?
Edit: it looks like (local mainhand = inventory.EquipSlots[16]) mainhand is no CItem... maybe I have to use another call?
So, i have played a bit with it, should work.
Edit this two variables to your needs, put your character infront of an egg, and start it. And dont forget to put some simple repair hamers in your bag. Furthermore if you use 2 weapons, the dura of them should be nearly the same... if not, equip the lower dura weapon in the mainhand
pman wrote:rock, it's not possible for me to call the isType() function, can u tell my why this I cannot use it in the onload section?
Edit: it looks like (local mainhand = inventory.EquipSlots[16]) mainhand is no CItem... maybe I have to use another call?
You are right. isType() is not available to equipment slots. It's really annoying that equipment slots was done as a separate class. The problem is the item class starts with the slot number which is specific to the inventory. If it was based off the address then we could use it for any item located anywhere. I actually started doing work a while ago on making a general item class that other classes could use but it was taking too much time so I didn't finish it. So for instance you would have a inventoryitem class that would use the item class as it's base similar to how the player class uses pawn as it's base. So equipslots would use it as a base too so all the functions would be available and there would be no repetition of code such as there is now. I was also including a bankitem class. Maybe I'll look into that again.
For now maybe we can use an ingame function instead. Nope can't find one. Hm.. Maybe we could trick it into thinking the item is in the inventory. I just tried this and it works.
inventory.BagSlot[61].Address = inventory.EquipSlots[17].Address
inventory.BagSlot[61]:update()
if inventory.BagSlot[61]:isType("1-Handed Swords") then ...