Thread: Clue Scrolls.

Results 1 to 4 of 4
  1. #1 Clue Scrolls. 
    Registered Member anaxonda's Avatar
    Join Date
    Jan 2017
    Posts
    28
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Okay, so first and foremost i'm going to state that i'm really new to this sort of stuff.

    In my rsps, i have one click clue scrolls. (literally click and get reward) I spawned 28 elites so i could get a hold of what loots would be given and quickly realised i need to change the rate of elites. After using all 28 i ended up with like 9 Third-Age pieces which is way to many in my opinion, so i was hoping someone could nudge me in the right direction to changing the rarity of the rewards.

    Like I said, i'm noob and the most complicated tinkering i've done so far is adding NPC's and changing shop items.
    I love you. - Dizzy Rascal
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Nov 2015
    Age
    24
    Posts
    1,980
    Thanks given
    334
    Thanks received
    1,051
    Rep Power
    5000
    Find where the item-click action for those specific clue scrolls is handled, from there you should be able to locate the part generates the rewards.
    Reply With Quote  
     

  3. #3  
    Registered Member anaxonda's Avatar
    Join Date
    Jan 2017
    Posts
    28
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Tommeh View Post
    Find where the item-click action for those specific clue scrolls is handled, from there you should be able to locate the part generates the rewards.
    Spoiler for Here is the code i'm looking at:
    /**
    package server.model.minigames;

    import server.util.Misc;
    import server.model.players.Client;
    import server.model.players.Player;


    * Treasure Trails
    *
    * @author Genc
    *
    */

    public class TreasureTrails {

    public static int lowLevelReward[] = {
    1077, 1125, 1165, 1195,
    1297, 1367, 853, 7390,
    7392, 7394, 7396, 7386,
    7388, 1099, 1135, 1065,
    851
    };
    public static int mediemLevelReward[] = {
    1073, 1123, 1161, 1199,
    1301, 1371, 857, 2577,
    2579, 2487, 2493, 2499,
    2631, 855
    };
    public static int highLevelReward[] = {
    1079, 1093, 1113, 1127,
    1147, 1163, 1185, 1201,
    1275, 1303, 1319, 1333,
    1359, 1373, 2491, 2497,
    2503, 861, 859, 2581,
    2651, 1079, 1093, 1113,
    1127, 1147, 1163, 1185,
    1201, 1275, 1303, 1319,
    1333, 1359, 1373, 2491,
    2497, 2503, 861, 859,
    2581, 2651,
    };
    public static int eliteLevelReward[] = {
    391, 10330, 10332, 1127,
    1147, 1163, 1185, 1201,
    1275, 391, 1319, 1333,
    1359, 1373, 2491, 2497,
    391, 861, 859, 2581,
    2651, 1079, 1093, 1113,
    1127, 1147, 1163, 1185,
    1201, 1275, 1303, 1319,
    1333, 1359, 391, 2491,
    2497, 2503, 861, 859,
    2581, 391, 14484, 10334, 10336, 10338, 10340, 10342, 10344, 10346, 10348, 10350, 10352
    };

    public static int lowLevelStacks[] = {
    995, 380, 561, 886,
    };
    public static int mediumLevelStacks[] = {
    995, 374, 561, 563, 890,
    };
    public static int highLevelStacks[] = {
    995, 386, 561, 563, 560, 892
    };
    public static int eliteLevelStacks[] = {
    995, 386, 561, 563, 560, 892
    };
    public static int allStacks[] = {
    995, 380, 561, 886,
    374, 561, 563, 890,
    386, 561, 563, 560,
    892
    };

    public static void addClueReward(Client c, int clueLevel) {
    int chanceReward = Misc.random(2);
    if(clueLevel == 0) {
    switch (chanceReward) {
    case 0:
    displayReward(c, lowLevelReward[Misc.random(16)], 1, lowLevelReward[Misc.random(16)], 1, lowLevelStacks[Misc.random(3)], 1 + Misc.random(150));
    break;
    case 1:
    displayReward(c, lowLevelReward[Misc.random(16)], 1, lowLevelStacks[Misc.random(3)], 1 + Misc.random(150), -1, 1);
    break;
    case 2:
    displayReward(c, lowLevelReward[Misc.random(16)], 1, -1, 1, -1, 1);
    break;
    }
    } else if(clueLevel == 1) {
    switch (chanceReward) {
    case 0:
    displayReward(c, mediemLevelReward[Misc.random(13)], 1, mediemLevelReward[Misc.random(13)], 1, mediumLevelStacks[Misc.random(4)], 1 + Misc.random(200));
    break;
    case 1:
    displayReward(c, mediemLevelReward[Misc.random(13)], 1, mediumLevelStacks[Misc.random(4)], 1 + Misc.random(200), -1, 1);
    break;
    case 2:
    displayReward(c, mediemLevelReward[Misc.random(13)], 1, -1, 1, -1, 1);
    break;
    }
    } else if(clueLevel == 2) {
    switch (chanceReward) {
    case 0:
    displayReward(c, highLevelReward[Misc.random(52)], 1, highLevelReward[Misc.random(52)], 1, highLevelStacks[Misc.random(5)], 1 + Misc.random(350));
    break;
    case 1:
    displayReward(c, highLevelReward[Misc.random(52)], 1, highLevelStacks[Misc.random(5)], 1 + Misc.random(350), -1, 1);
    break;
    case 2:
    displayReward(c, highLevelReward[Misc.random(52)], 1, -1, 1, -1, 1);
    break;
    }
    } else if(clueLevel == 3) {
    switch (chanceReward) {
    case 0:
    displayReward(c, eliteLevelReward[Misc.random(59)], 1, eliteLevelReward[Misc.random(59)], 1, eliteLevelStacks[Misc.random(5)], 1 + Misc.random(350));
    break;
    case 1:
    displayReward(c, eliteLevelReward[Misc.random(59)], 1, eliteLevelStacks[Misc.random(5)], 1 + Misc.random(350), -1, 1);
    break;
    case 2:
    displayReward(c, eliteLevelReward[Misc.random(59)], 1, -1, 1, -1, 1);
    break;
    }
    }
    }

    public static void displayReward(Client c, int item, int amount, int item2, int amount2, int item3, int amount3) {
    int[] items = {
    item, item2, item3
    };
    int[] amounts = {
    amount, amount2, amount3
    };
    c.outStream.createFrameVarSizeWord(53);
    c.outStream.writeWord(6963);
    c.outStream.writeWord(items.length);
    for(int i = 0; i < items.length; i++) {
    if(c.playerItemsN[i] > 254) {
    c.outStream.writeByte(255);
    c.outStream.writeDWord_v2(amounts[i]);
    } else {
    c.outStream.writeByte(amounts[i]);
    }
    if(items[i] > 0) {
    c.outStream.writeWordBigEndianA(items[i] + 1);
    } else {
    c.outStream.writeWordBigEndianA(0);
    }
    }
    c.outStream.endFrameVarSizeWord();
    c.flushOutStream();
    c.getItems().addItem(item, amount);
    c.getItems().addItem(item2, amount2);
    c.getItems().addItem(item3, amount3);
    c.getPA().showInterface(6960);
    }

    }


    I think, that this is where i need to be??? Which part should i be editing for the rate?
    I love you. - Dizzy Rascal
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2014
    Posts
    259
    Thanks given
    2
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by anaxonda View Post
    Okay, so first and foremost i'm going to state that i'm really new to this sort of stuff.

    In my rsps, i have one click clue scrolls. (literally click and get reward) I spawned 28 elites so i could get a hold of what loots would be given and quickly realised i need to change the rate of elites. After using all 28 i ended up with like 9 Third-Age pieces which is way to many in my opinion, so i was hoping someone could nudge me in the right direction to changing the rarity of the rewards.

    Like I said, i'm noob and the most complicated tinkering i've done so far is adding NPC's and changing shop items.
    Just add more bullshit items on it, it will changes the rates
    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. [TUT] 75% Clue Scrolls V1 !!!
    By Martin in forum Tutorials
    Replies: 20
    Last Post: 10-24-2008, 06:49 AM
  2. 100% Clue Scroll base
    By Cascade in forum Tutorials
    Replies: 11
    Last Post: 08-08-2008, 06:11 PM
  3. Clue Scrolls [9 Scenarios]
    By Cascade in forum Tutorials
    Replies: 12
    Last Post: 08-04-2008, 08:56 PM
  4. Clue scroll - with item on it.
    By ViperSniper in forum Configuration
    Replies: 20
    Last Post: 06-29-2008, 02:47 AM
Tags for this Thread

View Tag Cloud

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