Divinerscape

Divinerscape beta 562 And 508
 
HomeCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Dota 6.78 Ai
Tue Feb 18, 2014 5:14 am by chaunnef

» Autodata 3.38 Suomi Torrent
Tue Feb 18, 2014 3:35 am by chaunnef

» Los Reyes De Arranque Puro Pinche Party Rar
Fri Feb 14, 2014 5:51 pm by chaunnef

» SEVER NEEDS WORK!
Sat Jun 16, 2012 11:48 am by mosf1415

» Keep spawning at falador??? when login with a new account
Mon Aug 16, 2010 8:22 am by Jimmy300114

» How to Add Costum items (like agile and H'ween stuff)
Sat Aug 14, 2010 8:35 am by Jimmy300114

» Making Npc's Talk???
Sat Aug 14, 2010 6:02 am by Jimmy300114

» How do you Make Construction and Making G.e Work???
Sat Aug 14, 2010 5:31 am by Jimmy300114

» omfg put the server on!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thu Aug 12, 2010 4:30 am by d3mons

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Share | 
 

 562 rs2hd caelum's base adding shops

Go down 
AuthorMessage
zeck
Owner
Owner


Posts : 27
Reputation : 3
Join date : 2010-01-17
Age : 27
Location : Florida

PostSubject: 562 rs2hd caelum's base adding shops   Sat May 01, 2010 4:31 pm

Ok, Look below to find out how to make shops.

Every 1 that is looking at this tut mostly has 562 rs2hd caelum's base----im gunan show you how to add more shops to it

ok First in your source go to scr>com>Rs2hd>content you should c Shops ShopHandler

go in to ShopHandler and scroll all the way to the bottem

you should see something like this

Code:

      case 5: // Shop Case
         //generalStore = false;
         shopopen(p, 5);
                items = GameEngine.shops.Shop2;
                itemsN = GameEngine.shops.Shop2N;
                  p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory
                  p.getActionSender().sendItems( -1, 63746, 556, items, itemsN);
           break;

P.S we are gunna make a range shop!!

ok anywayzback on topic. under break; you need to add this

Code:

                  case 6: // Shop Case
                  p.getActionSender().sendString("<img=0><col=ff0000>Range Shop<img=1>-<img=0><col=19fc01>All of your Ranging items are here<img=1>.", 620, 22);
         //isGeneral = false;
         shopopen(p, 6);
                items = GameEngine.shops.Range;
                itemsN = GameEngine.shops.RangeN;
                  p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory
                  p.getActionSender().sendItems( -1, 63746, 556, items, itemsN);
           break;

that is your range shop.
ok know scroll up a little and you should see something liek this

Code:

            case 5: //dwarf pickaxe shop
                switch (buttonId2) {
                    case 0:return 438;
                    case 1:return 436;
                    case 2:return 440;
                    case 3:return 442;
                    case 4:return 444;
                    case 5:return 453;
                    case 6:return 447;
                }
                break;

thats all you items in the shop that is what makes you able to buy items

ok under that you want to put all the items you want in the range shop.. here i give u this.. Under break; add

Code:

            case 6:
            switch (buttonId2) {//Range shop
               case 0:return 887;
               case 1:return 878;
               case 2:return 881;
               case 3:return 8882;
               case 4:return 9140;
               case 5:return 9141;
               case 6:return 9142;
               case 7:return 9144;
               case 8:return 9242;
               case 9:return 9243;
               case 10:return 9244;
               case 11:return 9245;
               case 12:return 13280;
               case 13:return 886;
               case 14:return 837;
                    case 15:return 839;
                    case 16:return 843;
                    case 17:return 845;
                    case 18:return 849;
                    case 19:return 853;
                    case 20:return 857;
                    case 21:return 861;
                    case 22:return 1065;
                    case 23:return 1135;
                    case 24:return 1099;
                    case 25:return 2487;
                    case 26:return 2489;
                    case 27:return 2491;
                    case 28:return 2493;
               case 29:return 2495;
               case 30:return 2497;
               case 31:return 2499;
               case 32:return 2501;
               case 33:return 2503;
               case 34:return 11235;
               case 35:return 11212;
               case 36:return 884;
               case 37:return 888;
               case 38:return 890;
               case 39:return 892;
            }
         break;

thats all the items for range

Know exit that and save. know in the same folder go to Shops.java and open it

you should c something liek this

Code:

package com.rs2hd.content;

/**
 * Created by IntelliJ IDEA.
 * User: Sere but dragnkk converted to rs2hd and gotta remake for 562
 * Date: 6-mrt-2009
 * Time: 10:33:19
 */
public class Shops {
        public int maxItems = 40;
    /*init shops */
        public int[] Generalshoplumb = {1755, 590, 5605, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 227};
        public int[] GeneralshoplumbN = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100};
        public int[] Generalshopvarrock = {1755, 590, 5605, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 227};
        public int[] GeneralshopvarrockN = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100};
        public int[] Generalshopfalador = {1755, 590, 5605, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 227};
        public int[] GeneralshopfaladorN = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100};
