Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.