Thread: [317 PI] Custom GFX for magic

Results 1 to 1 of 1
  1. #1 [317 PI] Custom GFX for magic 
    Novice Developer
    Solnes's Avatar
    Join Date
    Jul 2017
    Posts
    86
    Thanks given
    12
    Thanks received
    3
    Rep Power
    36
    Hello everyone. I have been testing out a few things but I cant get it figured out. I'm trying to make a custom staff and a certain GFX when attacking a npc but still have it give magic xp. If anyone knows or has a tut they know about please leave a reply here.

    I have found this but I cant seem to read it properly to changes the gfx.
    Code:
    public final int[][] MAGIC_SPELLS = {
    	{1152,1,711,90,91,92,2,5,556,1,558,1,0,0,0,0}, //wind strike
    	{1154,5,711,93,94,95,4,7,555,1,556,1,558,1,0,0}, // water strike
    	{1156,9,711,96,97,98,6,9,557,2,556,1,558,1,0,0},// earth strike
    	{1158,13,711,99,100,101,8,11,0,0,0,0,0,0,0,0}, // fire strike
    	{1160,17,711,117,118,119,9,13,556,2,562,1,0,0,0,0}, // wind bolt
    	{1163,23,711,120,121,122,10,16,556,2,555,2,562,1,0,0}, // water bolt
    	{1166,29,711,123,124,125,11,20,556,2,557,3,562,1,0,0}, // earth bolt
    	{1169,35,711,126,127,128,12,22,556,3,554,4,562,1,0,0}, // fire bolt
    	{1172,41,711,132,133,134,13,25,556,3,560,1,0,0,0,0}, // wind blast
    	{1175,47,711,135,136,137,14,28,556,3,555,3,560,1,0,0}, // water blast
    	{1177,53,711,138,139,140,15,31,556,3,557,4,560,1,0,0}, // earth blast
    	{1181,59,711,129,130,131,16,35,556,4,554,5,560,1,0,0}, // fire blast
    	{1183,62,711,158,159,160,17,36,556,5,565,1,0,0,0,0}, // wind wave
    	{1185,65,711,161,162,163,18,37,556,5,555,7,565,1,0,0},  // water wave
    	{1188,70,711,164,165,166,19,40,556,5,557,7,565,1,0,0}, // earth wave
    	{1189,75,711,155,156,157,20,42,556,5,554,7,565,1,0,0}, // fire wave
    	{1153,3,716,102,103,104,0,13,555,3,557,2,559,1,0,0},  // confuse
    	{1157,11,716,105,106,107,0,20,555,3,557,2,559,1,0,0},  // weaken
    	{1161,19,716,108,109,110,0,29,555,2,557,3,559,1,0,0}, // curse
    	{1542,66,729,167,168,169,0,76,557,5,555,5,566,1,0,0}, // vulnerability
    	{1543,73,729,170,171,172,0,83,557,8,555,8,566,1,0,0}, // enfeeble
    	{1562,80,729,173,174,107,0,90,557,12,555,12,556,1,0,0},  // stun
    	{1572,20,711,177,178,181,0,30,557,3,555,3,561,2,0,0}, // bind
    	{1582,50,711,177,178,180,2,60,557,4,555,4,561,3,0,0}, // snare
    	{1592,79,711,177,178,179,4,90,557,5,555,5,561,4,0,0}, // entangle
    	{1171,39,724,145,146,147,15,25,556,2,557,2,562,1,0,0},  // crumble undead
    	{1539,50,708,87,88,89,25,42,554,5,560,1,0,0,0,0}, // iban blast
    	{12037,50,1576,327,328,329,19,30,560,1,558,4,0,0,0,0}, // magic dart
    	{1190,60,811,0,0,76,20,60,554,2,565,2,556,4,0,0}, // sara strike
    	{1191,60,811,0,0,77,20,60,554,1,565,2,556,4,0,0}, // cause of guthix
    	{1192,60,811,0,0,78,20,60,554,4,565,2,556,1,0,0}, // flames of zammy
    	{12445,85,10503,1841,1842,1843,0,65,563,1,562,1,560,1,0,0}, // teleblock
    	// Ancient Spells
    	{12939,50,1978,0,384,385,13,30,560,2,562,2,554,1,556,1}, // smoke rush < -- Trying to use this but change GFX
    	{12987,52,1978,0,378,379,14,31,560,2,562,2,566,1,556,1}, // shadow rush
    	{12901,56,1978,0,0,373,15,33,560,2,562,2,565,1,0,0},  // blood rush
    	{12861,58,1978,0,360,361,16,34,560,2,562,2,555,2,0,0},  // ice rush
    	{12963,62,1979,0,0,389,19,36,560,2,562,4,556,2,554,2}, // smoke burst
    	{13011,64,1979,0,0,382,20,37,560,2,562,4,556,2,566,2}, // shadow burst 
    	{12919,68,1979,0,0,376,21,39,560,2,562,4,565,2,0,0},  // blood burst
    	{12881,70,1979,0,0,363,22,40,560,2,562,4,555,4,0,0}, // ice burst
    	{12951,74,1978,0,386,387,23,42,560,2,554,2,565,2,556,2}, // smoke blitz
    	{12999,76,1978,0,380,381,24,43,0,0,0,0,0,0,0,0}, // shadow blitz
    	{12911,80,1978,0,374,375,25,45,560,2,565,4,0,0,0,0}, // blood blitz
    	{12871,82,1978,366,0,367,26,46,560,2,565,2,555,3,0,0}, // ice blitz
    	{12975,86,1979,0,0,391,27,48,560,4,565,2,556,4,554,4}, // smoke barrage
    	{13023,88,1979,0,0,383,28,49,560,4,565,2,556,4,566,3}, // shadow barrage
    	{12929,92,1979,0,0,377,29,51,560,4,565,4,566,1,0,0},  // blood barrage
    	{12891,94,1979,0,0,369,30,52,560,4,565,2,555,6,0,0}, // ice barrage
    	{13095,97,10518,1853,0,1854,31,53,563,14,555,15,0,0,0,0}, // miasmic barrage
    	{-1,80,811,301,0,0,0,0,554,3,565,3,556,3,0,0}, // charge
    	{-1,21,712,1696,0,0,0,10,554,3,561,1,0,0,0,0}, // low alch
    	{-1,55,713,1691,0,0,0,20,554,5,561,1,0,0,0,0}, // high alch
    	//{-1,33,728,142,143,144,0,35,556,1,563,1,0,0,0,0} // telegrab
    	};
    And do far I have this (I know its terrible but ive just been testing)
    Code:
    if (c.playerEquipment[c.playerWeapon] == 19476
    			&& c.spellId == 33 
    			&& !c.autocasting){
    	c.spellId = 33;
    	c.gfx0(1207);
    	c.usingMagic = true;
    	c.doubleHit = true;
    	c.autocasting = true;
    	}
    This is the autocasting id for the magic spells.
    Code:
    public String getSpellName(int id) {
    		switch (id) {
    			case 0: return "Air Strike";
    			case 1: return "Water Strike";
    			case 2: return "Earth Strike";
    			case 3: return "Fire Strike";
    			case 4: return "Air Bolt";
    			case 5: return "Water Bolt";
    			case 6: return "Earth Bolt";
    			case 7: return "Fire Bolt";
    			case 8: return "Air Blast";
    			case 9: return "Water Blast";
    			case 10: return "Earth Blast";
    			case 11: return "Fire Blast";
    			case 12: return "Air Wave";
    			case 13: return "Water Wave";
    			case 14: return "Earth Wave";
    			case 15: return "Fire Wave";
    			case 32: return "Shadow Rush";
    			case 33: return "Smoke Rush";
    			case 34: return "Blood Rush";
    			case 35: return "Ice Rush";
    			case 36: return "Shadow Burst";
    			case 37: return "Smoke Burst";
    			case 38: return "Blood Burst";
    			case 39: return "Ice Burst";
    			case 40: return "Shadow Blitz";
    			case 41: return "Smoke Blitz";
    			case 42: return "Blood Blitz";
    			case 43: return "Ice Blitz";
    			case 44: return "Shadow Barrage";
    			case 45: return "Smoke Barrage";
    			case 46: return "Blood Barrage";
    			case 47: return "Ice Barrage";
    			case 48: return "Miasmic Barrage";
    			default:
    			return "Select Spell";
    		}
    	}
    Thank you for reading this and helping me out.
    Last edited by Solnes; 05-09-2018 at 12:30 AM.
    Thanks for reading
    King Regards,
    Solnes

    Owner & Developer of
    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. [PI] Custom usertitles for special users
    By Lamprecht in forum Snippets
    Replies: 24
    Last Post: 11-04-2011, 11:04 AM
  2. [317 PI] custom magic interface,
    By Ash Ketchum in forum Requests
    Replies: 2
    Last Post: 08-31-2011, 12:08 PM
  3. [PI]Adding GFX For NPC's
    By Anonymous in forum Help
    Replies: 9
    Last Post: 05-25-2011, 04:44 AM
  4. Will make PI custom webclients for 5$
    By Richguy10 in forum Requests
    Replies: 3
    Last Post: 01-26-2011, 11:19 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
  •