Back Reply to topic
Skeksix 
(started thread)
Blue-Ribbon Chicken 
Topics: 4
Posts: 10
Playing:  AOC
Ingame:  Skeksix
Years registered: * * * * * * * * * * * * * * * * *
Posted: Post 11:24 Sun - Jun 22, 2008

Got it all running and it works good.

Question is how to disable the join and log off information? It is nice but guild leader says it makes too much spam.
Reply with quote


Chaly 
Offizier · Webmaster 
Topics: 404
Posts: 2107
Location: Bad Honnef
Playing:  Guildwars2 (Drakkar See)
Ingame:  Chaly Flavour
Years registered: * * * * * * * * * * * * * * * * * * * * * *
Posted: Post 11:30 Sun - Jun 22, 2008

there is a plugin in plugins/buddy/guildbuddies
in line 28 you'll find send_public_channel_message($myguild,colortext($msg));
comment this line out: #send_public_channel_message($myguild,colortext($msg));
and you should be fine
Reply with quote



_________________

Chalys Gimpnesstheory (2003) Die Theorie der expotentiellen Bullshits den Gimps bei gleichbleibendem Anteil produzieren.
Skeksix 
(started thread)
Blue-Ribbon Chicken 
Topics: 4
Posts: 10
Playing:  AOC
Ingame:  Skeksix
Years registered: * * * * * * * * * * * * * * * * *
Posted: Post 11:34 Sun - Jun 22, 2008

Thought so, thank you very much. Reply with quote


weipa 
Guest 
Topics: 4
 
 
 
Posted: Post 12:05 Sun - Jun 22, 2008

which webserver must chose at php install? or any other extramodules? Reply with quote


Skeksix 
(started thread)
Blue-Ribbon Chicken 
Topics: 4
Posts: 10
Playing:  AOC
Ingame:  Skeksix
Years registered: * * * * * * * * * * * * * * * * *
Posted: Post 12:56 Sun - Jun 22, 2008

Ok I have been editing away trying to customise it to meet guild requirements but I have hit a bit of a problem.

The problem is with ...\plugins\guild\guildbuddies\index.php
I want to change the "twink" bits to say Alt(s) but I am also trying to force it to reply via tell only. I edit each of the sections to read;
Code:
send_private_tell($user,$msg)

When testing I get no output from any command. I have also removed "colortext" from lines like this;
Code:
$msg=colortext(":: $sender :: ".$altchar." is the alt of ".$guildmains[$altchar]."! ::");

but once again no command seemed to respond.
Surely if I remove the word =colortext the end message line will tell me what is exactly left in the $msg.
Reply with quote


Chaly 
Offizier · Webmaster 
Topics: 404
Posts: 2107
Location: Bad Honnef
Playing:  Guildwars2 (Drakkar See)
Ingame:  Chaly Flavour
Years registered: * * * * * * * * * * * * * * * * * * * * * *
Posted: Post 02:18 Sun - Jun 22, 2008

ok.. i'm not sure if I get it..:
1) you want to make the bot react on tell-messages instead of guild-messages?
move the whole directory "plugins/guild/guildbuddies" to "plugins/tell/guildbuddies" and the script will only trigger when the bot gets a tell
2) if you want to let the bot answer using tell-messages
you're right using send_private_tell($sender,$msg). inside the tell-plugin directory you can always access a variable $sender.

there is a demo in plugins/tell/say/index.php
Reply with quote



_________________

Chalys Gimpnesstheory (2003) Die Theorie der expotentiellen Bullshits den Gimps bei gleichbleibendem Anteil produzieren.
Angeline 
Guest 
Topics: 404
 
 
 
Posted: Post 04:43 Sun - Jun 22, 2008

How can i make the bot reply on guild commands as private tells.?

tried change it to send_private_tell($sender,Colortext$msg): but that crashed the bot.. i guess cause u dont got access to sender in guild chat?

got a hint how to do it?

Angeline.
Reply with quote


Chaly 
Offizier · Webmaster 
Topics: 404
Posts: 2107
Location: Bad Honnef
Playing:  Guildwars2 (Drakkar See)
Ingame:  Chaly Flavour
Years registered: * * * * * * * * * * * * * * * * * * * * * *
Posted: Post 04:54 Sun - Jun 22, 2008

Angeline wrote:
tried change it to send_private_tell($sender,Colortext$msg): but that crashed the bot..

if this is a copy+paste of what you wrote i guess the bot complained about an unknown function "Colortext" in line xy? If so change it to "colortext" and you should be fine, php is case-sensitive with variables and functions
edit - example:
Code:
send_private_tell($sender,colortext($msg));
Reply with quote



_________________

Chalys Gimpnesstheory (2003) Die Theorie der expotentiellen Bullshits den Gimps bei gleichbleibendem Anteil produzieren.
Guest 
 
Topics: 404
 
 
 
Posted: Post 05:06 Sun - Jun 22, 2008

actually Colortext worked, it was just some other random typo i had managed to overlook. but i hit another problem though..

I made it so !online works in tells.. but i want to block it so only Members of the guild can see who is online, and not our KOS guilds who want to hunt us down...


is there an easy way to make a loop to check if the sender is in guild?


btw thanks for really fast answer lachen

Angeline
Reply with quote


Chaly 
Offizier · Webmaster 
Topics: 404
Posts: 2107
Location: Bad Honnef
Playing:  Guildwars2 (Drakkar See)
Ingame:  Chaly Flavour
Years registered: * * * * * * * * * * * * * * * * * * * * * *
Posted: Post 05:12 Sun - Jun 22, 2008

Anonymous wrote:
actually Colortext worked, it was just some other random typo i had managed to overlook. but i hit another problem though..

I made it so !online works in tells.. but i want to block it so only Members of the guild can see who is online, and not our KOS guilds who want to hunt us down...


is there an easy way to make a loop to check if the sender is in guild?


btw thanks for really fast answer lachen

Angeline


add this at the top of your index.php

Code:
global $guildmates;
if ($guildmates[$sender]) {
   /* your reply-code here */
} else {
   /* maybe you want to reply a "forbidden" to no-guildmates? */
}

untested code btw lachen
Reply with quote



_________________

Chalys Gimpnesstheory (2003) Die Theorie der expotentiellen Bullshits den Gimps bei gleichbleibendem Anteil produzieren.
Guest 
 
Topics: 404
 
 
 
Posted: Post 05:30 Sun - Jun 22, 2008

ill try it out thank you lachen Reply with quote


Back Reply to topic