Hello! I am trying to create a real simple public function to replace the already complicated quest icon system I made on lexia. Here is what I want to do. I want to create a public function in my npc class named,
icon...
PHP Code:
public function QuestIcon(icon_text) {
if (playertouchsme) {
say2(icon_text);
}
}
I am getting no success though when joining the class to the npc...
then using the function...
PHP Code:
QuestIcon("My name is bob");
Here is what I am doing...
PHP Code:
function onCreated() {
join("icon");
}
if (playertouchsme) {
icon.QuestIcon("MOO");
}
Anybody got any ideas?