Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 04-25-2006, 12:02 AM
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
Zzz.. Someone screwed with a system. It's not spamming anymore, but it's still doing the echo, even though I removed it from the script. :/
Reply With Quote
  #3  
Old 04-25-2006, 03:30 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
do you have anything like sendtorc or anything of the such?
__________________
Deep into the Darkness peering...
Reply With Quote
  #4  
Old 04-25-2006, 02:28 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
scriptlogfunctions=call sendtonc

put that in your serveroptions and check the log files for where it's coming from.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #5  
Old 04-25-2006, 07:41 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
It's coming from the class, but it's not in the class.
Reply With Quote
  #6  
Old 04-26-2006, 04:34 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Yen
It's coming from the class, but it's not in the class.
It's in the class in an alternate dimension D:

Did you try restarting you NPC Server or GServer?

Also, take a look at the text file of the class that's saved on the FTP, in scripts/* or something like that.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
Reply


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 09:05 AM.


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