Kill player after unStick and load return WP

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Xmen
Posts: 45
Joined: Thu Jan 19, 2012 10:18 am

Kill player after unStick and load return WP

#1 Post by Xmen » Thu Jan 19, 2012 10:52 am

Hi @ ll
my english is very bad :( so I have translated the following text with google

I have a DoD WP for a groupe, the problem that is occurring as the Manchester Group members would disconnect after X unsticki (which is not bad) but since my group manager is always waiting for everything else

Now I have edited the file "bot.lua" and my profile, now that he no longer disconnects but too many of the players has unsticki just killed.

I just wanted to share with you (can even be useful)


=======================
Bot.lua

find

Code: Select all

						if( type(settings.profile.events.onUnstickFailure) == "function" ) and
							player.Unstick_counter == settings.profile.options.MAX_UNSTICK_TRIALS + 1 then
							pcall(settings.profile.events.onUnstickFailure);

						elseif( settings.profile.options.LOGOUT_WHEN_STUCK ) then
							if settings.profile.options.CLOSE_WHEN_STUCK == false then
								player:logout() -- doesn't close client
							else
								player:logout(nil,true); -- closes client
							end
						else
replace with

Code: Select all

						if( type(settings.profile.events.onUnstickFailure) == "function" ) and
							player.Unstick_counter == settings.profile.options.MAX_UNSTICK_TRIALS + 1 then
							pcall(settings.profile.events.onUnstickFailure);

						elseif( settings.profile.options.LOGOUT_WHEN_STUCK ) then
							if settings.profile.options.CLOSE_WHEN_STUCK == false and settings.profile.options.KILL_WHEN_STUCK == false then
								player:logout() -- doesn't close client
							elseif settings.profile.options.KILL_WHEN_STUCK == true then
								local eggslot = settings.profile.options.EGGPET_ASSIST_SLOT
								cprintf(cli.yellow, "Save Pet slot: %s\n.", eggslot);
								sendMacro('ReturnPet(eggslot)')
								yrest(1000)
								sendMacro('SetCameraPosition(0,0,100000)')
                                                                cprintf(cli.red, "Kill Player");
								yrest(10000);
								player.Unstick_counter = 0;	
							else
								player:logout(nil,true); -- closes client
							end
						else
end bot.lua

=======================

in you profile

add

Code: Select all

<option name="KILL_WHEN_STUCK"		value="false" />
to use the option pls set follow in you profile

Code: Select all

		<option name="LOGOUT_WHEN_STUCK"	value="true" />
		<option name="KILL_WHEN_STUCK"		value="true" />
		<option name="CLOSE_WHEN_STUCK"	value="false" />
and now someone can still go and improve it: D

Have a nice day
--[[Hi @ll my english is very bad so I have translated the following text with google]]--

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Kill player after unStick and load return WP

#2 Post by lisa » Thu Jan 19, 2012 11:13 am

I actually made it easier for people to do things like this, I added in usage of 3 functions you can create yourself that will be performed when bot reaches 3,6 and 9 unstick tries

Code: Select all

unStick3()
unStick6()
unStick9()
So you could put in your WP onload

Code: Select all

function unStick9()
                        local eggslot = settings.profile.options.EGGPET_ASSIST_SLOT
                        cprintf(cli.yellow, "Save Pet slot: %s\n.", eggslot);
                        sendMacro('ReturnPet(eggslot)')
                        yrest(1000)
                        sendMacro('SetCameraPosition(0,0,100000)')
                                                                cprintf(cli.red, "Kill Player");
                        yrest(10000);
                        player.Unstick_counter = 0;

end
When bot reaches 9 unstick tries it will then perform that code.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Xmen
Posts: 45
Joined: Thu Jan 19, 2012 10:18 am

Re: Kill player after unStick and load return WP

#3 Post by Xmen » Thu Jan 19, 2012 12:21 pm

ahh I did not know, works beautifully and is much smaller

PS:I'm still a beginner :lol:
--[[Hi @ll my english is very bad so I have translated the following text with google]]--

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Kill player after unStick and load return WP

#4 Post by lisa » Thu Jan 19, 2012 7:40 pm

I think you did really well with what you did do and 10 months ago it would have been necessary to do it the way you did.

I just like to plan ahead =)
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

jock52
Posts: 10
Joined: Wed May 16, 2012 2:18 am

Re: Kill player after unStick and load return WP

#5 Post by jock52 » Thu May 24, 2012 7:34 pm

Does this still work? I am trying to figure out exactly what I need to do.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Kill player after unStick and load return WP

#6 Post by lisa » Thu May 24, 2012 7:54 pm

jock52 wrote:Does this still work? I am trying to figure out exactly what I need to do.
The unstick functionality of course still works, what you do with it is up to you.

The code I posted would go in your WP onload section, you can also add in a loadpaths to load a specific WP file after killing the character.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

vo2male
Posts: 122
Joined: Mon Aug 27, 2012 6:41 am

Re: Kill player after unStick and load return WP

#7 Post by vo2male » Tue Sep 25, 2012 6:19 pm

I have a little problem with this. It works fine but after some deahts its not functioning as it would do. What happen to my character is when kill player is applied my player died and will triger the resurrect macro. Then the loading screen will appear. After that, i'll just see my character lying dead on the revive circle ground but is actually alive. Infact he is still using buffs and you could see the buffs will be applied. However, when he will start to go to the waypoint he cannot move that's why he will call unstick again until the 9th time and will run kill player again. And there comes another problem as the loading screen will not appear after player kill..

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Kill player after unStick and load return WP

#8 Post by rock5 » Wed Sep 26, 2012 12:48 am

I would think there is a limited number of times you can do this, because of the known game memory leak issues. Just do the usual stuff. Run the game in minimum video settings, zoom in all the way so it doesn't have to draw the character and maybe try cleanmem. That should help a bit.
  • 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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

C3PO
Posts: 109
Joined: Sun Jul 10, 2011 2:45 pm

Re: Kill player after unStick and load return WP

#9 Post by C3PO » Mon Jul 15, 2013 9:38 pm

Hello,

I used to use this function but now it doesn't seem to work anymore (maybe since the last patch). Could someone confirm that, are better post a new way to kill the char?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Kill player after unStick and load return WP

#10 Post by rock5 » Tue Jul 16, 2013 2:20 am

A short while back there was a discuscion on using the nofall hack to die. I think I even posted some code. Do a search for 'nofall'.
  • 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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

C3PO
Posts: 109
Joined: Sun Jul 10, 2011 2:45 pm

Re: Kill player after unStick and load return WP

#11 Post by C3PO » Tue Jul 16, 2013 5:01 am

I tried that already, but my char didn't die...

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Kill player after unStick and load return WP

#12 Post by rock5 » Tue Jul 16, 2013 5:31 am

Maybe you're on a server where they didn't implement that. It did work for me. You just had to be high enough and wait a bit.

I have nothing else.
  • 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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests