![]() |
NPC Troubles :(
Hello all
I am trying to make a pair of staff boots where i can set the speed but when i try to test them it turns them on but my speed does not increase nor can i walk on and through obstacles. Check it out and help pls ^^ Quote:
|
get rid of the strtofloat() around the this.bootspeed, it's a variable, not a string.
|
frist of yes get rid of those strtofloats, second get rid of that pointless timeout , thrid u need to set the var first , nothing is setting the var when the script is active, with all the corrections is should look like this
PHP Code:
|
Thank you :)
|
KSI-GS!
|
This is a slightly more complex way to do that. It shows a lot more techniques of manupilating strings/variables. Either way works just fine.
NPC Code: |
I am not really good with gscript, and I have not used it for years, so I have a few questions. I have made a few changes to your code, could you explain to me why you did not write it that way?
Quote:
|
your version of his script appears to be just as good
I would have used vecx and vecy myself, if I was making this. His version of that part seems to be more efficient though. I would say the biggest difference between the way you coded it, and the way he coded it, is that when I read his, I can understand what each line does easier. It took me a little longer to understand why you used certain things the way you did. Edit: many things edited in this post |
Well, first off, it's a lot more effiecient:
PHP Code:
PHP Code:
Other then that, the rest doesn't change much at all...Other then you declared a variable where I didn't. And I used tokenize. Differant ways to proceed. |
| All times are GMT +2. The time now is 08:35 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.