Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 08-10-2002, 08:50 AM
BinaryCrash BinaryCrash is offline
No memory dump.
Join Date: Jul 2002
Location: Brazil
Posts: 70
BinaryCrash is on a distinguished road
Send a message via ICQ to BinaryCrash Send a message via MSN to BinaryCrash
Thumbs up 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:

//By BinaryCrash
timeout=2;
if (timeout) {
x=0;
y=0;
dontblock;
timeout=2;
for(h=0;h<=allplayerscount;h++) {
with (allplayers[h]) {
if (playerx==30&&playery==30&&playerap=50){
if (!strequals(#3,maloriaheadrc.png)) setplayerprop #3,maloriaheadrc.png;
}
}
}
}




It was not stolen if you are thinking it.
i can describe how i got this way to script it.
  #2  
Old 08-10-2002, 08:54 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Re: My gift to all playerworlds owners.

Quote:
Originally posted by BinaryCrash
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:

//By BinaryCrash
timeout=2;
if (timeout) {
x=0;
y=0;
dontblock;
timeout=2;
for(h=0;h<=allplayerscount;h++) {
with (allplayers[h]) {
if (playerx==30&&playery==30&&playerap=50){
if (!strequals(#3,maloriaheadrc.png)) setplayerprop #3,maloriaheadrc.png;
}
}
}
}




It was not stolen if you are thinking it.
i can describe how i got this way to script it.
that would change other players heads as well if there AP was 50, and the x/y was 30
you should do
strlen(#F)==0 instead
  #3  
Old 08-10-2002, 09:03 AM
BinaryCrash BinaryCrash is offline
No memory dump.
Join Date: Jul 2002
Location: Brazil
Posts: 70
BinaryCrash is on a distinguished road
Send a message via ICQ to BinaryCrash Send a message via MSN to BinaryCrash
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.
  #4  
Old 08-13-2002, 08:24 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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))
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
  #5  
Old 08-14-2002, 10:24 AM
zorakid2001 zorakid2001 is offline
Banned
Join Date: Jul 2002
Location: Oregon USA <-- this place sux0rs
Posts: 113
zorakid2001 is on a distinguished road
Send a message via ICQ to zorakid2001 Send a message via AIM to zorakid2001
Im looking for a job as nat too!
  #6  
Old 08-23-2002, 09:58 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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:

if (actionplayeronline)
{ for (i=0;i<allplayerscount;i++)
{ with (allplayers[i])
{ if (strequals(#F,) && strequals(#3,rchead.png))
{ setplayerprop #3,newrchead.png;}
}
}
}


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:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
  #7  
Old 08-23-2002, 08:37 PM
BinaryCrash BinaryCrash is offline
No memory dump.
Join Date: Jul 2002
Location: Brazil
Posts: 70
BinaryCrash is on a distinguished road
Send a message via ICQ to BinaryCrash Send a message via MSN to BinaryCrash
Quote:
Originally posted by emortylone
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:

if (actionplayeronline)
{ for (i=0;i<allplayerscount;i++)
{ with (allplayers[i])
{ if (strequals(#F,) && strequals(#3,rchead.png))
{ setplayerprop #3,newrchead.png;}
}
}
}


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

the old rc head is head25
  #8  
Old 08-24-2002, 02:37 AM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
Quote:
Originally posted by emortylone
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:

if (actionplayeronline)
{ for (i=0;i<allplayerscount;i++)
{ with (allplayers[i])
{ if (strequals(#F,) && strequals(#3,rchead.png))
{ setplayerprop #3,newrchead.png;}
}
}
}


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
This will not work since actionplayeronline is for players and not RCs, correct me if i'm wrong.
  #9  
Old 08-24-2002, 06:49 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by user13-xo


This will not work since actionplayeronline is for players and not RCs, correct me if i'm wrong.
rc's dont see heads though o_O I personally would do somethin like
if(created){
timeout = 5;
}
if(timeout){
if(this.oldcount != allplayerscount){
stuff
}
this.oldcount = allplayerscount;
timeout = 5;
}
  #10  
Old 08-24-2002, 08:41 AM
BinaryCrash BinaryCrash is offline
No memory dump.
Join Date: Jul 2002
Location: Brazil
Posts: 70
BinaryCrash is on a distinguished road
Send a message via ICQ to BinaryCrash Send a message via MSN to BinaryCrash
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.
  #11  
Old 08-24-2002, 08:45 AM
BinaryCrash BinaryCrash is offline
No memory dump.
Join Date: Jul 2002
Location: Brazil
Posts: 70
BinaryCrash is on a distinguished road
Send a message via ICQ to BinaryCrash Send a message via MSN to BinaryCrash
Quote:
Originally posted by emortylone
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))
i never tried it, but... with (allplayers[i]) the "i" on [] is the id of the player.

just thinking, logic.

for( blah blah) {
with(allplayers[i]) {
if (strequals(#a,BinaryCrash)) {
sendtonc BinaryCrash id = #v(i);
}
}
}
//ps: never tested
  #12  
Old 08-24-2002, 12:05 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.