![]() |
If Problem
ok
its like this NPC Code: now when i make it NPC Code: it says a acc, like projectigi when i make it NPC Code: it says -1(this.target is set to -1 before this) |
I don't see any difference between the scripts other than the fact that the second one has the chat= commented out. What are you trying to say? Mind providing some more detail other than "its like this" and "i make it"?
|
i say that thiso.newtarget is not -1
but it dont sets this.target to thiso.newtarget |
When describing a problem you should also describe the input and output, then we can help checking if the actualy program is correct.
Input = values of this.target and thiso.target before the program runs Output = value of 'chat' after the program is ran |
ok maybe i should post the whole script XD
maybe theres something wrong with with() or so NPC Code: well as i said, this three lines NPC Code: it says -1 (means this.cur_target is till -1) NPC Code: there it says an acc (means thiso.newtarget must be a acc); |
.account is the default parameter to the player object, I believe. If you just do player.chat = player; I believe it shows their account. Try doing: player.chat = this.cur_target.getdynamicvarnames();
|
chat=this.cur_target.getdynamicvarnames();
now it says nothing XD at chat=thiso.newtarget.getdynamicvarnames(); it dont say anything either |
Quote:
PHP Code:
|
it says
"Hmm, something is in it." but why this check? i mean it cant be null because its set to -1 |
Okay, the lack of commenting in that script makes me want to run and hide (just being honest).
|
well im not good at explaining but here:
NPC Code: |
I would have set the newtarget value to 0 on created and done:
if (!this.newtarget) instead :P Might be the same thing though, not sure. |
i always used -1
xD |
Quote:
|
You're doing a .05 timeout on serverside?
|
All times are GMT +2. The time now is 04:10 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.