Page 1 of 1
Small but helpful addition to the code
Posted: Fri Oct 09, 2009 6:24 pm
by FelixTheCatetris
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
Posted: Fri Oct 09, 2009 7:57 pm
by d003232
FelixTheCatetris 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.
Since SVN 335 there is a profile option
Code: Select all
<option name="PK_COUNTS_AS_DEATH" value="true" />
If you set it to 'false' PK kills will not be added to your death count limit. So just use a more lower death count limit with
Code: Select all
<option name="MAX_DEATHS" value="10" />
Re: Small but helpful addition to the code
Posted: Sat Oct 10, 2009 10:36 am
by j_schlott
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
Posted: Sat Oct 10, 2009 3:29 pm
by droppen
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
you should make waypoints in witch you dont die to the mobs
Re: Small but helpful addition to the code
Posted: Sat Oct 10, 2009 6:36 pm
by j_schlott
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
Re: Small but helpful addition to the code
Posted: Sat Oct 10, 2009 6:54 pm
by d003232
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
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.
Re: Small but helpful addition to the code
Posted: Sun Oct 11, 2009 11:23 am
by j_schlott
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
Code: Select all
<option name="MOB_COUNTS_AS_DEATH" value="true" />
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
Re: Small but helpful addition to the code
Posted: Sun Oct 11, 2009 2:31 pm
by d003232
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 option
Code: Select all
<option name="MOB_COUNTS_AS_DEATH" value="true" />
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
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'?
Re: Small but helpful addition to the code
Posted: Sun Oct 11, 2009 3:17 pm
by j_schlott
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
Re: Small but helpful addition to the code
Posted: Sun Oct 11, 2009 3:26 pm
by d003232
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
I suppose you could do the check in the <onDeath> event in your profile.
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
Re: Small but helpful addition to the code
Posted: Sun Oct 11, 2009 4:11 pm
by j_schlott
that looks like it will work perfectly, Thanks!
Re: Small but helpful addition to the code
Posted: Fri Nov 06, 2009 12:58 pm
by j_schlott
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