Back Reply to topic
Guest 
 
 
 
 
Posted: Post 04:15 Mon - Jun 23, 2008

I there, i have also a thing:

i want to show some informations to my guild, for example guild kos, crafting levels, etc

atm i do it like this: ( in the humer config )

Code:
if ($pluginwords[1]=="!friends") {
   global $myguild;
   $msg="Gildfriends are:<br />
    - abc
    - xyz
    - asd";
   send_public_channel_message($myguild,colortext($msg));
}



But i want to do it with this "Scrolls" that you also use to show the TS Information, The online Guild Members, how can i do this?

thanks!

byebye
Reply with quote


Chaly 
Offizier · Webmaster 
Topics: 404
Posts: 2107
Location: Bad Honnef
Playing:  Guildwars2 (Drakkar See)
Ingame:  Chaly Flavour
Years registered: * * * * * * * * * * * * * * * * * * * * * *
Posted: Post 06:28 Mon - Jun 23, 2008

hi, that isn't that hard.
let's say you have some text in a string like this:
Code:
$popupcontent="Hi there\n
my guildfriends are \n
<font color=#F0F0F0>me</font>\n
others\n
\n
and more...";

You see i used the 'normal' linebreak \n for new lines. This should become the content of our window. Now the clickable text (that text that is orange, underlined and in the normal chat-window):
Code:
$linkname="click me";

easy. now the output:
Code:
$msg=makelink($linkname,$popupcontent);

you can now send this to the guildchannel:
Code:
send_guild_channel_message($msg);
Reply with quote



_________________

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

Is there any way to load PoPups based on a Folder with txt files?

That would be great.

I can edit PhP just fine but creating it i am not fit enough.
Reply with quote


Chaly 
Offizier · Webmaster 
Topics: 404
Posts: 2107
Location: Bad Honnef
Playing:  Guildwars2 (Drakkar See)
Ingame:  Chaly Flavour
Years registered: * * * * * * * * * * * * * * * * * * * * * *
Posted: Post 09:34 Mon - Jun 23, 2008

i guess kelmino also asked for it (here). he called it "linking of scripts"
Chaly wrote:
Linking of scripts
Let me split it into two ideas:
1) a plugin called !info, !about, !news called by a parameter would open a pseudo (aoc understands 3-5 html tags) html-file in the info-plugin directory and parse it using a clickable popup window. adding "scripts" should be easy with 2 examples and a small readme file. calling !info without an argument pops a list with all "scripts". maybe the bot could send this list on a login of a guildmate..

actually i'm working on the announced 0.7 modifications, i don't know if this plugin will be released with 0.7. maybe someone beat me to the punch and releases an !info here before i'm done with it, but it's queued
Reply with quote



_________________

Chalys Gimpnesstheory (2003) Die Theorie der expotentiellen Bullshits den Gimps bei gleichbleibendem Anteil produzieren.
Back Reply to topic