Necro Class File Discussion

Zeek

Active Member
New Necro class bug

With the recent changes in SVN the latest Necro script does not cast hearts for those that request it.

I took a look at the ISS file and it seems the whole section is missing.

Just letting you know Pygar.

Other than that and the Necro Pet bug I posted in the bugs section the new script seems to work fine. I noticed you wanted feed back on the newer scripts.

Zeek
 

Pygar

EQ2Bot Specialist
I've begun migrating from tell triggers to the chat events. In doing so, I've moved the event portion to eq2bot lib as different classes need to attach to this event differently.

I coded what I thought should work for necro, but I admidetly didn't test it. I'll look into it.
 

Zeek

Active Member
Do you have an example of the new chat events?

I wanted to write a tell and guild chat relay to would relay anything said in tell or guild to one character to a channel that I could see on my main character.

Zeek
 

mycroft

Script Author: MyPrices
Zeek said:
Do you have an example of the new chat events?

I wanted to write a tell and guild chat relay to would relay anything said in tell or guild to one character to a channel that I could see on my main character.

Zeek
I tried that , I couldn't find a way to relay guld chat to a channel , it just won't work , the same as using '/10 hello' in a hotkey won't work whilst in game.

The best I could come up with was a script that sent what was said in guild chat , say and tells to another character either in the same group or in tells.

I just altered tell.iss , the below was set up to put guild chat etc into group chat whilst I was duoing but playing on my non-guild character , anything said by me in the group on my non-guild character was sent into guild chat also.


Code:
;-----------------------------------------------------------------------------------------------
; tell.iss Version 2.0  Updated: 11/08/07
; 
; Description:
; ------------
; Plays a .wav file when a tell is recieved.
; You can change the sound that is played by changeing the last line.
; I have included 2 sound files (Intercom.wav, Phaser.wav)
;    8 - Says                                                       
;    9 - Shouts                                                     
;   15 - Group Chat                                                 
;   16 - Raid Chat                                                 
;   18 - Guild Chat                                                 
;   26 - NPC to Player                                              
;   28 - Tells                                                      
;   32 - OOC                                                        
;   34 - All Custom CHannel Names - Name in Channel Name Variable    
;-----------------------------------------------------------------------------------------------
function main()  
{  
  ;attach the event to an atom
  Event[EQ2_onIncomingChatText]:AttachAtom[EQ2_onIncomingChatText]
  while (1)
  {  
     waitframe  
  }  

} 
;when event is sent out by ISXEQ2 this will get called
atom(script) EQ2_onIncomingChatText(int ChatType, string Message, string Speaker, string ChatTarget, string SpeakerIsNPC, string ChannelName)
{
    switch ${ChatType}
    {
	;make sure this is not your character sending the tell
        if ${Speaker.NotEqual[${Me.Name}]}
        {

            case 8
            	if !${Speaker.Equal[${Me.Name}]}
            	{
	                EQ2Execute /g [Say] ${Speaker} : ${Message}
		}
                break
            case 9
                break
            case 15
            	if !${Speaker.Equal[${Me.Name}]}
            	{
			EQ2Execute /gu ${Message}
		}
                break
            case 16
                break
            case 18
            	if !${Speaker.Equal[${Me.Name}]}
            	{
	                EQ2Execute /g (Guild) ${Speaker} : ${Message}
		}
                break
            case 26 
		break
            case 28
             	if !${Speaker.Equal[${Me.Name}]}
            	{
	                EQ2Execute /g [Tell] ${Speaker} : ${Message}
		}
               break
            case 32
                break
            case default
                break
        }
    }
}

function PlaySound(string Filename)  
{  
   System:APICall[${System.GetProcAddress[WinMM.dll,PlaySound].Hex},Filename.String,0,"Math.Dec[22001]"] 
}
;Always clean up atoms at the end of script
function atexit()
{
   Event[EQ2_onIncomingChatText]:DetachAtom[EQ2_onIncomingChatText]
}
 

Pygar

EQ2Bot Specialist
I have an alternate version of chatty that could talk on chat channels. I could adapt it to relay guild to a private channel if need be. The irc scripts already relay guild chat to irc.
 

Zeek

Active Member
Pygar said:
I have an alternate version of chatty that could talk on chat channels. I could adapt it to relay guild to a private channel if need be. The irc scripts already relay guild chat to irc.

This is exactly what I was looking for. For guild chat and tells to that character.

Zeek
 

chemical77

Active Member
I'm working on a bot controller/PiP script that sends session chat and stats to a command interface where each character has their own emulated chat console on your main toon (in their own tab).

The PiP'd windows show a chat indicator with the type of chat received so you know which character received chat and can then select the correct character tab in the controller and see what was said and respond if needed, etc., all from your main toon and without switching to the PiP. Tells fire an audible alert as well as the PiP indicator.

It will also do on-the-fly command assignment/reassignment for 32 buttons per character tab using a sort of mini-command language, and control EQ2Bot. So if you want a bot to cast SoW on your main toon's target, you use your warden's discrete chat interface to assign that command to any of the buttons in real time. The button label you gave it appears and is immediately useable.

You can also log toons in while the interface is running and a new tab on the controller will pop up with all the same info and any previously configured button assignments. auto-PiP'd, of course.

This way you can have your bots interact with peeps instantly without fumbling around for hotkeys and such.

With the continued help of those in #isxeq2, I should have it up in a few days if you think it might do what you need. Just gotta work out some of the small remaining issues.
 

ownagejoo

Well-Known Member
look at eq2botcommander.iss, and eq2botcommander.xml for some nice stuff that will help you on this.

OAJ
 
Top Bottom