Thread: Perfect High and low Alch -- Step closer to perfect magic -- and runescape

Page 1 of 5 123 ... LastLast
Results 1 to 10 of 49
  1. #1 High and low Alch -- Step closer to perfect magic -- and runescape 
    Banned

    Join Date
    Jan 2008
    Posts
    1,778
    Thanks given
    0
    Thanks received
    7
    Rep Power
    0
    REmoved... get the code urself ..

    And slim.. if u think there is a other way to code high alch post it here.. cuz far as i know all code's are the same.. (wit small edit's)
     

  2. #2  
    FutureDesigner1
    Guest
    Quote Originally Posted by Callled Enzo View Post
    Purpose: Making High alch and low Alch work proper

    Difficulty: Depends on your knowledge of Java

    Assumed Knowledge:
    C&P??

    Tested Server Base:
    Cleaned v4.

    Classes Modified:
    Client.java

    DONT FORGET TO LOOK FOR MY [Only registered and activated users can see links. ]

    Step 1: Open up client.java and search

    Code:
    case 237:
    This is the case we use for magic on items (in invertory)

    Step 2:

    When u found that it should look like this

    Code:
    case 237: //Magic on Items
    		int castOnSlot = inStream.readSignedWord();
    		int castOnItem = inStream.readSignedWordA();
    		int e3 = inStream.readSignedWord();
    		int castSpell = inStream.readSignedWordA();
    Wit some stuff under.. perhaps enchants (if u added my other tut)

    Step 3:

    If u found the case .. add right under those lines ore above another spell

    the following :

    Code:
    if(castSpell == 1178) //H Alch
    {
    if(playerLevel[6] >= 55) 
    {
    if((playerHasItemAmount(561, 1)==false) || (playerHasItemAmount(554, 5)==false))
    {
    sendMessage("You do not have enough runes to cast this spell.");
    }
    else if((playerHasItemAmount(561, 1)==true) && (playerHasItemAmount(554, 5)==true))
    {
    alchvaluez = (alchvaluez / 3);
    deleteItem(castOnItem, castOnSlot, 1);
    addItem(995, alchvaluez);
    addSkillXP(150, 6);
    startAnimation(713);
    gfx100(113);
    deleteItem(561,getItemSlot(561), 1);
    deleteItem(554,getItemSlot(554), 5);
    setSidebarMage();
    } 
    }
    else if(playerLevel[6] <= 55) 
    {
    sendMessage("Your magic level is not high enough for this spell.");
    }
    }
    
    if(castSpell == 1162) //L Alch
    {
    if(playerLevel[6] >= 21) 
    {
    if((playerHasItemAmount(561, 1)==false) || (playerHasItemAmount(554, 3)==false))
    {
    sendMessage("You do not have enough runes to cast this spell.");
    }
    else if((playerHasItemAmount(561, 1)==true) && (playerHasItemAmount(554, 3)==true))
    {
    alchvaluez = (alchvaluez / 5);
    deleteItem(castOnItem, castOnSlot, 1);
    addItem(995, alchvaluez);
    addSkillXP(70, 6);
    startAnimation(712);
    gfx100(112);
    deleteItem(561,getItemSlot(561), 1);
    deleteItem(554,getItemSlot(554), 3);
    setSidebarMage();
    } 
    }
    else if(playerLevel[6] <= 21) 
    {
    sendMessage("Your magic level is not high enough for this spell.");
    }
    }
    Step 4:

    Add the following also to make it after u click on a item that it goes back the magic book.. (i didnt knew if it was like this )

    Code:
    private void setSidebarMage() {
    try {
    outStream.createFrame(106); //Writes the frame 106 out.
    outStream.writeByteC(6); //Tells client to switch to the magic interface
    updateRequired = true; //Updates
    appearanceUpdateRequired = true; //Updates
    } catch(Exception E) {
    sendMessage("Error switching sidebar back to the magic interface! ~ Called Enzo");
    }
    }
    Thats about it... dont forget to check my [Only registered and activated users can see links. ]
    Your a bad *** coder
     

  3. #3  
    Banned

    Join Date
    Jan 2008
    Posts
    1,778
    Thanks given
    0
    Thanks received
    7
    Rep Power
    0
    Quote Originally Posted by FutureDesigner1 View Post
    Your a bad *** coder
    If its a comment : i know

    If its not... : ummm ok?
     

  4. #4  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,881
    Thanks given
    1,854
    Thanks received
    4,741
    Rep Power
    5000
    alchvaluez = (alchvaluez / 3);

    ^ Why it needs to be divided by 3



     

  5. #5  
    Banned

    Join Date
    Jan 2008
    Posts
    1,778
    Thanks given
    0
    Thanks received
    7
    Rep Power
    0
    Quote Originally Posted by R E A P E R View Post
    alchvaluez = (alchvaluez / 3);

    ^ Why it needs to be divided by 3
    Well.. i tought that it was the same as in rs.. but i just checked tip.it and runehq.. but they didnt metioned it.. thats ur answer...

    But u can easly edit that
     

  6. #6  
    nathan1221
    Guest
    Great TuT (mts)
     

  7. #7  
    Soulze
    Guest
    Nice Enzo, should go in configuration though.
     

  8. #8  
    Ian...
    Guest
    Again Another Excellent Post.
    Lovely Use Of Mask 100,
    Usualy people Use StillGfx Sheit.
    Keep Up The Good Work.
     

  9. #9  
    Banned

    Join Date
    Jan 2008
    Posts
    1,778
    Thanks given
    0
    Thanks received
    7
    Rep Power
    0
    Quote Originally Posted by Ian... View Post
    Again Another Excellent Post.
    Lovely Use Of Mask 100,
    Usualy people Use StillGfx Sheit.
    Keep Up The Good Work.
    Thank you i will if i post my projectile method.. more magic stuff following
     

  10. #10  
    Registered Member
    Anton's Avatar
    Join Date
    Jan 2008
    Posts
    1,197
    Thanks given
    0
    Thanks received
    5
    Rep Power
    249
    This needs timers, then it'll be perfect, u can mass it.
     

Page 1 of 5 123 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •