Thread: [RS3] Previous Destination Varbit

Results 1 to 1 of 1
  1. #1 [RS3] Previous Destination Varbit 
    Registered Member
    Join Date
    Sep 2017
    Posts
    123
    Thanks given
    47
    Thanks received
    63
    Rep Power
    72
    Small QoL update for RS3 servers; Changing the home teleport button text with a varbit sent based on lodestone.

    Go from this:
    Attached image

    To this:
    Attached image



    This is the varbit you need to send:
    Code:
    getVarsManager().sendVarBit(41, previousLodestoneVarbit);
    Using this decompiled script 10905, you can replace the variable (int) previousLodestoneVarbit with the lodestone you need:
    Code:
    /* 
     * Script decompiled by jagdecs2 v3.5
     * Decompiler opts:
     * --------------
     * t1LocalAnalyzer:true
     * t2LocalAnalyzer:true
     * beautifier:true
     * --------------
     * Made by mgi125 ;)
     */
    
    
    void script_10905(int a0) {
    	string var1;
    	string var0 = "";
    	switch (domain_0['cfg3'].bitcfg41) {
    		case 1:
    			var1 = "Bandit Camp";
    			break;
    		case 2:
    			var1 = "Lunar Isle";
    			break;
    		case 3:
    			var1 = "Al Kharid";
    			break;
    		case 4:
    			var1 = "Ardougne";
    			break;
    		case 5:
    			var1 = "Burthorpe";
    			break;
    		case 6:
    			var1 = "Catherby";
    			break;
    		case 7:
    			var1 = "Draynor";
    			break;
    		case 8:
    			var1 = "Edgeville";
    			break;
    		case 9:
    			var1 = "Falador";
    			break;
    		case 10:
    			var1 = "Lumbridge";
    			break;
    		case 11:
    			var1 = "Port Sarim";
    			break;
    		case 12:
    			var1 = "Seers' Village";
    			break;
    		case 13:
    			var1 = "Taverley";
    			break;
    		case 14:
    			var1 = "Varrock";
    			break;
    		case 15:
    			var1 = "Yanille";
    			break;
    		case 16:
    			var1 = "Canifis";
    			break;
    		case 17:
    			var1 = "Eagles' Peak";
    			break;
    		case 18:
    			var1 = "Fremennik Province";
    			break;
    		case 19:
    			var1 = "Karamja";
    			break;
    		case 20:
    			var1 = "Oo'glog";
    			break;
    		case 21:
    			var1 = "Tirannwn";
    			break;
    		case 22:
    			var1 = "Wilderness Volcano";
    			break;
    		case 23:
    			var1 = "Ashdale";
    			break;
    		case 24:
    			var1 = "Prifddinas";
    			break;
    		case 26:
    			var1 = "Menaphos";
    			break;
    		default:
    			var1 = "Previous Destination";
    	}
    	_if_setop(2, a0, var1);
    	return;
    }
    I won't provide the exact method on how you will do this to function properly. You must add that yourself. But just a little tip, to send this varbit on login and everytime a player uses the lodestone network.
    Reply With Quote  
     

  2. Thankful user:



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: 137
    Last Post: 11-02-2020, 02:44 PM
  2. [RS3] RS3 905 Cache new link!
    By Castiel in forum Downloads
    Replies: 29
    Last Post: 03-11-2020, 07:18 AM
  3. Replies: 108
    Last Post: 02-27-2020, 10:47 PM
  4. [RS3] Nexus rs3 araxxor
    By ARMAR X K1NG in forum Show-off
    Replies: 4
    Last Post: 11-11-2018, 04:04 AM
  5. [RS3] RS3 Authentication login box
    By Krewalla in forum Help
    Replies: 3
    Last Post: 08-27-2018, 02:44 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
  •