Graal Forums

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

Legondary_MyTH 07-20-2002 06:17 AM

Update level
 
IS they are way you could update a lvl without having RC?
I have a house with doors that move and stuff but you can touch them more than 1 and they move farther well theres a script to bring them back but yu can still move it and stop it so i need a script to refesh them level if people abuse it

Torankusu 07-20-2002 06:57 AM

with an NPCserver, yes.

(and possibly without.)

Legondary_MyTH 07-20-2002 07:12 AM

umm ok
 
well this house will be on a server with a NPC Server but either way would be great! =D

Milkdude99 07-20-2002 07:24 AM

Re: umm ok
 
Quote:

Originally posted by Legondary_MyTH
well this house will be on a server with a NPC Server but either way would be great! =D
All you need is the rights set in the account to update levels and the account on the serveroptions as Staff , then they can update levels but without RC they can only update the level they are in.;)
Having the NPC Server is not nessary , this will work on all servers.

Legondary_MyTH 07-20-2002 08:43 AM

but
 
I doubt they will give me that right it would be easier to just script it

Python523 07-20-2002 08:54 AM

Re: Re: umm ok
 
Quote:

Originally posted by Milkdude99
All you need is the rights set in the account to update levels and the account on the serveroptions as Staff , then they can update levels but without RC they can only update the level they are in.;)
Having the NPC Server is not nessary , this will work on all servers.

I think he means someone who doesnt have an RC account

just use this
sendtorc /updatelevel <levelname>;

Legondary_MyTH 07-20-2002 09:02 AM

umm
 
that for NPCserver or what?

Python523 07-20-2002 09:10 AM

yes, its a serverside command

Aknts 07-20-2002 09:11 AM

The only logical reason that an "update level" script command would be needed, is for cheaters that want to insert an npc into a level or some crap. If your script is messed up, you can fix it using other methods. You don't need to update the level every time. That's about as inefficient as an npc could get.

Legondary_MyTH 07-20-2002 09:12 AM

umm
 
I want it to be like my account only can do this

Torankusu 07-20-2002 09:18 AM

Re: umm
 
Quote:

Originally posted by Legondary_MyTH
I want it to be like my account only can do this
if (playerchats &&strequals(#a,Legondary_MyTH) && strequals(#c,update)){
sendtorc /updatelevel <the level>;
sendtorc Legondary_MyTH updated <levelname>;
}

Legondary_MyTH 07-20-2002 09:34 AM

ok
 
i cant test it so are you sure it will work??

Shiftk03- 07-20-2002 09:49 AM

First off: You didn't need to post really, since this is for a server I'm sure you could have tried asking one of the NATs there for help, If none were ever on..then I'd understand.
Also, you shouldn't script something if you don't know the effect it will have and if you don't know how to script it, don't try.
I sound rude but you'll find everything I just said in the rules posted by everyone's favorite script monkey, Kaimetsu.

Legondary_MyTH 07-20-2002 09:51 AM

well
 
Their NATS dont wear their tags cause i neva see them and i am asking so i can learn.Jeez.:grrr:

Shiftk03- 07-20-2002 09:56 AM

Re: well
 
Quote:

Originally posted by Legondary_MyTH
Their NATS dont wear their tags cause i neva see them and i am asking so i can learn.Jeez.:grrr:
Try possibly asking any staff member you see to direct you towards a Scriptor for the server...and if your trying to learn, perhaps you should start by asking how you can improve your current house scripts so that you won't need an update level script...

Legondary_MyTH 07-20-2002 10:00 AM

ok fine
 
ok, how can you make a move script (move,2,0,2,0) so when a playertouches it after it moves if they touch it again it doesnt move i have tried lot of things when you touch it i freeplayer and sleep so the player can access the door but i know people with abuse it and it will go all over the place X_x

Torankusu 07-20-2002 10:19 AM

if (playertouchsme){
move x,y,speed,some number;
}
- will move it, but you'd have to change it.

then you could set a flag and check for the flag.

Legondary_MyTH 07-20-2002 10:44 AM

umm
 
I made it move im saying i cant make it so people wont cant touch it or anything untill it gos back to its place its slides then they go in the its slides back.I just dont it to keep going if they touch it before its done..

screen_name 07-20-2002 01:00 PM

lol, the only thing you would do is


NPC Code:

if (playertouchsme && x==35) {
whatever;
}



then after it moves away from 35, then it wouldn't move around again, easy peasy

screen_name 07-20-2002 04:07 PM

Xx, come on Kai, its not like im handing out a whole system or something

just a tiny script

screen_name 07-20-2002 09:19 PM

o, lol



okay :)

Mike2001mike2001 08-03-2002 05:59 PM

updateboard , updateterrain = P

CheeToS2 08-03-2002 11:55 PM

Quote:

Originally posted by Mike2001mike2001
updateterrain = P
Never heard of that one.. I guess its for gmaps?

Python523 08-04-2002 12:17 AM

Quote:

Originally posted by Mike2001mike2001
updateboard , updateterrain = P
those only update the tiles, only need to use them when you change them and want the changes to be visible, updateterrain is only needed when you either mess with the groundheights or use setz


All times are GMT +2. The time now is 03:54 PM.

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