View Single Post
  #1  
Old 10-15-2011, 01:23 AM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Public Function Issue

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...
PHP Code:
join("icon"
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?
__________________
Reply With Quote