Back Reply to topic
Laro 
(started thread)
Blue-Ribbon Chicken 
Topics: 2
Posts: 5
Playing:  Age of Conan
Ingame:  Lonon
Years registered: * * * * * * * * * * * * * * * * *
New Plugin ? Posted: Post 12:28 Thu - Sep 25, 2008

Hi,

first, my english is not so good ^^

i made a little script with receipt vor Alchimist. The Problems are the colors.

I would like to have for each line of Text a different Color. That means for Gesundheit = Red, Ausdauer = green and Mana = blue

I´m not a Hero in PHP and that is my Problem automaticly.

Anybody can Help me pls ?

Greets


Laro
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:34 Thu - Sep 25, 2008

if this doesn't solve your problem you should tell us more about your script first.. maybe you want to paste your code here? by the way: your script is for a ragebot?
you can color your text with a <font> tag:
Code:
hi,
<font color=#F00000>this is red</font>
<font color=#00F000>this is green</font>, this is in normal font color and <font color=#0000F0>this is blue

more colors..
<font color=#F00000>red</font><font color=#00F0F0>cyan</font>
<font color=#80F080>white-green</color>


As you see Age of Conan Chat supports a semi - HTML language.
It doesn't support full html code like <font color="#00F000" style="font-face:Arial">Text</font>
Reply with quote



_________________

Chalys Gimpnesstheory (2003) Die Theorie der expotentiellen Bullshits den Gimps bei gleichbleibendem Anteil produzieren.
Laro 
(started thread)
Blue-Ribbon Chicken 
Topics: 2
Posts: 5
Playing:  Age of Conan
Ingame:  Lonon
Years registered: * * * * * * * * * * * * * * * * *
Posted: Post 02:37 Thu - Sep 25, 2008

Hi,

that is tempo. my Script:

Code:
<?php
if ($pluginwords[1]=="!rezepte")
{
   $msg=makelink(":: Alchemist - 4 h Rezepte ::",colortext("Alchemie - Alle 4 h Rezepte")."\n

- 4h Essen -

4h Essen bleibt auch wenn man Stirbt.
Das letzte Item kommt immer vom Händler.

Level 40:
Kathederblütensteak:
(+157.3 Max. Gesundheit, +63.8 Gesundheitsregeneration)
= Wolfsfleisch + Zitronensaft (1K)
Altbeize Wolfsblut + Safran (1K)

Weisenborkentee Yohimbe-Wurzel + Salbeilösung (1K)

Level 50:
Bärentöter-Eintopf Bärenfleisch + Brandwein (2K)
Wildholzherz Bärenherz + Wermut (2K)
Augurenwein Phalaris + Brandwein (2K)

Level 60:
Blutbeerenwein Kanna-Beere + Wein (2K)
Schwarzzahn-Brandwein Betelnuss + Brandwein (2K)
Traumfieber Alraunensaft + Salbeiöl (8K)

Level 70:
Ambrosisches Gold Goldlotusblatt + Met (8K)
Bitterbrise Meeträubelgras + Bergamottentinktur (8K)
Visionenwein Fliegenpilz + Gerstenwein (8K)

Level 75:
Goldwein des Xuthal Schwarzlotus-Staubgefäß + Weißlotuspollen + Met (8K)
Blutfeuerwein Gemischtes Lotuspulver + Rote Senfsamen + Verdünnter Wein (10K 40Z)
Narzinth Jasminblütenblätter + Schwarzlotuspulver + Lavendeltinktur (9K 15Z)

Level 80:
Ta Neheh-Elixier Ta Neheh-Blatt + Mohnsaft (Flasche) + Weißer Rum (10K 40Z)
Königsbier Ignis-Kraut + Graulotus-Staub + Schwarzes Starkbier (8K)
Blutpurpur-Bier Smaragdlotus-Saft + Blutrotes Carmot + Verdünnter Wein (10K 40Z)
   ");
   send_reply($msg);
}
?>


Öhm du sprichst deutsch ???

Warum red ich dann englisch mit dir Oo

And Yes its Ragebot... what else zwinkern
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:54 Fri - Sep 26, 2008

just add the <font> tags to color your message. replace

Code:
Level 40:
Kathederblütensteak:
(+157.3 Max. Gesundheit, +63.8 Gesundheitsregeneration)
= Wolfsfleisch + Zitronensaft (1K)
Altbeize Wolfsblut + Safran (1K)

with
Code:
Level 40:
<font color=#F00000>Kathederblütensteak:
(+157.3 Max. Gesundheit, +63.8 Gesundheitsregeneration)
= Wolfsfleisch + Zitronensaft (1K)
Altbeize Wolfsblut + Safran (1K)</font>

and the textcolor of lines 2-5 is red.

to get other textcolors replace the #F00000 above with
#00F000 (green) or #0000F0 (blue)

i hope this works for you as i'm on holiday for a week now king grin
Reply with quote



_________________

Chalys Gimpnesstheory (2003) Die Theorie der expotentiellen Bullshits den Gimps bei gleichbleibendem Anteil produzieren.
Laro 
(started thread)
Blue-Ribbon Chicken 
Topics: 2
Posts: 5
Playing:  Age of Conan
Ingame:  Lonon
Years registered: * * * * * * * * * * * * * * * * *
Posted: Post 12:37 Thu - Oct 09, 2008

thx alot Reply with quote


Back Reply to topic