Thread: Transforming Spell! YAY!

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33
  1. #1 Transforming Spell! UPDATED WITH RANDOM NPC's! 
    Registered Member Icepkz's Avatar
    Join Date
    May 2007
    Posts
    219
    Thanks given
    0
    Thanks received
    0
    Rep Power
    24
    OMG! IM SO HAPPY LAWL! LIKE REALLY!
    Well i came across this spell while working on my brothers Wizardscape Project
    and i did it! works too, i am now trying to get it, to choose a random npc
    but for the moment its just your chosen npc lawl!

    Purpose: To replace confuse (if you want), with a spell that transfroms your enemy to a npc

    Difficulty: NOT HARD AT ALL! 1/10

    Assumed Knowledge: C & P

    Server Base: Pimpscape (Works on any server with magic on it)

    Classes Modified: client.java

    Procedure

    - Adding the Spell -
    Step 1: Open client.java and search for boolean process
    and
    Add this above your public boolean process:

    Code:
    public static int[] rnpc = {3216,3231,3249,3228}; // theses being your random npc's by bambam 
    
    public static int rnpc() 
    {
    	return rnpc[(int)(Math.random()*rnpc.length)]; //by bambam
    }
    change the npc's to what npc's u want to be included

    Step 2: In client.java before one of your spells like
    Code:
    if (spellID == 1152)
    Add:

    Code:
    if (spellID == 1153) { // Confuse
    ProjectileSpellPlayer(82, 473, 551, absY, absX, offsetY, offsetX, index, EnemyY, EnemyX, 12, 1, 566, 558, 2, 1);
    startAnimation(2080);
    castOnPlayer.inCombat();
    stillgfx(82, castOnPlayer.absY, castOnPlayer.absX);
    inCombat();
    castOnPlayer.npcId = rnpc();
    castOnPlayer.isNpc = true;
    castOnPlayer.updateRequired = true;
    castOnPlayer.appearanceUpdateRequired = true;
    actionTimer = 10;
    pSay("Transform!");
    teleportToX = absX;
    teleportToY = absY;
    }
    Save, compile and run!

    CREDITS: Bam Bam (50% For Npc Randoms), Me (50% for making the tut and spell)
    Thanks Bam Bam for random npcs

    Thanks
    Please post your comments!
    Hope you enjoy
    :::. Icepkz .:::

    .::.. 1033 R3p Thx ALL ! ..::.
     

  2. #2  
    danieb
    Guest
    haha thats cool grats on your find
     

  3. #3  
    x19
    Guest
    Great work... keep it up.

    X19
     

  4. #4  
    Registered Member Icepkz's Avatar
    Join Date
    May 2007
    Posts
    219
    Thanks given
    0
    Thanks received
    0
    Rep Power
    24
    yea thanks

    .::.. 1033 R3p Thx ALL ! ..::.
     

  5. #5  
    Registered Member
    Join Date
    Feb 2007
    Posts
    104
    Thanks given
    0
    Thanks received
    0
    Rep Power
    32
    Thanks great work +rep im gonna use it
     

  6. #6  
    Java©
    Guest
    won't use it but never thought of it rep+
     

  7. #7  
    Registered Member Icepkz's Avatar
    Join Date
    May 2007
    Posts
    219
    Thanks given
    0
    Thanks received
    0
    Rep Power
    24
    thanks for replies and rep!
    repped you both back
    hope you like it

    lol java made ur rep 14 w00t

    .::.. 1033 R3p Thx ALL ! ..::.
     

  8. #8  
    Registered Member
    BamBam's Avatar
    Join Date
    Jan 2007
    Posts
    270
    Thanks given
    24
    Thanks received
    8
    Rep Power
    153
    To make it a random NPC just do this

    add this above your public boolean
    Code:
    public static int[] rnpc = {3216,3231,3249,3228}; // theses being your random npc's by bambam
    
    public static int rnpc() 
    {
    	return rnpc[(int)(Math.random()*rnpc.length)]; //by bambam
    }
    then replace this
    Code:
    castOnPlayer.npcId = 47;
    with this
    Code:
    castOnPlayer.npcId = rnpc(); //by bambam
    Hope that helped.

    Picture

    Runekeep®
     

  9. #9  
    Registered Member Icepkz's Avatar
    Join Date
    May 2007
    Posts
    219
    Thanks given
    0
    Thanks received
    0
    Rep Power
    24
    sweet thanks alot bam bam!!!

    rep+
    made ur rep 8 lol

    .::.. 1033 R3p Thx ALL ! ..::.
     

  10. #10  
    Registered Member
    BamBam's Avatar
    Join Date
    Jan 2007
    Posts
    270
    Thanks given
    24
    Thanks received
    8
    Rep Power
    153
    Ya, no problem, glad I could help

    Just take my post and edit into your original post, just give me a little credit for helping ya :wink:

    Runekeep®
     

Page 1 of 4 123 ... 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. Replies: 13
    Last Post: 03-09-2010, 03:05 PM
  2. Npc transforming method?
    By Soulzz in forum Help
    Replies: 1
    Last Post: 08-01-2009, 03:56 PM
  3. Npc transforming! Best ever! [vid]
    By mige5 in forum Projects
    Replies: 17
    Last Post: 12-29-2008, 01:15 AM
  4. Transforming Players
    By Turbo in forum Tutorials
    Replies: 6
    Last Post: 08-30-2007, 01:28 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
  •