Small but helpful addition to the code
-
- Posts: 9
- Joined: Thu Sep 10, 2009 7:17 pm
Small but helpful addition to the code
Love the program. You guy/s are great. I have found that it would be tremendously helpful if there were a resurrection option which denied resurrection when killed by a mob (specifically elites!) but allowed resurrection when pk'd. I have found that I sometimes die several times due to an elite, but I do not want to turn off rez because of pk. Just a thought. Thanks again.
Re: Small but helpful addition to the code
Since SVN 335 there is a profile optionFelixTheCatetris wrote:Love the program. You guy/s are great. I have found that it would be tremendously helpful if there were a resurrection option which denied resurrection when killed by a mob (specifically elites!) but allowed resurrection when pk'd. I have found that I sometimes die several times due to an elite, but I do not want to turn off rez because of pk. Just a thought. Thanks again.
Code: Select all
<option name="PK_COUNTS_AS_DEATH" value="true" />
Code: Select all
<option name="MAX_DEATHS" value="10" />
The RoM Bot Online Wiki needs your help!
Re: Small but helpful addition to the code
what if we need the opposite, to log if we die to a pk, but to res and go back to fighting if we die to a mob
if a pk is killing me over and over i dont wanna keep rezzing for him
if a pk is killing me over and over i dont wanna keep rezzing for him
Re: Small but helpful addition to the code
you should make waypoints in witch you dont die to the mobsj_schlott wrote:what if we need the opposite, to log if we die to a pk, but to res and go back to fighting if we die to a mob
if a pk is killing me over and over i dont wanna keep rezzing for him
Re: Small but helpful addition to the code
well to be honest, you should be setting waypoints where you wont die to pks aswell.
but shit happens, isnt that why we have return paths
to me it seems silly to continue botting if you die to a pk, who probably went red because they knew you were botting and just wanted to kill you. thats some attention we should be trying to avoid
but shit happens, isnt that why we have return paths
to me it seems silly to continue botting if you die to a pk, who probably went red because they knew you were botting and just wanted to kill you. thats some attention we should be trying to avoid
Re: Small but helpful addition to the code
I don't want to rezz to much if I'm PKed, like you wrote. And I also don't want to rezz to much if I'm killed by mobs because of the XP debts.j_schlott wrote:what if we need the opposite, to log if we die to a pk, but to res and go back to fighting if we die to a mob
if a pk is killing me over and over i dont wanna keep rezzing for him
The RoM Bot Online Wiki needs your help!
Re: Small but helpful addition to the code
thats very true, but really i only die once or twice a week to mobs, if that, and even rarer to Pks
the the actual number of times ressing isnt the problem for me
its the attention of other players i dont want
im guessing it would be fairly easy for you to add a similiar option
or something like that, and of course it would start as "true" by default so everyone that doesnt want/use it, isnt affected by adding it
just a thought
the the actual number of times ressing isnt the problem for me
its the attention of other players i dont want
im guessing it would be fairly easy for you to add a similiar option
Code: Select all
<option name="MOB_COUNTS_AS_DEATH" value="true" />
just a thought
Re: Small but helpful addition to the code
Yes we could do that. No problem. And I don't really see the need? If you don't die from mobs, you will not need the option. And if you die very often from mobs, you will probably don't want to collect so much XP debts. So who will use that option with a value of 'false'?j_schlott wrote:thats very true, but really i only die once or twice a week to mobs, if that, and even rarer to Pks
the the actual number of times ressing isnt the problem for me
its the attention of other players i dont want
im guessing it would be fairly easy for you to add a similiar optionor something like that, and of course it would start as "true" by default so everyone that doesnt want/use it, isnt affected by adding itCode: Select all
<option name="MOB_COUNTS_AS_DEATH" value="true" />
just a thought
The RoM Bot Online Wiki needs your help!
Re: Small but helpful addition to the code
i guess just me
i just want to log from any pk death period, but if you put maxdeaths=1, youll log if you die even once to a mob
i just want to log from any pk death period, but if you put maxdeaths=1, youll log if you die even once to a mob
Re: Small but helpful addition to the code
I suppose you could do the check in the <onDeath> event in your profile.j_schlott wrote:i guess just me
i just want to log from any pk death period, but if you put maxdeaths=1, youll log if you die even once to a mob
Code: Select all
-- check the first debuff that player has. (it has to be the weakness!)
local debuff = RoMScript("GetPlayerBuffLeftTime(GetPlayerBuff(1,'HARMFUL'))");
if(debuff == nil) then debuff = 0; end;
if (debuff == 0 ) then
printf("This was a PK or no xp debt death.");
player:logout();
end
The RoM Bot Online Wiki needs your help!
Re: Small but helpful addition to the code
that looks like it will work perfectly, Thanks!
Re: Small but helpful addition to the code
ok i lied it doesnt work perfectly, its doing the check debuffs on the instant of death, and you dont get the weakness until after you res
so it thinks every death == no debuff == logout
i tried to add a wait to the check but that adds a wait to the auto-rez i think too, so that wouldnt help
i can set auto-rez to false, and use brithrevive/wait10/then the debuff check, but auto-rez false pauses the bot, not sure how to get around that
eh i will just log out on every death, rarely die to mobs so if i do its not a big deal
so it thinks every death == no debuff == logout
i tried to add a wait to the check but that adds a wait to the auto-rez i think too, so that wouldnt help
i can set auto-rez to false, and use brithrevive/wait10/then the debuff check, but auto-rez false pauses the bot, not sure how to get around that
eh i will just log out on every death, rarely die to mobs so if i do its not a big deal
Who is online
Users browsing this forum: No registered users and 1 guest