Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Can... (https://forums.graalonline.com/forums/showthread.php?t=22696)

Dustey 02-01-2002 07:52 AM

Can...
 
how do save[] vars work? can they be used online?:confused:

Dustey 02-01-2002 08:03 AM

i dont know i never actually ment to put can but sorry if i offended your forum:(

Dustey 02-01-2002 08:14 AM

no so i can do like
IF (created) {
save[YES]=1;
}

konidias 02-01-2002 08:55 AM

Save variables are meant to store values in npcs.. that can be read online and clientside. If you have seen the new furniture in the playerhouses (newer area) They can be moved around, and the save variables store their values.

TDO2000 02-01-2002 06:44 PM

Or if u want some vars on Non P2P servers saved for everyone in the level without the use of server.-vars you can use save-vars for this ^_^

lordhelmut 02-01-2002 06:57 PM

I tried to use them to make a gate that could only be opened and closed by a certain guild but it was only shown locally to whoever opened and closed it =/

joseyisleet 02-01-2002 08:56 PM

instead of using "show;" and "hide;" use "showlocal" and "hidelocal;"

Gohan43331 02-01-2002 11:33 PM

Quote:

Originally posted by joseyisleet
instead of using "show;" and "hide;" use "showlocal" and "hidelocal;"
This doesn't quite work when changing images. EX:
gate1.png is closed gate gate2.png is open gate...
he want's to open the gate (setimg gate2.png) but not hide it (if i'm not mistaken :P

Also, you could have 2 npcs where one(open gate) is below the other one(closed gate) and when the player touchs the gate and has x flag set, it hides the first one(closed gate) and the open gate is there. (i ramble a lot, so if i am totally annoying, please ignore me :P)

Gohan

TDK_RC6 02-02-2002 04:42 AM

you could use dontblock and drawunderplayer

that is a simple way to do it

TDO2000 02-02-2002 04:57 AM

u could also use setshape ^_^

TDK_RC6 02-02-2002 05:11 AM

do you mean setshape2??

Dustey 02-02-2002 06:05 AM

thx all, this really helped:D


All times are GMT +2. The time now is 12:06 PM.

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