Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #33  
Old 05-17-2002, 01:25 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Neonight

Jeff sayeth:

Kai, only the complicated NPCs take a few minutes. Many of the Classic NPCs, from my understanding and experience, are actually rather simple. Most of them could be rewritten if they couldn't be converted...in fact, the longest step would be changing lots of graphics to either setshape or a gani.

Okay, but you did that script wrong. I'll give ya the fixed version, which looks a little more complicated.

NPC Code:

if(actionserverside){
if(playerdarts>0){
playerdarts--;
tempx=playerx; tempy=playery; temp=playerid;
for(this.i=0;this.i<playerscount;this.i++){
with(players[this.i]){
if(playerid!=temp){
if(((playerx-tempx)^2)+((playery-tempy)^2)<100){
hitplayer this.i,playerswordpower,playerx,playery;
//I'm not even sure about this part. I don't think hitplayer works serverside, but hurt wouldn't allow specific hurtdx/dys
}
}
}
}
}
}
//#CLIENTSIDE
if(weaponfired&&playerdarts>0){
triggeraction 0,0,serverside,#w,;
}

__________________
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:52 PM.


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