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 05-19-2001, 06:13 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
Team NPCs

Would it be possible to get the team npc script used to separate the players in 2 teams like the CTF or CS? That script could be used by everyone and although ive encoutered glitches (my clothes dont go back to what they were they stay red or blue) it is one of the script i really need = |
  #2  
Old 05-19-2001, 09:20 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The whole script?
Or just this

NPC Code:

pcount = 0;
for (i=0; i<playerscount; i++) with (players[i]) {
if (playerid>0) {
if (pcount%2==0)
setplayerprop #g,Red Team;
else
setplayerprop #g,Blue Team;
pcount++;
}
}

  #3  
Old 05-19-2001, 09:25 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
hmm, i would appreciate the whole clothe changing and warping script and could also explain what this script those? I still have a lot to learn about scripting '-_-
  #4  
Old 05-19-2001, 10:34 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
That just sets their guild to the team they're on. You could then add whatever you want to do stuff based on their team like:

NPC Code:

function changeclothes() {
for (i = 0; i < playerscount; i++) { with(players[i]) {
if (strequals(#g,Red Team)) setplayerprop #C2, red;
else setplayerprop #C2 blue;
} }
}



I'm not sure if #C2 is coat, but it's not that hard to do once you have their guild set. You just set everything based on their team...maybe give them special weapons and stuff, then finally, you warp them in.

-Kyle
  #5  
Old 05-19-2001, 11:42 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
kewl, thanks to both of you! =)
 


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:40 PM.


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