Small but helpful addition to the code

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
FelixTheCatetris
Posts: 9
Joined: Thu Sep 10, 2009 7:17 pm

Small but helpful addition to the code

#1 Post by FelixTheCatetris » Fri Oct 09, 2009 6:24 pm

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.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Small but helpful addition to the code

#2 Post by d003232 » Fri Oct 09, 2009 7:57 pm

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" />
The RoM Bot Online Wiki needs your help!

j_schlott
Posts: 119
Joined: Tue Aug 18, 2009 11:42 pm

Re: Small but helpful addition to the code

#3 Post by j_schlott » Sat Oct 10, 2009 10:36 am

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

User avatar
droppen
Posts: 179
Joined: Mon Aug 03, 2009 10:32 pm

Re: Small but helpful addition to the code

#4 Post by droppen » Sat Oct 10, 2009 3:29 pm

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

j_schlott
Posts: 119
Joined: Tue Aug 18, 2009 11:42 pm

Re: Small but helpful addition to the code

#5 Post by j_schlott » Sat Oct 10, 2009 6:36 pm

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

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Small but helpful addition to the code

#6 Post by d003232 » Sat Oct 10, 2009 6:54 pm

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.
The RoM Bot Online Wiki needs your help!

j_schlott
Posts: 119
Joined: Tue Aug 18, 2009 11:42 pm

Re: Small but helpful addition to the code

#7 Post by j_schlott » Sun Oct 11, 2009 11:23 am

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

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Small but helpful addition to the code

#8 Post by d003232 » Sun Oct 11, 2009 2:31 pm

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'?
The RoM Bot Online Wiki needs your help!

j_schlott
Posts: 119
Joined: Tue Aug 18, 2009 11:42 pm

Re: Small but helpful addition to the code

#9 Post by j_schlott » Sun Oct 11, 2009 3:17 pm

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

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Small but helpful addition to the code

#10 Post by d003232 » Sun Oct 11, 2009 3:26 pm

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
The RoM Bot Online Wiki needs your help!

j_schlott
Posts: 119
Joined: Tue Aug 18, 2009 11:42 pm

Re: Small but helpful addition to the code

#11 Post by j_schlott » Sun Oct 11, 2009 4:11 pm

that looks like it will work perfectly, Thanks!

j_schlott
Posts: 119
Joined: Tue Aug 18, 2009 11:42 pm

Re: Small but helpful addition to the code

#12 Post by j_schlott » Fri Nov 06, 2009 12:58 pm

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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest