I wanted to add this to my current "welcome noob" script.
I would attach it, but, because it seems to be currently broken, I figure it's best to post the code directly.
Here's the idea I had:
This code would be inserted shortly after the opening of the letter/goodies sack.
Right now, when I try to run it as a separate file, I get
As seems to be the norm with all of my posts, I will ask: Is this a bug, or did I screw something up?
Thanks in advance guys!
Edited to include HCO tat check for additional e-peen and sad default class tattoo fallback in case I hadn't gotten the HCO/HC class tats yet (and didn't want to use my previous class tat)... though I might change my own version to simply default to the HC 11+... once I actually GET the 11+ tat
I would attach it, but, because it seems to be currently broken, I figure it's best to post the code directly.
Here's the idea I had:
Code:
string tattoo_text = visit_url("account_tattoos.php");
if(my_class() == $class[Accordion Thief]) {
if(contains_text(tattoo_text, "class6hco.gif")) {
visit_url("account_tattoos.php?pwd&newsigil=class6hco");
}
else if(contains_text(tattoo_text, "class6hc.gif")) {
visit_url("account_tattoos.php?pwd&newsigil=class6hc");
}
else {
visit_url("account_tattoos.php?pwd&newsigil=class6");
}
}
if(my_class() == $class[Disco Bandit]) {
if(contains_text(tattoo_text, "class5hco.gif")) {
visit_url("account_tattoos.php?pwd&newsigil=class5hco");
}
else if(contains_text(tattoo_text, "class5hc.gif")) {
visit_url("account_tattoos.php?pwd&newsigil=class5hc");
}
else {
visit_url("account_tattoos.php?pwd&newsigil=class5");
}
}
if(my_class() == $class[Pastamancer]) {
if(contains_text(tattoo_text, "class3hco.gif")) {
visit_url("account_tattoos.php?pwd&newsigil=class3hco");
}
else if(contains_text(tattoo_text, "class3hc.gif")) {
visit_url("account_tattoos.php?pwd&newsigil=class3hc");
}
else {
visit_url("account_tattoos.php?pwd&newsigil=class3");
}
}
if(my_class() == $class[Sauceror]) {
if(contains_text(tattoo_text, "class4hco.gif")) {
visit_url("account_tattoos.php?pwd&newsigil=class4hco");
}
else if(contains_text(tattoo_text, "class4hc.gif")) {
visit_url("account_tattoos.php?pwd&newsigil=class4hc");
}
else {
visit_url("account_tattoos.php?pwd&newsigil=class4");
}
}
if(my_class() == $class[Seal Clubber]) {
if(contains_text(tattoo_text, "class1hco.gif")) {
visit_url("account_tattoos.php?pwd&newsigil=class1hco");
}
else if(contains_text(tattoo_text, "class1hc.gif")) {
visit_url("account_tattoos.php?pwd&newsigil=class1hc");
}
else {
visit_url("account_tattoos.php?pwd&newsigil=class1");
}
}
if(my_class() == $class[Turtle Tamer]) {
if(contains_text(tattoo_text, "class2hco.gif")) {
visit_url("account_tattoos.php?pwd&newsigil=class2hco");
}
else if(contains_text(tattoo_text, "class2hc.gif")) {
visit_url("account_tattoos.php?pwd&newsigil=class2hc");
}
else {
visit_url("account_tattoos.php?pwd&newsigil=class2");
}
}
This code would be inserted shortly after the opening of the letter/goodies sack.
Right now, when I try to run it as a separate file, I get
No available namespace with function
As seems to be the norm with all of my posts, I will ask: Is this a bug, or did I screw something up?

Thanks in advance guys!
Edited to include HCO tat check for additional e-peen and sad default class tattoo fallback in case I hadn't gotten the HCO/HC class tats yet (and didn't want to use my previous class tat)... though I might change my own version to simply default to the HC 11+... once I actually GET the 11+ tat
