Welcome to RaGEZONE - MMORPG Development Forums (sponsored by tfn.gr) Mark forums read | View Forum Leaders
RaGEZONE - MMORPG Development Forums (sponsored by tfn.gr)

Ragescape Discuss, RaGESCAPE Updates - Perfect Performance at Free MMORPG Servers forum; Uhm i kinda was thinking like this PHP Code: public  void getNextNPCMovement ( NPC n ) {      boolean sendReturn  =  true ;     if ( ...




Reply
Thread Tools
RaGESCAPE Updates - Perfect Performance
 
 
ThuGie.nl - Webmaster

Rank: Subscriber


Reply With Quote
 
Join Date: Apr 2006
Location: Holland
Posts: 872
11-21-2008, 05:42 AM
 
Uhm i kinda was thinking like this

PHP Code:
public void getNextNPCMovement(NPC n) {
    
boolean sendReturn true;
    if (
!= null ) { //First check if n isnt null since else it will error when checking.
        
if (n.moveX != && n.moveY != && n.freezeTimer <= 0) { //Check if x/y isnt 0, And npc isnt frozen.
            
int dir direction(n.absXn.absY, (n.absX n.moveX), (n.absY n.moveY)); //Get npc direction.
            
if (dir != -1) { //If dir isnt -1 update npc location.
                
sendReturn false;
                
n.updateReq true;
                
dir >>= 1;
                
n.direction dir;
                
n.absX += n.moveX;
                
n.absY += n.moveY;
            }
        }
    }
    if(
sendReturn == true) {
        return;
    }

 
 
permalink
 

 
<? echo "hello world"; ?>

Rank: Member

2 Highscores

Reply With Quote
Blog Entries: 1
 
Join Date: Dec 2007
Location: Portugal ~
Posts: 834
11-21-2008, 07:44 PM
 
RaGESAPE's team amaze me every time I visit this section.
Well done, I must say this is becoming one of the best Runescape servers out there (Haven't gotten much information about 508+ servers with this much stability) .
Good luck .
I'll play once the player-base is bigger or if I have get any free-time. ;)
 
 
permalink
 

 
тчιея ғтш!

Rank: Member


Reply With Quote
Blog Entries: 1
 
Join Date: Nov 2008
Location: Places. ¬_¬
Posts: 667
11-21-2008, 07:50 PM
 
Nice Work AJ!
Can't Wait till the Switch to MySQL!
And Good Work on the Herblore :)
 
 
permalink
 

 
Happy 2 help Green potato

Rank: Member


Reply With Quote
Blog Entries: 1
 
Join Date: Dec 2007
Location: NEWCASTLE!
Posts: 610
11-21-2008, 09:12 PM
 
W00! *CLAP CLAP CLAP CLAP* Welldone you guys are the best! mysql faster w00 im so exited
 
 
permalink
 

Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 02:19 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RaGEZONE © 2001 - 2008





 
Evade Blackbelt School