Thread: Admin NPC help!
View Single Post
  #1  
Old 05-04-2005, 02:38 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Admin NPC help!

I need help with admin npc as i have NO IDEA why it doesnt work =o
PHP Code:
//Access Restriction
if (created) {
  
setstring this.a,{Admin-Playerworld108,coreys,linkoraclehero,tempandrew,CujoDaMan,Kain4lyfe};
}

if (
actionserverside) {
  if (
strequals(#p(0),guild)) {
    
with (getplayer(#p(1))) {
      
setplayerprop #g,#p(2);
  
}
 }
  if (
strequals(#p(0),nick)) {
    
with (getplayer(#p(1))) {
      
setplayerprop #n,#p(1);
  
}
 }
  if (
strequals(#p(0),dc)) {
    
with (getplayer(#p(1))) {
      
serverwarp unholy;
  }
 }
  if (
strequals(#p(0),jail)) {
    
with (getplayer(#p(1))) {
      
setlevel2 30,30,al_jail.nw;
  }
 }
  if (
strequals(#p(0),unjail)) {
    
with (getplayer(#p(1))) {
      
setlevel2 26,30,al_osl.nw;
  }
 }
  if (
strequals(#p(0),summon)) {
    
this.playerx;
    
this.playery;
    
setstring this.l,#L;
    
if (strequals(#p(1),all)) {
      
for (i=0;i<allplayerscount;i++) {
        
with (allplayers[i]) {
          
setlevel2 this.x,this.y,this.l;
     }
    }
   }
else
with (getplayer(#p(1))) {
  
setlevel2 this.x,this.y,this.l;
  }
 }
  if (
strequals(#p(0),warp)) {
    
with (getplayer(#p(1))) {
      
setlevel2 #p(2),#p(3),#p(4);
  
}
 }
}


//#CLIENTSIDE
if (playerchats) {
  if (
startswith(#a,this.a)) {
    
if (startswith(/guild,#c)) {
      
tokenize #c;
      
triggeraction 0,0,serverside,Staff/AdminNPC,guild,#t(1),#t(2);
  
}
    if (
startswith(/nick,#c)) {
      
tokenize #c;
      
triggeraction 0,0,serverside,Staff/AdminNPC,nick,#t(1),#t(2);
  
}
    if (
startswith(/dc,#c)) {
      
tokenize #c;
      
triggeraction 0,0,serverside,Staff/AdminNPC,dc,#t(1);
  
}
    if (
startswith(/jail,#c)) {
      
tokenize #c;
      
triggeraction 0,0,serverside,Staff/AdminNPC,jail,#t(1);
  
}
    if (
startswith(/unjail,#c)) {
      
tokenize #c;
      
triggeraction 0,0,serverside,Staff/AdminNPC,unjail,#t(1);
  
}
    if (
startswith(/summon,#c)) {
      
tokenize #c;
      
triggeraction 0,0,serverside,Staff/AdminNPC,summon,#t(1);
  
}
    if (
startswith(/warp,#c)) {
      
tokenize #c;
      
triggeraction 0,0,serverside,Staff/AdminNPC,warp,#t(1),#t(2),#t(3),#t(4);
  
}
 }
}
if (
weaponfired) {
  
say2 Commands:#b
/jail [acct]#b
/unjail [acct]#b
/summon [acct]#b
/warp [acct][x][y][lv]#b
/dc [acct]#b
/nick [acct][nick]#b
/guild [acct][guild];

__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote