![]() |
Boat ride...
Im making a boat system, but my script wont work can someone help me out:
PHP Code:
|
*sigh*
You shouldn't take bits and pieces out of other scripts. Because nine times out of ten if you're ripping lines you have no clue what it does and you think it will work because you've looked it up on the wiki. I say, WTF are you doing? I don't even script GS1 but I still know enough to know none of that makes any sense. To have a boat travel a certain pathway requires, I would say, math of a medium intelligence level. |
If this is done on a server, setlevel2() won't work clientside, only serverside. If this is done offline, scheduleevent() won't work since it isn't available for GS1.
|
Quote:
You have a conditional outside of an event, which may be the reason its not triggering. if (time <= 0) is not an event, it is a conditional. nothing triggers that logic when it happens, so its a toss up to the engine if it gets called or not. PHP Code:
|
That script you sent kristi wont work :(
your script dosen't do anything... So i changed it up, but it only says "T.T" PHP Code:
|
Maybe try explaining what you want this to do? Because I think you're really making this more complicated than it needs to be, if I'm assuming right about what you're doing.
|
Hawker, are you trying the script ONLINE or OFFLINE?
|
Quote:
it doesnt work because youre probably doing it online, setlevel2 doesnt work clientside online. |
Quote:
All of GS1 is basically deprecated, how do you find: setstring this.stuff,#c(blah) easier than, this.stuff = "blah"; I just don't get it.... |
Quote:
That's basically doing this in GS2: this.stuff = players[blah].chat; Perhaps you just mean to write: setstring this.stuff,blah; |
Quote:
Quote:
|
So why not do it simple and do something like...
NPC Code:if (playerenters) timeout=20; EDIT: don't forget, you might want to warp them to the gmap instead(if that's where you're warping them) and thus, you need to find the gmap coordinates. Also, setlevel2 is serverside, not clientside. |
None of thies scripts work >:(
ive figured out that you cant have timeouts/sleeps in the same script that has "setlevel" would there be another way to pause a script for a couple seconds? |
If you're doing this online it's going to get confusing (as only GS1 is).
But I'm pretty sure some triggeractions and clientsides are involved here. |
If it's online, then you should probably have a setlevel script added into your database NPC, and triggeraction it.
|
Or maybe just triggerserver in the script and call a serverside public function from DB?
But that's just being fancy schmancy :P |
Have you even read the rules for the scripting forum? You shouldn't expect people to just post entire scripts for you that work...
They are giving you advice as to HOW you should make YOUR OWN scripts. |
Never asked for a whole script, asked for help, and people proceeded with scripts. He also continued to try to script it himself, even after someone posted a script for him. I don't see the problem.
|
Quote:
|
Well he's getting various different tips on how to try to get this to work, I don't think he literally meant the scripts, but the advice we were giving him. You really are digging too deep into this, he's hardly breaking the rules and he's been trying to get this to work himself.
|
Quote:
|
Quote:
Dose anyone know how to make a script just puase without using sleep or timeout? |
Quote:
scheduleevent |
But there should be no reason for using something other than sleep or timeout. Instead of trying to find an alternative, you should try figuring out what's going on.
|
PHP Code:
|
| All times are GMT +2. The time now is 06:41 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.