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 05-08-2003, 11:38 PM
Androk Androk is offline
Registered User
Androk's Avatar
Join Date: Apr 2003
Posts: 614
Androk is on a distinguished road
How do I start?

What is the best way for me to start on GScripting? Right now I am able to script some basic stuff, but I keep getting blocked off on simplest things, and on very hard things.

Perfect Example would be this line that nobody who I asked could fix:

NPC Code:

if (timeout) {
showimg 4,hl_menu.png,60,screenheight-20;
changeimgpart 4,60,20,int((200/strtofloat(#s(client.maxhp)))*strtofloat(#s(client .curhp))),20;
changeimgvis 4,4;

timeout = .05;
}



What is strange is that if value of client.curhp is below or above client.maxhp then the bar is very screwd up.

Anyway, what is the best way for me to improove my skills?
__________________

Name: Androk
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 02:51 PM.


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