View Single Post
  #33  
Old 10-07-2005, 03:43 PM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Quote:
Originally Posted by TB3
I think there is a sharing violation here :
NPC Code:

setstring this.props,"#s(this.head)","#s(this.body)","#s(thi s.shield)","#s(this.hat)","#s(this.cskin)","#s(thi s.ccoat)","#s(this.csleeves)","#s(this.cshoes)","# s(this.cbelt)";

The properties 'head', 'body', 'shield', 'hat', 'cskin', 'ccoat', 'csleeves', 'cshoes', and 'cbelt' are predefined to the NPC, as in, they exist and can't be modified, somewhat like timevar or timevar2. Adding a 'this' in front of them no longer makes a new variable, as it did in GS1. In GS2, the prefix 'this' only means that the property or variable after it is going to that current NPC or current target, instead of making a brand new var. Yeah, this does get annoying because of some access violation errors that can crash Graal, as I've seen countless times (Like Calani's scripts, for example :P)

Anyway, throw all of your files into a folder and use a program like ArtMoney or something to rename every instance of 'this.head' to 'this.malhead' or something. Or, I could try to learn enough C++ to make a dynamic replacer application thingey.

Quote:
Originally Posted by TB3
3. Also lance was experiencing trouble as well as a few other V4 users in the jump n slide event saying that they could not jump the distance that v2 people could nor could they slide through some of the obstacles. NO clue here =D
Make two of them. One in GS2, one in GS1, and have them for v3/v4<3 and v2, respectively. v4 has a much stricter scripting tolerance, so it can't exactly run everything you throw at it, and v3 is just plain ugly. When v2 is disabled, add a script into your ControlNPC that disables v3 as well, and everyone will need to use v4, so yea, that'll eventually solve the problem.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight

Last edited by ForgottenLegacy; 10-07-2005 at 03:54 PM..