![]() |
Question.......
How come on Graal 2001 in job npcs they have:
NPC Code: to check if the person is the person who started doing the job. How do they get that to work when 'this' flags can only contain numbers and peoples account names contain letters? :confused: :confused: :confused: Thanks |
well the this.owner doesnt affect the surrounding players because it checks for the account name. i am not sure though
|
umm
when it says "this.owner" its not refering to a this.var, its refering to a string, which can be letters or numbers.
its like saying client.test=0 that can only have numbers, but setstring client.test,hello would work just as setstring this.test,hello this. infront of a string means that only that NPC can access that string. |
Thx......
but if its a string then it adds it to the players list of flags and doesnt effect any other people who touch the npc so as soon as they touch it they get the same string but with their account instead so it doesnt help very much. Also if someone tries to help someone finish it instead of helping it they start their own one from the same npc but at 0% again. *wonders if anyone understood that* Heres a script (with some things that arent important cut out) where the things above happen: NPC Code: Thx :) |
cause this is NPC-Server scripting (not possible offline or on Non-P2P servers) there are this-strings... these stings are saved in the NPC (The NPCs database) and everyone can acces them
|
indeed :)
|
Quote:
aaaaaahhhhhhhhhhhhhhhhhhh :( :( :( oh and thx :) |
| All times are GMT +2. The time now is 04:17 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.