Page 1 of 1

Say after death

Posted: Sun Dec 02, 2012 2:26 pm
by Uniden65
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..

Re: Say after death

Posted: Sun Dec 02, 2012 2:58 pm
by grande
Did you disable auto-resurrect in the profile?

Code: Select all

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

Re: Say after death

Posted: Sun Dec 02, 2012 4:19 pm
by Uniden65
NO ....

My code does not work ....

Re: Say after death

Posted: Sun Dec 02, 2012 7:16 pm
by lisa

Code: Select all

RoMScript('SendChatMessage("I am dead", "ZONE")')

Re: Say after death

Posted: Tue Dec 04, 2012 11:10 am
by lolita
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');")

Re: Say after death

Posted: Tue Dec 04, 2012 7:36 pm
by lisa
actually it works fine, but you need it to be exact.

RoMScript('SendChatMessage("I am dead", "ZONE")')