Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-12-2010, 07:14 PM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
setting teams in events.

PHP Code:
function onPlayerChats(){
if(
player.guild.starts("Events")){
if(
player.chat="/setteams"){
players.remove(player.account);
playerscount-1;
player.chat=int((playerscount-1)/4)@"/"@playerscount-1;
for (
i=0;i<playerscount-1;i++){
if(!(
players[int(i)].guild.starts("Events"))){
players[int(i/12)].setlevel2("event_ttw-lobby.nw",23.5,30);
players[int(i/12)].guild "TTW Team 1";
players[int(i/8)].setlevel2("event_ttw-lobby.nw",44,30);
players[int(i/8)].guild "TTW Team 2";
players[int(i/4)].setlevel2("event_ttw-lobby.nw",23.5,44.5);
players[int(i/4)].guild "TTW Team 3";
players[int(i)].setlevel2("event_ttw-lobby.nw",44,44.5);
players[int(i)].guild "TTW Team 4";
}
}
}
}

it keeps making the event's team as a player... how do i remove that.?
also is there any ways to make this script better?
Reply With Quote
 


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 02:21 AM.


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