Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-18-2004, 04:31 PM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is a jewel in the roughMysticalDragon is a jewel in the rough
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
Quote:
Originally Posted by Googi
So, I'm still having problems with clientside.

NPC Code:

//#CLIENTSIDE

if (created) {
this.var=1;
}
if (playertouchsme) {
if (this.var==1) {
if (client.hasflag) {
disabledefmovement;
}
}
}



As you can guess, it doesn't work. I can't seem to figure out why though, but I would guess it has something to do with the this.var.
Sir your wrong.client.hasflag is not beeing executed.Alls your script says is when this.var,1 is set and client.hasflag it will disabledefmovement.i dont see setstring client.hasflag,; or set client.hasflag;
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote
  #2  
Old 08-18-2004, 04:51 PM
Xecutor Xecutor is offline
Former UN Manager
Join Date: Apr 2004
Posts: 117
Xecutor is on a distinguished road
Quote:
Originally Posted by MysticalDragon
Sir your wrong.client.hasflag is not beeing executed.Alls your script says is when this.var,1 is set and client.hasflag it will disabledefmovement.i dont see setstring client.hasflag,; or set client.hasflag;
That is not his entire script.
Reply With Quote
  #3  
Old 08-18-2004, 06:04 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by MysticalDragon
Sir your wrong.client.hasflag is not beeing executed.Alls your script says is when this.var,1 is set and client.hasflag it will disabledefmovement.i dont see setstring client.hasflag,; or set client.hasflag;
And that flag is not set by using the command setstring as you cited too, otherwise Googi would have to check this way:

NPC Code:

if(strequals(#s(client.string),content)){
}

__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #4  
Old 08-18-2004, 07:03 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Something is enabledefmovement;-ing in the background.

Quote:
Originally Posted by MysticalDragon
Sir your wrong.client.hasflag is not beeing executed.Alls your script says is when this.var,1 is set and client.hasflag it will disabledefmovement.i dont see setstring client.hasflag,; or set client.hasflag;
... whatever happened to not posting unless you understand the problem?
Quote:
Originally Posted by Googi
It does have setshape. Also, I know that client.hasflag is set because serverside actions that require client.hasflag to be set are being executed.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
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 06:57 PM.


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