![]() |
My gift to all playerworlds owners.
Many people asked about the script to change the rc head,
so i am giving it here to everyone, i asked Warcaptain at the first time, but he refused to tell me about it, just said it's a script. So i script my own script and like i help all graal and not only Maloria i am giving it out. ;) NPC Code: It was not stolen if you are thinking it. i can describe how i got this way to script it. |
Re: My gift to all playerworlds owners.
Quote:
you should do strlen(#F)==0 instead |
that is another way to script.
also on maloria they cant get the ap exactly 50 because the ap increase to fast and wont get all that sequence. u can also check every timeout to if it is not that 3 variables and is the rc head to change it back. ;) |
Cant you just read something such as the id?
Im not sure since i have never worked online(im looking for a job as NAT if anyones hiring(i want to start learning NPC Server)) |
Im looking for a job as nat too!
|
He he. 1st off the earlier post on this ACC was NOT me... I've been staff REPEATEDLY on Pw's w/ NPC Servers =) (this is Projectshifter btw)
I think that coding is that great x.X how about this: NPC Code: MUCH Simpler, and it is basic. rchead.png is the old RC head, and newrchead.png is the new RC head you want. It is much simpler. RC's don't have a level, so if #F (level the Player is in) has no value, and it has the RC head, then it changes it XP. Easier, and better ;) ---Shifter |
Quote:
the old rc head is head25 |
Quote:
|
Quote:
if(created){ timeout = 5; } if(timeout){ if(this.oldcount != allplayerscount){ stuff } this.oldcount = allplayerscount; timeout = 5; } |
the code will work if used in control npc, because of the actionplayeronline.
and will check if filename is empty and the head (string) is rchead.png then will change the atribute to another string. rcs have player atributes too, like, nickname, read, guiltag, etc. they are like npc server, and vice-versa. like you can prove it making a script to read the atributes of allplayers[i] it will include rcs. and on ftp in logs folder you can check in the playerlist you can see the rcs there and some atributes of rcs like ap, levelname, x,y, etc. |
Quote:
just thinking, logic. for( blah blah) { with(allplayers[i]) { if (strequals(#a,BinaryCrash)) { sendtonc BinaryCrash id = #v(i); } } } //ps: never tested |
P.S. Won't work =P He he. I don't quite see the point of that. if (actionplayeronline) should also work for RC. Since it isn't set for the player to actually connect to a LEVEL, but more or less enter the server, it should work just fine. And btw: head25.png is not NECESSARILY the one it was set for. While it MAY be the same head, it could be something different. Same pic, different name, entirely possible =P
---Shifter |
All times are GMT +2. The time now is 09:57 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.