Search results

  1. R

    GambleBot!

    Theraze - I already got the main gamble bot script from mredge73, so this is just an additional part for the chat bot to roll regular die for anything that our clan might need. I'll probably put a limit so that they cannot do more than 10 die or something. Anyway, thanks again for all the help.
  2. R

    GambleBot!

    Thanks Winterbay, maybe it would be a good idea to keep a log of the rolls just in case there is a dispute. Though a timestamp may be needed. Oh, that reminds me. Anyone know how if there is a kind of pause() function? EDIT: wait(30); ???
  3. R

    GambleBot!

    Theraze - Thanks again for the help. I tried to change it so that it didn't total the results, did I do it wrong? If so, then how should I code it? What does print() do instead of chat_clan()? It seems like print() would either just display to the CLI or it might try to print it into any chat...
  4. R

    GambleBot!

    Does this work?: void main( string sender , string message ) { string text = message; matcher dice_matcher = create_matcher( "\\b(\\d+)[dD](\\d+)\\b", text); if ( text.contains_text( "roll" ) && dice_matcher.find() ) { int num = dice_matcher.group( 1 ).to_int()...
  5. R

    GambleBot!

    slyz - Thanks for the help. I'm still trying to really learn the RegExes, I can see how they can be very helpful with a bot. I hope I can get other things to work just as well. Theraze - Yep, that's probably true. Most likely no one would use "D"; but who knows, if that wasn't in there some...
  6. R

    GambleBot!

    Well, I have my chatbot up and working just doing random comments back to people. The regular expressions are really neat... however, they are also a bit complicated and I don't have many large blockss of time (10 or more minutes) to try and figure them out. But I'm working on it. Next task...
  7. R

    GambleBot!

    Theraze - Great! I thought I there was a way to chat to the clan chat; but I couldn't remember where I had seen that. Not sure I understood that last part of your post though. The "matcher" you're talking about, I've seen it a few other times; but I don't really understand it. Sounds like...
  8. R

    GambleBot!

    Theraze - Hey, that works for me. That's a great idea. I keep thinking of things to make this chatbot better. And that random function will help with my next project of making it so that he can roll dice. Then again, he can only send personal message right? Or, was it that the chatbot could...
  9. R

    GambleBot!

    Winterbay - Thanks. That makes sense. I'll have to check out the data folder after I try this then. Theraze - Doh! You caught me. Actually I'm glad you caught that because I'll probably just cut / paste this into my script for testing purposes. :D Thank you all for the great help. Now I...
  10. R

    GambleBot!

    Ok, let me see if I can break this apart: void main( string sender , string message ) #Main Function { #Start Main Function print("Incoming message from " +sender+ " saying: "+message,"olive"); #Prints to the CLI "Incoming message from [sender's character name] saying [sender's message]...
  11. R

    GambleBot!

    Ah, thanks Theraze. So could I have something like this inside the main chatbotScript function?: if (sender='jick') { chat_private(sender , "How may I serve you, master?"); } Would that work at all?
  12. R

    GambleBot!

    Is there a manual page or something where I can see how to send messages using the chatbot script then? I wish I could see the scripts here at work; but they don't let us load any kind of files or software onto these computers.
  13. R

    GambleBot!

    Can I then do something like: void main(string sender, string message) { message:="I'm the clan chatbot."; } Save that as mychatbot.ash Go to the CLI in KoL Mafia and type: set chatbotScript = mychatbot.ash And then when anyone messages our clan chatbot it will send that message??? P.S. Sorry...
  14. R

    GambleBot!

    Anyone have a basic shell / snippit of code for when someone pms the clan chat bot and the bot responds?
  15. R

    GambleBot!

    Grotfeng - Yes, I meant logging into a normal browser with a different character (just to test it out). And you're right, I meant for it to be a message that I sent, not a /msg (wasn't thinking when I typed that). Sounds great though. I'd like to get a bot to just do simple clan chat stuff...
  16. R

    GambleBot!

    I'm new to bots and trying to learn how to use them, so pardon my most likely obvious questions. Here is how I envision using this GambleBot script: 1 - Download the five files above and put them all into the desired script folder 2 - Open Mafia and log in with the char I want to be a bot 3 -...
  17. R

    Pickpocket CSS Safe Moxie problem

    Bale, You ROCK! Thanks for the help. I didn't know how to configure my CCS properly until now. I just guessed and it seemed to work for the jellyfish; but now I see how it is supposed to be. Thanks.
  18. R

    Pickpocket CSS Safe Moxie problem

    Bale, Yep, that was my entire CCS. I have one for spectral jellyfish as well which works just fine without the [default]: [ spectral jellyfish ] 1: try to steal an item 3: skill transcendent olfaction 4: attack with weapon If this doesn't make sense, then how do I use a CCS to just use...
  19. R

    Pickpocket CSS Safe Moxie problem

    Quick question, not quite the same thing; but... I can get all of my CCSs to work except for one. Mafia decides to ignore it for some reason. No matter what I put in the script it seems to ignore it. Is it that name? I'm trying to cast olfaction on a particular enemy (War Hippy F.R.O.G.)...
  20. R

    Get Underground! (Digital Underground Potion farming)

    hee (*3), you're absolutely right. I copied choice "2" from the previous script, so I need to change that to 1; but what I'd like to do is have a call to a script from a .txt file and in that file it will run the script x number of times (depending on the day or need). So I wanted to get it...
Back
Top