Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-12-2007, 10:43 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
slashing game is broken :(

this is in a barrel npc in a level. you are sapost to slash the barrel a bunch of times untill the barrel has 0 hits left, then it gives you cash.

the only part that wont work is the give you cash part at the botem.
PHP Code:
//NPC by theHAWKER
function onCreated(){
this.hits 1000;
setTimer(.5);
}
function 
onWa****(){
this.hits -= int(random(1,10));
onHitCheck;
}
function 
onTimeout(){
this.chat = @this.hits" hits left!";
setTimer(.5);
}
//#CLIENTSIDE
function onHitCheck(){
if (
this.hits == || this.hits 0){
player.chat "I got 250$!";
player.rupees += 250;
onCreated();
}
echo(
"HitCheckIsWorking");

__________________
**FLIP OUT**
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:37 AM.


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