Say after death
Posted: 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
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.. if they stand out side the area..
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>
Code: Select all
beingfollowed