collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Invite to Group | Raid from Logon Message (Logon.php)  (Read 36371 times)

0 Members and 1 Guest are viewing this topic.

Offline dillinger

  • BeBot Apprentice
  • ***
  • Posts: 91
  • Karma: +0/-0
Invite to Group | Raid from Logon Message (Logon.php)
« on: August 14, 2013, 12:02:23 pm »
Sub Guys

I've been looking for a small "tweak" on the Logon.php script.

I want to add a player invite link at the default logon message - so everytime a user logs in, I can klick that link and the player gets a group invitation.

I figured out how to add a link- text at the player logon message itself; therefor I used the chatcmd:/// invite option "Invite to Group" (see screenshot).



As you can see on the next screenshot, I added the $name variable to get the players name
Code: [Select]
$res .= " :: <a href='chatcmd:///invite $name'>Invite to Group</a> ::";


But yeah, thats not gonna work *bleh* - any assistance / ideas on this one, I would realy appreciate that.

Regards, dill

Btw. Your forum is full of Add- Bots such as immirubstug, ZefOffinnaSaw, emernTalaNeal, Faflialbees... etc.
« Last Edit: August 14, 2013, 01:16:24 pm by dillinger »

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Invite to Group | Raid from Logon Message (Logon.php)
« Reply #1 on: August 15, 2013, 11:19:17 pm »
As far as i remember its not possible to link a command directly into chat, must be done via "blob"/popup window with a new link inside
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline dillinger

  • BeBot Apprentice
  • ***
  • Posts: 91
  • Karma: +0/-0
Re: Invite to Group | Raid from Logon Message (Logon.php)
« Reply #2 on: August 19, 2013, 09:29:42 am »
Ah, thanx for that information, I'll check the "makeblob" functionality

Offline Oolwe

  • BeBot User
  • **
  • Posts: 47
  • Karma: +0/-0
Re: Invite to Group | Raid from Logon Message (Logon.php)
« Reply #3 on: August 22, 2013, 12:34:01 pm »
Hello,

I have something that maybe you can find usefull. note that i haven't played AOC for some month and play a little this month, i have maintained the bot online and this fonction works very fine.

All my script are translated in french, so i suggest you to try my two modified script and see if it suit you and modify it to your need.

what it does
Announce to Guild chat:
- Name / Level / Class, reroll if defined and a clickable blob

exemple -> Piwi: Mackenzi (Lvl 80 Dark Templar) Connecté :: Reroll de Aemm :: [link]Détails et Option[/link]

In the Blob "Détails et Option (details and options)" i have added what i think was the most common usefull and used command for user himself but also for other people (like invit to group):

* Player Options *
- invite to group
- add as a friend
- AAMON showall timer

* Quick access to help and scripts *

- Aemotes script
- KOS liste module (show KOS liste)
- AAMON Help
- Alts help
- City module (a personal module to set some ressource needed for city spamed every 2hours in Guild chat) i can provide this one if someone is interested
- Google translation script (doesn't work anymore because of google api)
- Logon help
- Alias Help
- Items Database Help

- Complete Help Bot


quote from the modified whois.php, full whois.php attached at the bottom:
Code: [Select]
if ($this -> bot -> core("settings") -> get("Whois", "ShowOptions") == TRUE)
{
$window .= "<BR><BR>##normal##<center>::: Options du Joueur :::</center>##end##<BR>";
$window .= "<a href='chatcmd:///invite " . $whois['nickname'] . "'>Inviter dans un Group</a>\n";
$window .= $this -> bot -> core("tools") -> chatcmd('addbuddy ' . $whois['nickname'], "Ajouter à la Liste d'Amis", 'cc') . "\n";
$window .= "<a href='chatcmd:///tell <botname> <pre>aamon showall " . $whois['nickname'] . "'>AAMON: Timer de Perk Offline en cours</a>\n";
$window .= "<BR><BR>##normal##<center>::: Accès rapide à l'Aide :::</center>##end##<BR>";
$window .= "<a href='chatcmd:///tell <botname> <pre>aemotes'>Aemotes</a>\n";
$window .= "<a href='chatcmd:///tell <botname> <pre>kos'>KOS Liste</a>\n";
$window .= "<a href='chatcmd:///tell <botname> <pre>help aamon'>AAMON</a>\n";
$window .= "<a href='chatcmd:///tell <botname> <pre>help alts'>Reroll</a>\n";
$window .= "<a href='chatcmd:///tell <botname> <pre>city'>Village de Guilde</a>\n";
$window .= "<a href='chatcmd:///tell <botname> <pre>scripts'>Liste des Scripts</a>\n";
// $window .= "<a href='chatcmd:///tell <botname> <pre>help en2fr'>Google Traduction</a>\n";
$window .= "<a href='chatcmd:///tell <botname> <pre>help logon'>Message de Connection</a>\n";
$window .= "<a href='chatcmd:///tell <botname> <pre>help alias'>Nom de Connection</a>\n";
$window .= "<a href='chatcmd:///tell <botname> <pre>help items'>Rechercher du Stuff</a>\n";
$window .= "<a href='chatcmd:///tell <botname> <pre>help'>Toute l'Aide</a>\n";
//$window .= $this -> bot -> core("tools") -> chatcmd('history ' . $whois['nickname'], 'Character history') . "\n";
}

return ($this -> bot -> core("tools") -> make_blob("Détails et Option", $window));
}

attached:
modified botfolder/modules/logon.php
modified botfolder/core/aoc/whois.php

Hope that help.
Regards
« Last Edit: August 22, 2013, 01:09:50 pm by Oolwe »

Offline dillinger

  • BeBot Apprentice
  • ***
  • Posts: 91
  • Karma: +0/-0
Re: Invite to Group | Raid from Logon Message (Logon.php)
« Reply #4 on: August 26, 2013, 01:17:35 am »
Thanks mate, I will check this out!

Offline Hyenaman

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Invite to Group | Raid from Logon Message (Logon.php)
« Reply #5 on: February 27, 2014, 01:10:43 pm »
Hi trying to get this working but getting an error of:

Fatal error: Cannot redeclare class Whois_Core in C:\Users\bebot\Desktop\backup\
modules\Whois.php on line 558

can someone help?

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 108
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal