Erm, may I know what to replace the 'Char1', 'Char2', 'Char3', and 'Char4'? What does it mean by 'player.Name' and 'joinname' ? I'm sorry, I'm new to this.
if DOD_SOLO then
if player.Name == "Char1" then
joinname = "Char2"
elseif player.Name == "Char3" then
joinname = "Char4"
else
error("No party match!",0)
Every time I tried to put my char name and my another char name, I got this error,
mrphil wrote:Erm, may I know what to replace the 'Char1', 'Char2', 'Char3', and 'Char4'? What does it mean by 'player.Name' and 'joinname' ? I'm sorry, I'm new to this.
if DOD_SOLO then
if player.Name == "Char1" then
joinname = "Char2"
elseif player.Name == "Char3" then
joinname = "Char4"
else
error("No party match!",0)
Every time I tried to put my char name and my another char name, I got this error,
What I meant is, I wanna do a solo run. But I don't know what to put in Char1,2,3,4. I'm not sure what is 'player.Name' and 'joinname'. Everytime I get this error,
So I tried this, and having some major issues (DOD_Full leader and follower):
Party: OP R/S, newbie Druid healer (63/58)
1. Gate at 3rd boss
druid went ahead, locked rogue out, and died at boss. I restarted the instance manually, same thing happened the second time. Follower gets ahead of leader, should not do that.
2. Upon resurrect, druid came in and stopped at first boss room, waiting for leader. Leader meanwhile killed 3rd boss, and was waiting for follower at 3rd. Classic circular lock. This one is tricky, they all need to be entering the room at the same time else they get locked out. IF this is not possible, at least leader has to have a chance to get in first.
3. Rat room near last boss. Gate goes up, won't come down until barrels/rats are killed. Neither leader or follower tried that, just banged heads against the gate until bot logged out due to 10 times being stuck.
4. Druid does not heal!!!. Tried to fight, and failed epicly with its limited arsenal. Need a way to give assignments to followers. "tank healer", "restoftheplayers healer" "dps" "sitthereanddonothingwhilethebigboysfight". Side note, I need a good example of druid skills setup, mine is rudimentary, and seemingly not efficient.
5. I also noticed that when I restarted, follower mounted up and rode back, leader tried to walk back the whole way.
6. A question, how can one set up priest/druid or anyone else who can remove the fear at second boss?
EDIT:
7. Getting a lot of "Clearing target." stuck situation on follower
Edit2:
8. Need some smart rolling logic .. ex, if level 55-60 then if gear is OD and applicable to any of the primary,secondary or tertiary classes then roll on it, otherwise pass. I could do the logic probably, just dont know how to programatically click the roll/pass buttons.
Last edited by Cindy on Sun Nov 25, 2012 3:50 pm, edited 1 time in total.
Is there a way to target the party leader? Or the member which has got aggro? For dod solo mode i've got a code to leave group if the second boss fears you. At the moment I level up a healer for the dod party bot. What I want is to do a Cleanse on my main Char is he gets feared.
An other question: Which level do my chars need to not get aggro of the trash mobs? If I run with my lvl 58 rogue I use hide between the bosses
I don't recall there being any code in the bot to deal with cleansing so you will probably need to add in some code for it.
Probably something in the onpreskillcast, if you know the id or name of the curse then it should be easy enough, you could probably just make up a specific function for the instance as party healer and do a check in the loop for the curse/debuff and cleanse it as needed.
Remember no matter you do in life to always have a little fun while you are at it
<waypoint x="2204" z="2510" y="401" tag="okander">
__WPL:setForcedWaypointType("NORMAL")
changeProfileOption("LOOT_PAUSE_AFTER", 2)
changeProfileOption("LOOT_ALL",true)
changeProfileOption("LOOT",true)
if CountObjectsNearPoint("Okander") > 0 then
if not player.Battling then
yrest(250)
end
__WPL:setWaypointIndex(__WPL:findWaypointTag("okander"))
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("out"))
repeat
yrest(500*math.random(4))
local okander = player:findNearestNameOrId("Okander")
if not okander then break end
keyboardPress( key.VK_F1 );
yrest(500)
keyboardPress( key.VK_0 );
player:target(okander)
player:update()
player:loot()
until inventory:itemTotalCount("Ancient Memento") > mentos
end
</waypoint>
lisa wrote:I don't recall there being any code in the bot to deal with cleansing so you will probably need to add in some code for it.
Probably something in the onpreskillcast, if you know the id or name of the curse then it should be easy enough, you could probably just make up a specific function for the instance as party healer and do a check in the loop for the curse/debuff and cleanse it as needed.
function MainCharFear()
if player.name = "Myhealer" then -- only use this code with my healer
if player:findNearestNameOrId(103170); -- second boss in dod
local target = RoMScript(TargetUnit("party1"))
target:updateBuffs()
if target:hasDebuff("Gedankenkontrolle") then
player:cast("PRIEST_CLEANSE")
end
end
end
end
Hi
I was not able to bot dod for some time so now I started again. The code I tried should work normally, but it doesn't. Everything seems so be ok but now he gets a problem with targeting my main char:
5:14pm - ...ns Rom Bot/micromacro/scripts/rc3/classes/player.lua:965: onSkillCas
t error: [string "..."]:106: attempt to call global 'TargetUnit' (a nil value)
function settings.profile.events.onSkillCast()
if player.Name == "MyHealer" then
if player:findNearestNameOrId(103170) then
local target = RoMScript(TargetUnit("party1"))
target:updateBuffs()
if target:hasDebuff("Gedankenkontrolle") then
player:cast("PRIEST_CLEANSE")
end
end
end
end
/script TargetUnit("party1") in the ingame chat works fine
With my function posted above the healer will do the run until he reaches the second boss and then gets the error message, but if I use the version with the extra brackets it errors when loading the waypoint.
local target = player:findNearestNameOrId("MainCharName")
if target then
target = CPawn(target.Address)
player:target(target.Address)
target:updateBuffs()
-- etc.
end
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.
What '\' does is escape a special character. If you just do double quotes it get interpreted as
local target = RoMScript("TargetUnit(" party1 ")")
where the bold bits are seen as a string and party1 is seen as a variable. This is a syntax error. To send just 1 big string, you have to escape the inner quotes. You do this by putting a \ before it.
local target = RoMScript("TargetUnit(\"party1\")")
What this means is the inner quotes have their special meaning removed and are just sent as a string character ". So this is what is received in the game
AlterEgo95 wrote:attempt to index local 'target' (a nil value)
What this means is you tried to treat 'target' as a table by indexing it, eg. target.somevariable, but it was in fact nil. It would be nil if a target wasn't found. That is why I added that check to see in target exists first before continuing with targeting. eg.
function settings.profile.events.onSkillCast()
if player.Name == "MyHealer" then
if player:findNearestNameOrId(103170) then
local target = RoMScript("TargetUnit(\"party1\")")
if target then
target:updateBuffs()
if target:hasDebuff("Gedankenkontrolle") then
player:cast("PRIEST_CLEANSE")
end
end
end
end
end