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 09-30-2001, 04:16 AM
oscarjf1 oscarjf1 is offline
Registered User
Join Date: Aug 2001
Location: I live in the US
Posts: 107
oscarjf1 is on a distinguished road
Send a message via AIM to oscarjf1
why wont this work?

Has graal just decided to piss me off? I think so. This script used to ALWAYS work! No matter what, it would do what i wanted!
But now, it doesnt.

Script: Status Bar (Blah Blah Blah, saying i cant script a status bar is a waste of our time).

can someone debug this script for me? I can't seem to figure out what is wrong! When you get hurt, it doesnt work!

NPC Code:

// NPC made by War Lord Mpg2
if (playerenters) {
}
if (playertouchsme) {toweapons *Status; hidelocal; setstring client.bar1,warbar1.gif;
setstring client.bar2,warbar2.gif; set client.statson; timeout = .05;
}
//#CLIENTSIDE
if (timeout) {
if (client.statson) {
showimg 1111,#s(client.bar1),screenwidth-242,0; changeimgvis 1111,4;
changeimgvis 2222,4; changeimgvis 1111,4;
changeimgpart 2222,0,0,7*32*playerhearts/playerfullhearts,48;
if (playerhearts=playerfullhearts) {
showimg 2222,#s(client.bar2),screenwidth-242,0; changeimgvis 2222,4;
}
timeout = .05;
}
}
if (weaponfired) {set client.statson; setplayerprop #c,say "statsoff" to turn off;
timeout = .05; showstats 95+128+256+512+1024;
showimg 1111,#s(client.bar1),screenwidth-242,0; changeimgvis 1111,4;
showimg 2222,#s(client.bar2),screenwidth-242,0; changeimgvis 2222,4;
}
if (strequals(#c,statsoff)) {unset client.statson; sleep .2; hideimg 1111; hideimg 2222;
unset client.statson; showstats 95+128+256+512+1024+32;
}
if (playerdies) { showstats 95+128+256+512+1024;
}



Well?
__________________
I speek on behalf of my staff.
~laterz

Lagoonia Staff
-Tiki God Of Power
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 01:52 AM.


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