Thread: [Huge-Tut]MagicHandler.java [Basically full magic]..

Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 56
  1. #21  
    bee hind u
    Guest
    Code:
    client.java:9971: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
    stillgfx2(finishID, MagicHandler.graphicHeight, enemyY, enemyX, 95);
                        ^
    client.java:10289: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                    stillgfx2(stillSpellGFX, MagicHandler.graphicHei
    ght, MagicHandler.npcY, MagicHandler.npcX, 2);
                                                             ^
    client.java:10289: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                    stillgfx2(stillSpellGFX, MagicHandler.graphicHei
    ght, MagicHandler.npcY, MagicHandler.npcX, 2);
    
         ^
    client.java:10289: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                    stillgfx2(stillSpellGFX, MagicHandler.graphicHei
    ght, MagicHandler.npcY, MagicHandler.npcX, 2);
    
                            ^
    client.java:10292: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                            if ((MagicHandler.npcHP - hitDiff < 0)) {
                                 ^
    client.java:10293: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                    hitDiff = MagicHandler.npcHP;
                                              ^
    client.java:10295: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                            if (MagicHandler.itHeals)
                                ^
    client.java:10307: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                            if (MagicHandler.itFreezes)
                                ^
    client.java:10309: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                    sendMessage(""+getFrozenMessage(MagicHandler.spe
    llID)+"");
    
                                                                    ^
    client.java:10312: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                            server.npcHandler.npcs[index].freezeTime
    r = getFreezeTimer(MagicHandler.spellID);
    
                       ^
    client.java:10315: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                            if (MagicHandler.itReducesAttack)
                                ^
    client.java:10327: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                                    server.npcHandler.npcs[index].re
    ducedAttack = getAttackTimer(MagicHandler.spellID);
    
                                 ^
    client.java:10331: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                            if (MagicHandler.itPoisons)
                                ^
    client.java:21173: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                                            stillgfx2(85, MagicHandl
    er.graphicHeight, server.npcHandler.npcs[i].absY, server.npcHandler.npcs[i].absX
    , 2);
                                                                          ^
    client.java:21184: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                                                    if (MagicHandler
    .itHeals)
                                                                        ^
    client.java:21196: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                                                    if (MagicHandler
    .itFreezes)
                                                                        ^
    client.java:21198: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                                                            sendMess
    age(""+getFrozenMessage(MagicHandler.spellID)+"");
    
                            ^
    client.java:21201: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
    
    server.npcHandler.npcs[i].freezeTimer = getFreezeTimer(MagicHandler.spellID);
    
                                                           ^
    client.java:21204: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                                                    if (MagicHandler
    .itReducesAttack)
                                                                        ^
    client.java:21216: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
    
            server.npcHandler.npcs[i].reducedAttack = getAttackTimer(MagicHandler.sp
    ellID);
    
                                                                     ^
    client.java:21220: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                                                    if (MagicHandler
    .itPoisons)
                                                                        ^
    client.java:21233: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                                                    stillgfx2(spellI
    d, MagicHandler.graphicHeight, server.npcHandler.npcs[i].absY, server.npcHandler
    .npcs[i].absX, 2);
    
       ^
    client.java:21277: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                    appendHitToNpc(MagicHandler.npcIndex, MagicHandl
    er.hitDiff2, isStillSpell);
                                                   ^
    client.java:21277: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                                    appendHitToNpc(MagicHandler.npcIndex, MagicHandl
    er.hitDiff2, isStillSpell);
                                                                          ^
    client.java:26466: duplicate case label
    case 4169: //charge spell
    ^
    client.java:34689: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                            MagicHandler.npcX = EnemyX2;
                            ^
    client.java:34690: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                            MagicHandler.npcY = EnemyY2;
                            ^
    client.java:34691: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                            MagicHandler.npcHP = EnemyHP2;
                            ^
    client.java:34692: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                            MagicHandler.npcIndex = npcIndex;
                            ^
    client.java:34694: cannot find symbol
    symbol  : variable MagicHandler
    location: class client
                            MagicHandler.MagicSpell(spell, playerId, MultiTargetSpel
    l(spell), StillSpell(spell), playerLevel[6]);
                            ^
    NPCHandler.java:445: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
    if (npcs[i].freezeTimer > 0) {
             ^
    NPCHandler.java:446: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                            npcs[i].freezeTimer--;
                                                 ^
    NPCHandler.java:448: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                    if (npcs[i].reducedAttack > 0) {
                                             ^
    NPCHandler.java:449: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                            npcs[i].reducedAttack--;
                                                 ^
    NPCHandler.java:451: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                    if (npcs[i].reducedAttack == 0) {
                                             ^
    NPCHandler.java:452: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                            npcs[i].MaxHit = (int)Math.floor((npcs[i
    ].MaxHP / 10));
                                                 ^
    NPCHandler.java:452: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                            npcs[i].MaxHit = (int)Math.floor((npcs[i
    ].MaxHP / 10));
                                                                                   ^
    
    NPCHandler.java:454: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                    if (npcs[i].poisonTimer > 0) {
                                             ^
    NPCHandler.java:455: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                            npcs[i].poisonTimer--;
                                                 ^
    NPCHandler.java:457: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                    if (npcs[i].poisonTimer == 0) {
                                             ^
    NPCHandler.java:458: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                            npcs[i].poisonDmg = false;
                                                 ^
    NPCHandler.java:459: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                            npcs[i].poisonDelay = -1;
                                                 ^
    NPCHandler.java:461: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                    if (npcs[i].poisonDelay > 0) {
                                             ^
    NPCHandler.java:462: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                            npcs[i].poisonDelay--;
                                                 ^
    NPCHandler.java:464: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                    if (npcs[i].poisonTimer > 0 && npcs[i].poisonDel
    ay == 0){
                                             ^
    NPCHandler.java:464: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                    if (npcs[i].poisonTimer > 0 && npcs[i].poisonDel
    ay == 0){
                                                                        ^
    NPCHandler.java:465: cannot find symbol
    symbol  : variable i
    location: class NPCHandler
                                            poisonNpc(i);
                                                      ^
    Note: stream.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    47 errors
    Press any key to continue . . .



    you might wanna go back and fix some code santa. and add the path for magichandler in server
     

  2. #22  
    bandana
    Guest
    client.java:616: stillgfx2(int,int,int) in client cannot be applied to (int,int,
    int,int,int)
    stillgfx2(85, MagicHandl
    er.graphicHeight, server.npcHandler.npcs[i].absY, server.npcHandler.npcs[i].absX
    , 2);
    ^
    client.java:676: stillgfx2(int,int,int) in client cannot be applied to (int,int,
    int,int,int)
    stillgfx2(spellI
    d, MagicHandler.graphicHeight, server.npcHandler.npcs[i].absY, server.npcHandler
    .npcs[i].absX, 2);
    ^
    client.java:819: stillgfx2(int,int,int) in client cannot be applied to (int,int,
    int,int,int)
    stillgfx2(stillSpellGFX, MagicHandler.graphicHei
    ght, MagicHandler.npcY, MagicHandler.npcX, 2);
    ^
    MagicHandler.java:27: cannot find symbol
    symbol : method createNormalSpell(int,int,int,int,int,int,int,int, int,int,int,i
    nt,int,int)
    location: class GraphicsHandler
    GraphicsHandler.createNormalSpell(id, Y, X, offsetY, off
    setX, 50, 95, (id + 1), spellHeight, spellHeight, (npcIndex + 1), (id + 2), npcY
    , npcX);
    ^
    MagicHandler.java:33: cannot find symbol
    symbol : method createNormalSpell(int,int,int,int,int,int,int,int, int,int,int,i
    nt,int,int)
    location: class GraphicsHandler
    GraphicsHandler.createNormalSpell(id, Y, X, offs
    etY, offsetX, 50, 95, (id + 1), spellHeight, spellHeight, (npcIndex + 1), 181, n
    pcY, npcX);
    ^
    MagicHandler.java:37: cannot find symbol
    symbol : method createNormalSpell(int,int,int,int,int,int,int,int, int,int,int,i
    nt,int,int)
    location: class GraphicsHandler
    GraphicsHandler.createNormalSpell(id, Y, X, offs
    etY, offsetX, 50, 95, (id + 1), spellHeight, spellHeight, (npcIndex + 1), 180, n
    pcY, npcX);
    ^
    MagicHandler.java:41: cannot find symbol
    symbol : method createNormalSpell(int,int,int,int,int,int,int,int, int,int,int,i
    nt,int,int)
    location: class GraphicsHandler
    GraphicsHandler.createNormalSpell(id, Y, X, offs
    etY, offsetX, 50, 95, (id + 1), spellHeight, spellHeight, (npcIndex + 1), 179, n
    pcY, npcX);
    ^
    MagicHandler.java:47: cannot find symbol
    symbol : method createNormalSpell(int,int,int,int,int,int,int,int, int,int,int,i
    nt,int,int)
    location: class GraphicsHandler
    GraphicsHandler.createNormalSpell(366, Y, X, offsetY, offsetX, 5
    0, 95, (id + 1), spellHeight, spellHeight, (npcIndex + 1), (id + 2), npcY, npcX)
    ;
    ^
    Note: stream.java uses or overrides a deprecated API.
    Note: Recompile with -Xlinteprecation for details.
    8 errors

    Satan's Isle Has Been Compiled SuccesFull !

    Press any key to continue . . .
    gettin that error =\
     

  3. #23  
    Registered Member
    Join Date
    Jul 2006
    Age
    32
    Posts
    487
    Thanks given
    0
    Thanks received
    0
    Rep Power
    56
    EDIT: Sorry, add this in GraphicsHandler:
    Code:
    public static void createNormalSpell(int castId, int casterY, int casterX, int offsetY, int offsetX, int angle, int speed, int movegfxID ,int startHeight, int endHeight, int MageAttackIndex, int finishID, int enemyY, int enemyX) {
    for (Player p : server.playerHandler.players) {
    	if(p != null)  { 
    		client person = (client)p;
    		if((person.playerName != null || person.playerName != "null"))
    				person.firespell(castId, casterY, casterX, offsetY, offsetX, angle, speed, movegfxID, startHeight, endHeight, MageAttackIndex, finishID, enemyY, enemyX);}
    	}
    }
     

  4. #24  
    Community Veteran

    Bullet's Avatar
    Join Date
    Nov 2006
    Posts
    2,246
    Thanks given
    43
    Thanks received
    92
    Rep Power
    748
    Very Nice santa , have 35 rep from me There you go 38:36 rep power lol
     

  5. #25  
    Registered Member
    Join Date
    Jul 2006
    Age
    32
    Posts
    487
    Thanks given
    0
    Thanks received
    0
    Rep Power
    56
    Hehe, thanks Bullet.
     

  6. #26  
    Registered Member
    Ryan's Avatar
    Join Date
    Aug 2006
    Age
    28
    Posts
    2,060
    Thanks given
    0
    Thanks received
    0
    Rep Power
    164
    very nice...( all i have to say )
    RB26DETT GTR See..? This is mine.

     

  7. #27  
    Registered Member
    Join Date
    Apr 2007
    Posts
    200
    Thanks given
    0
    Thanks received
    0
    Rep Power
    53
    I need help replacing my stillgfx2 boolean. it looks like this;

    Code:
    public void stillgfx2(int id, int Y, int X)
    {
    outStream.createFrame(85);
    outStream.writeByteC(Y - (mapRegionY * 8));
    outStream.writeByteC(X - (mapRegionX * 8));
    outStream.createFrame(4);
    outStream.writeByte(0);//Tiles away (X >> 4 + Y & 7)
    outStream.writeWord(id);//Graphic id
    outStream.writeByte(0);//height of the spell above it's basic place, i think it's written in pixels 100 pixels higher
    outStream.writeWord(0);//Time before casting the graphic
    }
     

  8. #28  
    Registered Member
    Join Date
    Jul 2006
    Age
    32
    Posts
    487
    Thanks given
    0
    Thanks received
    0
    Rep Power
    56
    Code:
    public void stillgfx2(int id, int heightS, int Y, int X, int timerBCS)
    	{
    		for (Player p : server.playerHandler.players)
    		{
    			if(p != null) 
    			{
    				client person = (client)p;
    				if((person.playerName != null || person.playerName != "null"))
    				{
    					if(person.distanceToPoint(X, Y) <= 60)
    					{
    						person.stillgfx3(id, heightS, Y, X, timerBCS);
    					}
    				}
    			}
    		}
    	}
    	public void stillgfx3(int id, int heightS, int Y, int X, int timeBCS) 
    	{
    		outStream.createFrame(85);
    		outStream.writeByteC(Y - (mapRegionY * 8));
    		outStream.writeByteC(X - (mapRegionX * 8));
    		outStream.createFrame(4);
    		outStream.writeByte(0);//Tiles away (X >> 4 + Y & 7) 	//Tiles Away From absX and absY 
    		outStream.writeWord(id);//Graphic id
    		outStream.writeByte(heightS);//height of the spell above it's basic place, i think it's written in pixels 100 pixels higher //100
    		outStream.writeWord(timeBCS);//Time before casting the graphic
    	}
     

  9. #29  
    project-rs owner
    Join Date
    Sep 2006
    Age
    29
    Posts
    914
    Thanks given
    4
    Thanks received
    4
    Rep Power
    49
    now i get this error
    Code:
    D:\pro -rs backup\pro rs\client.java:5568: stillgfx2(int,int,int,int,int) in client cannot be applied to (int,int,int)
    person.stillgfx2(id, Y, X);
          ^
    D:\pro -rs backup\pro rs\client.java:5699: stillgfx2(int,int,int,int,int) in client cannot be applied to (int,int,int)
         person.stillgfx2(id, person.absY, person.absX);
    0------------------------------------------
    fixed it thanks santa its awsome
    why don't you make a tutorials how to make graphichandler.java


    only there 1 bug if you cast any god spell with charge you keep hitting 30s
    and charge must be longer
     

  10. #30  
    Registered Member
    Join Date
    Jul 2006
    Age
    32
    Posts
    487
    Thanks given
    0
    Thanks received
    0
    Rep Power
    56
    Because on real runescape, the hit stays 30 if you cast a god spell after casting the charge spell And to change the length of the charge spell change this:

    Code:
    arenaSpellTimer = 120; //1 Minute
     

Page 3 of 6 FirstFirst 12345 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [Java] How to get Full InIntelliJ IDEA [Java]
    By Sir Zap in forum Application Development
    Replies: 16
    Last Post: 03-26-2011, 09:30 PM
  2. Allstar X - MagicHandler.java
    By Robgob69 in forum Show-off
    Replies: 19
    Last Post: 12-13-2010, 11:14 AM
  3. [HUGE] Full Tutorial Woot [HUGE]
    By Looted in forum Tutorials
    Replies: 3
    Last Post: 05-12-2007, 02:36 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •