Thread: Hai again. Magic Spells issue. :P

Results 1 to 5 of 5
  1. #1 Hai again. Magic Spells issue. :P 
    Registered Member xRokku_Ri's Avatar
    Join Date
    Jun 2014
    Posts
    305
    Thanks given
    91
    Thanks received
    30
    Rep Power
    0
    Short and sweet cause you guys are probably tired of seeing me.

    I've finished fixing all problems with Runecrafting and have moved on to Magic. Namely adding all the spells that are not present already.

    First spell is Confuse:

    Playercombat.java:
    Code:
    case 26:
    				player.setNextAnimation(new Animation(729));
    				player.setNextGraphics(new Graphics(102));
    				mage_hit_gfx = 104;
    				base_mage_xp = 1.15;
    				World.sendProjectile(player, target, 103, 18, 18, 50, 50, 0, 0);
    				return 5;
    Magic.java:
    Code:
    case 26:
    				if (!checkSpellRequirements(player, 3, delete, WATER_RUNE, 3, EARTH_RUNE, 2, BODY_RUNE, 1))
    					return false;
    				break;
    Thos format follows the same as all other spells to the T and yet when casting the spell nothing happens. I merely set it up to cast the spell only visually to see if it would work and it didn't.

    I tried changing the spell id of an already existing spell to the id of confuse and it still didn't do anything. I don't really have any other ideas.


    "If you believe in your dreams, I will prove to you that you can achieve your dreams just by working hard." ~Rock Lee
    Reply With Quote  
     

  2. #2  
    Registered Member xRokku_Ri's Avatar
    Join Date
    Jun 2014
    Posts
    305
    Thanks given
    91
    Thanks received
    30
    Rep Power
    0
    Ok I managed to add Wind Rush but it only casts if it's set to Autocast. if I click Cast and click on an NPC it doesn't do anything. hmm..


    "If you believe in your dreams, I will prove to you that you can achieve your dreams just by working hard." ~Rock Lee
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2014
    Posts
    43
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by xRokku_Ri View Post
    Ok I managed to add Wind Rush but it only casts if it's set to Autocast. if I click Cast and click on an NPC it doesn't do anything. hmm..
    Check my thread, got the same problem.. http://www.rune-server.org/runescape...nual-cast.html
    Reply With Quote  
     

  4. #4  
    Registered Member Elskpd's Avatar
    Join Date
    Jun 2014
    Posts
    101
    Thanks given
    13
    Thanks received
    14
    Rep Power
    0
    Quote Originally Posted by xRokku_Ri View Post
    Ok I managed to add Wind Rush but it only casts if it's set to Autocast. if I click Cast and click on an NPC it doesn't do anything. hmm..
    Possibly because you're defining Wind Rush in an Auto Cast method. Message me on Skype with the case you've added to get where you are so far.
    <img src=https://imgcache.rune-server.ee/ac1e9f645a8202e9fe5da3c146938032d870ce57/687474703a2f2f7777772e75706c6f61642e65652f696d6167652f343139343131312f39305f4368617261637465725f61735f6f665f382d352d323031342e706e67 border=0 alt= />[.SIGPIC]
[SIGPIC]<img src=https://imgcache.rune-server.ee/9f8b2baac60a85469e0d25af6ee8977b1566d0c5/687474703a2f2f7777772e75706c6f61642e65652f696d6167652f343132303435362f5369676e61747572652e706e67 border=0 alt= />
    Reply With Quote  
     

  5. #5  
    Registered Member xRokku_Ri's Avatar
    Join Date
    Jun 2014
    Posts
    305
    Thanks given
    91
    Thanks received
    30
    Rep Power
    0
    Doubt it. There is only one method in Magic.java and Playercombat.java that handles interfaceId 192 which is the normal spell book and thats where ALL other spells are.


    "If you believe in your dreams, I will prove to you that you can achieve your dreams just by working hard." ~Rock Lee
    Reply With Quote  
     


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. New magic spell Book
    By LastResortpkz in forum Show-off
    Replies: 34
    Last Post: 06-26-2009, 12:11 AM
  2. Magic Spells for Pali
    By Enjoi in forum Configuration
    Replies: 19
    Last Post: 05-05-2009, 08:58 PM
  3. custom magic spells - first sprites ever made!
    By zedex ranger in forum Graphics
    Replies: 16
    Last Post: 03-31-2009, 08:09 AM
  4. Magic Spells :d
    By DefNotVastico in forum Show-off
    Replies: 4
    Last Post: 01-13-2009, 10:06 PM
  5. Magic spells text changing
    By tru3 ki11a in forum Requests
    Replies: 2
    Last Post: 01-10-2009, 05:55 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •