![]() |
joining classes
for some reason i can't join classes with this script (all names are correct, and the action is being called but none of the classes, even the ones that worked before, can be called like this anymore):
NPC Code: |
Take out the space, rename the class to have an _, or use the new engine with quotes, join("force field");
either that, or it may have a problem with the mouse variables, because I don't think those are accessible serverside. Try sending them as parameters and use strtofloat(#p(2)) or whatever. |
Quote:
|
actually, none of the classes work, not even the graalats one X_X
|
Quote:
|
mousex and mousey are not available on the serverside. You will probably find that you are placing the NPCs, but on coordinates (0, 0) instead of your desired coordinates.
|
When using quotes within quotes in GS2, you will need to put a back-slash before the quote that will be read as inside the string, a thanks to Malinko for pointing this fact out for me:
PHP Code:
|
Quote:
|
nope, none of that works X_X none of the classes work, even the ones that worked before. And how do i send mousex and y with the trigger :confused:
|
Quote:
Quote:
|
add mousex/y to the triggeraction. Read the mousex/y from the triggeraction.
|
This is your 23rd thread in the NPC Scripting forums that I have counted asking for help, and still, you do not read what people say. This annoys me, and others, so please learn to read what is said when people try to help.
What ApothiX says is correct. Add your parameters to the triggeraction (#v(mousex) and #v(mousey)). For example. PHP Code:
PHP Code:
|
I would have thought anyone would know mouse coordinates can only be read clientside :P
And you SHOULD be using/learning GS2 :P |
Quote:
|
Quote:
Quote:
|
here's the script im using, still will not work X_X probably something stupid....as usual
NPC Code:if(actionserverside) ....and the class: NPC Code: |
DO YOU NOT LEARN?
Follow these guidelines, specifically B.2.2, B.2.4 and C.1. Edit: In fact, all of them. |
umm...rules were made to be broken? x_x sorry...but what would a scripting post from me be without poorly formatted scripts? anyway i fixed it... a little.
|
Quote:
Quote:
Quote:
|
Skyld needs a hug. ;_;
-Hugs Skyld.- |
Quote:
In the weapon
In the class
|
ah skyld, you're never horrible ;) anyway, i'll try some of that, thanks. i guess the lag would explain why it returns more MP than it uses x_x
|
Quote:
|
ha ha asking questions is the best way to learn ;) and i'm working on that formating XD however, even after taking some of the advice here, the script still will not join the class x_x
|
Quote:
|
You do know that if you keep posting scripts on the forum intended for Dark Rival use, everyone in the world would gain knowledge of every script on the server...
*lawl* |
Quote:
|
the scripts are improved after i post here, these aren't full scripts ;)
|
Quote:
You need to apply some common sense, look at your script, identify and analyse the problem. Think it through. Why is this happening? What's causing this? What's surrounding this that could cause a problem? Read it all through. Ask yourself sensible questions before posting only the relevant code. You do have a terrible habit of demanding we fix things for you. If all else fails, go and hire a scripter that knows what they are doing. |
Quote:
|
i really don't demand fixing, just an explanation of what i did wrong so i can learn it :| srry guys
|
| All times are GMT +2. The time now is 09:21 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.