View Single Post
  #1  
Old 06-03-2007, 06:11 AM
MrAnonymous_P2P MrAnonymous_P2P is offline
Retired Oldbie
MrAnonymous_P2P's Avatar
Join Date: Oct 2006
Location: Cambodia
Posts: 722
MrAnonymous_P2P is an unknown quantity at this point
Simple, yet Confusing problem.

I cannot get this script to work. It is so simple yet it will not work.
The script is a baddy for a quest and as you can see it asks you a question, the player is supposed to respond with an answer.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
showcharacter();
  
head       "head47.png";
  
colors0] = "orange";
  
colors1] = "black";
  
colors2] = "darkred";
  
colors3] = "white";
  
colors4] = "black";
  
shield     "no-shield.png";
  
body       "body18.png";
  
dir        2;
  
setcharani("niromia2_idle",NULL);
  
  
showtext1this.x+1.5this.y-.5"Kartika""cb""Click me");
}

function 
onMouseDown(button)
{
  if (
button == "left" || button == "right") {
    if (
mousex in 2326| && mousey in 4446|) {
      
say2("If you can answer one question...
   I will aid you in your quest.

   What are the 2 nations on Niromia?"
);
    }
  }
}

function 
onPlayerChats() {
  if (
player.chat == "test") {
    
findimg(1).text "I will now give you this weapon.";
  }

Anybody know what the problem is?
Reply With Quote