Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-24-2006, 11:49 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Script calling WTFDIE

Okay, this is pissing me the **** off.
I have a function in a class, 'GetInventoryVar(item,var)'
It returns the variable for an item. If I do 'GetInventoryVar("Short Sword","quantity")' it returns the number of Short Swords I have.
I originally had it planned so that if the item it's trying to get doesn't exist in the player's attributes, it sends an error to the console.
However, I made a spell identification system. Spells being with a '$.'
It was spamming the error, because the spell isn't an item.

The problem is that none of my scripts call the function on a .05 second timeout. On top of that, I put a check in to make sure it's not trying to get a spell, commented out the echo, added another echo, but it didn't do **** all. It's still echoing the same thing, even though the command is commented out.
The function doesn't exist anywhere else.

WTF is wrong?
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 11:40 PM.


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