Say after death

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Uniden65
Posts: 151
Joined: Thu Aug 20, 2009 5:17 pm

Say after death

#1 Post by Uniden65 » Sun Dec 02, 2012 2:26 pm

iam trying to get the bot to say words to SAY after i am dead but it seams the code i took did not work ...could anyone help please


here is what i have

Code: Select all

	<onDeath>		
		-- <skill name="ROGUE_HIDE"      hotkey="VK_F" priority="290" />
		-- Additional Lua code to execute on death
		-- yrest(500000); -- Wait 5 min
	        cprintf(cli.pink, "YOu where killed!!! \n")
		RoMScript('SendChatMessage(SendChatMessage("Some Text", "SAY"\n')')
      		-- RoMScript('SendChatMessage("tell them things here !!...", "SAY", 0, \n')')
                logInfo(pawn.Name,"Was killed by:", true); 
 		yrest(12000)
		RoMScript("AcceptResurrect();");
		yrest(30000); -- for every 1000 millsec equals 1 sec so 6000 = 6 sec
		keyboardPress(key.VK_F);   -- need to setup Hide on key F, for mining
		-- sendMacro("CastSpellByName(\"Hide\");");
		-- pauseOnDeath(); -- Stop the script
		-- player:logout();	-- logout
	</onDeath>
as u can see ive tryed different things ....and i would like it to say it to normal zone SAY not to the player and it would be nice if it saved a log of who killed me ..since mages can stay far away and kill me but the bot will not show it in log why you did the

Code: Select all

beingfollowed
code.. if they stand out side the area..
Last edited by Uniden65 on Sun Dec 02, 2012 4:19 pm, edited 1 time in total.

User avatar
grande
Posts: 261
Joined: Tue Jun 28, 2011 4:46 pm

Re: Say after death

#2 Post by grande » Sun Dec 02, 2012 2:58 pm

Did you disable auto-resurrect in the profile?

Code: Select all

	<option name="RES_AUTOMATIC_AFTER_DEATH" value="false" />

Uniden65
Posts: 151
Joined: Thu Aug 20, 2009 5:17 pm

Re: Say after death

#3 Post by Uniden65 » Sun Dec 02, 2012 4:19 pm

NO ....

My code does not work ....

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

Re: Say after death

#4 Post by lisa » Sun Dec 02, 2012 7:16 pm

Code: Select all

RoMScript('SendChatMessage("I am dead", "ZONE")')
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

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: Say after death

#5 Post by lolita » Tue Dec 04, 2012 11:10 am

lisa wrote:

Code: Select all

RoMScript('SendChatMessage("I am dead", "ZONE")')
i think RomScript('SendChatMessage("something", "SAY")') dont work.
Try this

Code: Select all

sendMacro("SendChatMessage('I am dead', 'SAY');")
Life is a journey, not destination :D

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

Re: Say after death

#6 Post by lisa » Tue Dec 04, 2012 7:36 pm

actually it works fine, but you need it to be exact.

RoMScript('SendChatMessage("I am dead", "ZONE")')
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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 41 guests