![]() |
Player Detection
Anyone else notice that ...
NPC Code: ...is also triggered when you click on npcs? |
showcharacter npcs are contained in the clientside players array
|
i kinda figured , but shouldn't this be changed
|
You can easily distinguish between the 2 by seeing if the acct name is blank or not... I dunno... I like being able to find showcharacter npcs :)
|
Quote:
|
i think so , i mean yea its easy to get around but have charater npcs and players in the same array is kind of limiting no?
|
if (strlen(#a(i))>0) {
script } |
or add to the if flag
NPC Code: |
Quote:
|
more potential? how so?
|
Quote:
|
i just assumed accessing players and charater npc's should be in seperate arrays to make the array shorter for both this way it would know what array to access this way it wouldnt get players confused with charater npcs, considering there non player charaters
|
Just add what I said, showcharacter npcs have an id of -1.
|
Quote:
|
Hehe, the reason is because there's no reaosn to add a second command when a simple flag can be added ;)
|
it wouldnt be a second command =/ the arrays are built in
|
bah you know what I mean. And if you dont I dunno how you learned to script ;)
|
Quote:
|
That explains it....I mean....that explains it...wait....
|
Quote:
|
I have been scripting for about....2 months ;)
EDIT: Actually it's probably more like 4. |
Quote:
Quote:
There is a big difference between the two statements. Also: using incorrect terminology especially when knowing better is considered giving bad advice. Don't expect every visitor to this forum to understand that you meant something vastly different from what you said. |
OK sorry I forgot noobs looked at it too, I'll be good :(
|
Quote:
I started scripting on Frolic when I was like 11. So thats like 4 years ago. So what if you've scripted longer...Mr. sern_oldbie. I rock and you're jealous. |
Quote:
others are (in order) sern_oldbie,Ethic_Sern,SernOne,ZeroTrack,Sern(i just got this one 4 days ago) =p so yea you wish you did lol the person who inspried me was Saban cause i wanted a job there and i didnt know howto script yet so he said learn so i started reading all the noob bibles when they were still on the main site and all the npc docs in the graal folder =p |
| All times are GMT +2. The time now is 01:32 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.