after 100}; that last part press enter and paste this under

Code:

public int[] Range = {887, 878, 881, 8882, 9140, 9141, 9142, 9144, 9242, 9243, 9244, 9245, 13280, 886, 837, 839, 843, 845, 849, 853, 857, 861, 1065, 1135, 1099, 2487, 2489, 2491, 2493, 2495, 2497, 2499, 2501, 2503, 11235, 11212, 884, 888, 890, 892};
public int[] RangeN = {1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000};

now it should look like this

Code:
                public int[] Generalshoplumb = {1755, 590, 5605, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 227};
        public int[] GeneralshoplumbN = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100};
        public int[] Generalshopvarrock = {1755, 590, 5605, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 227};
        public int[] GeneralshopvarrockN = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100};
        public int[] Generalshopfalador = {1755, 590, 5605, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 227};
        public int[] GeneralshopfaladorN = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100};
public int[] Range = {887, 878, 881, 8882, 9140, 9141, 9142, 9144, 9242, 9243, 9244, 9245, 13280, 886, 837, 839, 843, 845, 849, 853, 857, 861, 1065, 1135, 1099, 2487, 2489, 2491, 2493, 2495, 2497, 2499, 2501, 2503, 11235, 11212, 884, 888, 890, 892};
public int[] RangeN = {1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000};
(something related to that)

thats how many items you have in your shop other stuff.. now x that n save
now search for

SummonPacketHandler in the packethandler fodler
Ok open it and press ctrl+f and search for

Code:
case 561:
GameEngine.shopHandler.openshop(p, 5);
break;
under that add

Code:

case 584:
GameEngine.shopHandler.openshop(p, 6);
break;

that makes the shop open i think..

know x that and save go to the data file and look for npcs open it

after <list> add
<npc><id>584</id><location><x>2924</x><y>3443</y><z>0</z></location></npc>

that location is in edgeville in the shop part

save all and compile


Sorry for bad spelling and if you want to add more shops to make them open were it says "case (numbers):" in the case prompt instead of it being for example "case 584:" change it to the npc ID you want it to be and there you go and again sorry for bad spelling just wanted to finish this tutorial.......
Back to top Go down
View user profile http://divinerscape.forumotion.com
Erica



Posts : 1
Reputation : 0
Join date : 2010-04-22
Age : 26
Location : Michigan

PostSubject: wtf   Tue Jun 01, 2010 5:50 am

lol, were is the range shop?
Back to top Go down
View user profile
Chex

avatar

Posts : 4
Reputation : 0
Join date : 2010-06-15

PostSubject: Re: 562 rs2hd caelum's base adding shops   Wed Jun 16, 2010 10:17 pm

its great and all but i got a trimmed cape error >.<
Back to top Go down
View user profile
Chex

avatar

Posts : 4
Reputation : 0
Join date : 2010-06-15

PostSubject: Re: 562 rs2hd caelum's base adding shops   Wed Jun 16, 2010 10:24 pm

nvm just a shit source... :l
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: 562 rs2hd caelum's base adding shops   

Back to top Go down
 
562 rs2hd caelum's base adding shops
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Divinerscape :: Html, C++, Java, Server Tutorials-
Jump to: