PDA

View Full Version : 562 rs2hd adding shops.



Divine-X
June 18th, 2010, 23:20
Well.... I'm not sure if anyone posted this already but if anyone did can you tell me i'll remove my tutorial on this. Well first things first open up your source.

scr>com>Rs2hd>content. You should see Shops.java, and ShopHandler.java. Open up ShopHandler.java. Next you should see something like this or w/e.



case 8: // Shop Case
//generalStore = false;
p.getActionSender().sendString("Skillcapes Shop. Items free!", 620, 22);
shopopen(p, 5);
items = GameEngine.shops.Rares;
itemsN = GameEngine.shops.RaresN;
p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory
p.getActionSender().sendItems( -1, 63746, 556, items, itemsN);
break;

At the bottom. Ok now all you have to do is make another shop case. You should already have upto 8 shop cases from the source by it's self from being coded already. But if you don't lets just make a new case/shop number. (We are going to be making a Rare item shop.)

Ok under
break; Add this.



case 9: // Shop Case
//generalStore = false;
p.getActionSender().sendString("Rare items shop!", 620, 22);
shopopen(p, 5);
items = GameEngine.shops.Rares;
itemsN = GameEngine.shops.RaresN;
p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory
p.getActionSender().sendItems( -1, 63746, 556, items, itemsN);
break;


Ok now that we are done with that... (Make sure where it says "items = GameEngine.shops.Rares, and ItemsN = GameEngine.shops.RaresN" later on in the tutorial I will explain why this has to be matched correctly)We are going to scroll up and look for
case 3:

Since you maybe a beginner in server coding i'm going to do this very detailed, so you won't error on your server.

Once you have found "case 3:" you are going to add this under the "break;" for case 3. Make sure to remember this all shops only can go up to 40 items. So thats 0-40 not 1-40.



case 9:
switch (buttonId2) {//Rare item shop
case 0:return 1038;
case 1:return 1040;
case 2:return 1042;
case 3:return 1044;
case 4:return 1046;
case 5:return 1048;
case 6:return 1050;
case 7:return 1053;
case 8:return 1055;
case 9:return 1057;
}
break;


Ok now to tell you what each case and what the return means.. "case 0:return 1038;" Means slot/space 1 in a shop and it will send the item id that the return is told to send 1038 is a red partyhat so of course the first thing in the shop your going to see is a red partyhat. But if you weren't looking at this tutorial it you would have to put it like this "case 0:return itemId;" Ok so now that were done with that.. save it and go to Shops.java.

You should see something like this or related to this..



public int[] Skillcapes = {9747, 9748, 9749, 9750, 9751, 9752, 9753, 9754, 9755, 9756, 9757, 9756};
public int[] SkillcapesN = {100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000};


What we are going to do is make a copy of this but ok remember in the start of the tutorial I mentioned the Rares and RaresN well thats were that comes in, Whatever you named the shop in the start of the tutorial the public int[] for it has to be the same. So it should look like this..


[CODE]
public int[] Rares = {};
public int[] RaresN = {};


Ok the first public int is the item ids. The second one "RaresN" is the quantity/amount of the item there should be in shop. Ok now remember when we were doing the shop cases for the shop? well now we are going to use them again so it now the public int's should look like this.



public int[] Rares = {1038, 1040, 1042, 1044, 1046, 1048, 1050, 1053, 1055, 1057};
public int[] RaresN = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100};


Ok now that were done here, we are going to get the npc location and the npc you want. (I'm going to be using party pete and catherby) Ok well this is mine:



<npc><id>659</id><location><x>2806</x><y>3434</y><z>0</z></location></npc>

Remember the npc Id thats going to be important.
Thats party pete spawned in catherby.

Now we are going to "src\com\rs2hd\packethandler\SummonPacketHandler.ja va"

Scroll down and search for:


/*
*Shops Start
*/

Once you have found that add this under one of the breaks for shops.
Ok remember when I said remember the npc id? Well in SummonPacketHandler.java the npc Id is the Case and the Case is to open the shop correctly lol. :D



case 659:
GameEngine.shopHandler.openshop(p, 9);
break;

And your done compile and have fun making new shops.

jamie
June 19th, 2010, 05:12
omg kewl my friend was looking for this. I'll give him da link laterz.

Divine-X
June 20th, 2010, 17:47
Mhm. Your welcome.

Chronicscape
June 22nd, 2010, 09:32
i followed it right and everything yet my shop shows no items inside... what do you think im missing? great tutoril btw

Trapt
June 22nd, 2010, 09:39
This is a common glitch. Make sure the shophandler items and the shops items are in the same order

Emily
June 22nd, 2010, 10:06
Ugh nice tutorial. Cba seeing those old tutorials so sorry if i flame. Nice job.

Gawdz
June 22nd, 2010, 11:04
i agree nice tut :p

Divine-X
June 22nd, 2010, 15:25
Mm... Thanks I guess Emily.

Divine-X
June 22nd, 2010, 15:26
I'm thinking about releasing another tutorial that should help out I guess?

Klomp3
June 22nd, 2010, 16:59
Good job! I'll use it on ma server ;)

Chronicscape
June 22nd, 2010, 17:40
Well Trapt i did but ima show u my shop and handler ints so u can see for youself its all correct and in order... its really sad tho items still dotn show up...

public int[] Armourshop = {13666, 14596, 13676, 13671, 13670, 13669, 13668, 13667, 14107, 13958, 13961, 13964, 13967, 13970, 14097, 14096, 14095, 14094, 13677, 13678, 13679, 13680, 14594, 14593, 14592};
public int[] ArmourshopN = {100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000};

case 10:
switch (buttonId2) {//Armourshop
case 0:return 13666;
case 1:return 14596;
case 2:return 13676;
case 3:return 13671;
case 4:return 13670;
case 5:return 13669;
case 6:return 13668;
case 7:return 13667;
case 8:return 14107;
case 9:return 13958;
case 10:return 13961;
case 11:return 13964;
case 12:return 13967;
case 13:return 13970;
case 14:return 14097;
case 15:return 14096;
case 16:return 14095;
case 17:return 14094;
case 18:return 13677;
case 19:return 13678;
case 20:return 13679;
case 21:return 13680;
case 22:return 14594;
case 23:return 14593;
case 24:return 14592;
}
break;

TehCow
June 22nd, 2010, 18:02
Nice, dont use 562 tho.

finalpk
June 28th, 2010, 18:37
this isn't so hard, but nice tut for beginners

Sarcasm L
July 11th, 2010, 23:17
src\com\rs2hd\content\ShopHandler.java:615: cannot find symbol
symbol : variable Rares
location: class com.rs2hd.content.Shops
items = GameEngine.shops.Rares;
^
src\com\rs2hd\content\ShopHandler.java:616: cannot find symbol
symbol : variable shopsRaresN
location: class com.rs2hd.GameEngine
itemsN = GameEngine.shopsRaresN;
^
2 errors

wtf..

Sarcasm L
July 11th, 2010, 23:25
Compiling core...
src\com\rs2hd\content\ShopHandler.java:245: cannot return a value from method wh
ose result type is void
case 0:return 1038;
^
src\com\rs2hd\content\ShopHandler.java:246: cannot return a value from method wh
ose result type is void
case 1:return 1040;
^
src\com\rs2hd\content\ShopHandler.java:247: cannot return a value from method wh
ose result type is void
case 2:return 1042;
^
src\com\rs2hd\content\ShopHandler.java:248: cannot return a value from method wh
ose result type is void
case 3:return 1044;
^
src\com\rs2hd\content\ShopHandler.java:249: cannot return a value from method wh
ose result type is void
case 4:return 1046;
^
src\com\rs2hd\content\ShopHandler.java:250: cannot return a value from method wh
ose result type is void
case 5:return 1048;
^
src\com\rs2hd\content\ShopHandler.java:251: cannot return a value from method wh
ose result type is void
case 6:return 1050;
^
src\com\rs2hd\content\ShopHandler.java:252: cannot return a value from method wh
ose result type is void
case 7:return 1053;
^
src\com\rs2hd\content\ShopHandler.java:253: cannot return a value from method wh
ose result type is void
case 8:return 1055;
^
src\com\rs2hd\content\ShopHandler.java:254: cannot return a value from method wh
ose result type is void
case 9:return 1057;
^
src\com\rs2hd\content\ShopHandler.java:629: cannot find symbol
symbol : variable Rares
location: class com.rs2hd.content.Shops
items = GameEngine.shops.Rares;
^
src\com\rs2hd\content\ShopHandler.java:630: cannot find symbol
symbol : variable RaresN
location: class com.rs2hd.content.Shops
itemsN = GameEngine.shops.RaresN;
^
12 errors
Compiling loginserver...
src\com\rs2hd\content\ShopHandler.java:245: cannot return a value from method wh
ose result type is void
case 0:return 1038;
^
src\com\rs2hd\content\ShopHandler.java:246: cannot return a value from method wh
ose result type is void
case 1:return 1040;
^
src\com\rs2hd\content\ShopHandler.java:247: cannot return a value from method wh
ose result type is void
case 2:return 1042;
^
src\com\rs2hd\content\ShopHandler.java:248: cannot return a value from method wh
ose result type is void
case 3:return 1044;
^
src\com\rs2hd\content\ShopHandler.java:249: cannot return a value from method wh
ose result type is void
case 4:return 1046;
^
src\com\rs2hd\content\ShopHandler.java:250: cannot return a value from method wh
ose result type is void
case 5:return 1048;
^
src\com\rs2hd\content\ShopHandler.java:251: cannot return a value from method wh
ose result type is void
case 6:return 1050;
^
src\com\rs2hd\content\ShopHandler.java:252: cannot return a value from method wh
ose result type is void
case 7:return 1053;
^
src\com\rs2hd\content\ShopHandler.java:253: cannot return a value from method wh
ose result type is void
case 8:return 1055;
^
src\com\rs2hd\content\ShopHandler.java:254: cannot return a value from method wh
ose result type is void
case 9:return 1057;
^
src\com\rs2hd\content\ShopHandler.java:629: cannot find symbol
symbol : variable Rares
location: class com.rs2hd.content.Shops
items = GameEngine.shops.Rares;
^
src\com\rs2hd\content\ShopHandler.java:630: cannot find symbol
symbol : variable RaresN
location: class com.rs2hd.content.Shops
itemsN = GameEngine.shops.RaresN;
^
12 errors
Compiling packet handlers...
src\com\rs2hd\content\ShopHandler.java:245: cannot return a value from method wh
ose result type is void
case 0:return 1038;
^
src\com\rs2hd\content\ShopHandler.java:246: cannot return a value from method wh
ose result type is void
case 1:return 1040;
^
src\com\rs2hd\content\ShopHandler.java:247: cannot return a value from method wh
ose result type is void
case 2:return 1042;
^
src\com\rs2hd\content\ShopHandler.java:248: cannot return a value from method wh
ose result type is void
case 3:return 1044;
^
src\com\rs2hd\content\ShopHandler.java:249: cannot return a value from method wh
ose result type is void
case 4:return 1046;
^
src\com\rs2hd\content\ShopHandler.java:250: cannot return a value from method wh
ose result type is void
case 5:return 1048;
^
src\com\rs2hd\content\ShopHandler.java:251: cannot return a value from method wh
ose result type is void
case 6:return 1050;
^
src\com\rs2hd\content\ShopHandler.java:252: cannot return a value from method wh
ose result type is void
case 7:return 1053;
^
src\com\rs2hd\content\ShopHandler.java:253: cannot return a value from method wh
ose result type is void
case 8:return 1055;
^
src\com\rs2hd\content\ShopHandler.java:254: cannot return a value from method wh
ose result type is void
case 9:return 1057;
^
src\com\rs2hd\content\ShopHandler.java:629: cannot find symbol
symbol : variable Rares
location: class com.rs2hd.content.Shops
items = GameEngine.shops.Rares;
^
src\com\rs2hd\content\ShopHandler.java:630: cannot find symbol
symbol : variable RaresN
location: class com.rs2hd.content.Shops
itemsN = GameEngine.shops.RaresN;
^
12 errors
Compiling logging system...
src\com\rs2hd\content\ShopHandler.java:245: cannot return a value from method wh
ose result type is void
case 0:return 1038;
^
src\com\rs2hd\content\ShopHandler.java:246: cannot return a value from method wh
ose result type is void
case 1:return 1040;
^
src\com\rs2hd\content\ShopHandler.java:247: cannot return a value from method wh
ose result type is void
case 2:return 1042;
^
src\com\rs2hd\content\ShopHandler.java:248: cannot return a value from method wh
ose result type is void
case 3:return 1044;
^
src\com\rs2hd\content\ShopHandler.java:249: cannot return a value from method wh
ose result type is void
case 4:return 1046;
^
src\com\rs2hd\content\ShopHandler.java:250: cannot return a value from method wh
ose result type is void
case 5:return 1048;
^
src\com\rs2hd\content\ShopHandler.java:251: cannot return a value from method wh
ose result type is void
case 6:return 1050;
^
src\com\rs2hd\content\ShopHandler.java:252: cannot return a value from method wh
ose result type is void
case 7:return 1053;
^
src\com\rs2hd\content\ShopHandler.java:253: cannot return a value from method wh
ose result type is void
case 8:return 1055;
^
src\com\rs2hd\content\ShopHandler.java:254: cannot return a value from method wh
ose result type is void
case 9:return 1057;
^
src\com\rs2hd\content\ShopHandler.java:629: cannot find symbol
symbol : variable Rares
location: class com.rs2hd.content.Shops
items = GameEngine.shops.Rares;
^
src\com\rs2hd\content\ShopHandler.java:630: cannot find symbol
symbol : variable RaresN
location: class com.rs2hd.content.Shops
itemsN = GameEngine.shops.RaresN;
^
12 errors
Complete.
src\com\rs2hd\content\ShopHandler.java:245: cannot return a value from method wh
ose result type is void
case 0:return 1038;
^
src\com\rs2hd\content\ShopHandler.java:246: cannot return a value from method wh
ose result type is void
case 1:return 1040;
^
src\com\rs2hd\content\ShopHandler.java:247: cannot return a value from method wh
ose result type is void
case 2:return 1042;
^
src\com\rs2hd\content\ShopHandler.java:248: cannot return a value from method wh
ose result type is void
case 3:return 1044;
^
src\com\rs2hd\content\ShopHandler.java:249: cannot return a value from method wh
ose result type is void
case 4:return 1046;
^
src\com\rs2hd\content\ShopHandler.java:250: cannot return a value from method wh
ose result type is void
case 5:return 1048;
^
src\com\rs2hd\content\ShopHandler.java:251: cannot return a value from method wh
ose result type is void
case 6:return 1050;
^
src\com\rs2hd\content\ShopHandler.java:252: cannot return a value from method wh
ose result type is void
case 7:return 1053;
^
src\com\rs2hd\content\ShopHandler.java:253: cannot return a value from method wh
ose result type is void
case 8:return 1055;
^
src\com\rs2hd\content\ShopHandler.java:254: cannot return a value from method wh
ose result type is void
case 9:return 1057;
^
src\com\rs2hd\content\ShopHandler.java:629: cannot find symbol
symbol : variable Rares
location: class com.rs2hd.content.Shops
items = GameEngine.shops.Rares;
^
src\com\rs2hd\content\ShopHandler.java:630: cannot find symbol
symbol : variable RaresN
location: class com.rs2hd.content.Shops
itemsN = GameEngine.shops.RaresN;
^
12 errors
Complete.

lmfao... (sorry for double post)

Sarcasm L
July 12th, 2010, 22:39
1 error
Compiling loginserver...
src\com\rs2hd\content\ShopHandler.java:544: orphaned case
case 10:
^

Compile error! help please

shockys
July 12th, 2010, 22:54
Seen this exact tut before.

Charlie`
July 13th, 2010, 09:23
Nice Guide, Hope To See More Tutorials Off You Soon! xD

Ninga Nun
July 15th, 2010, 07:03
Nice tut, i don't need it atm but if i do ever need it, it will be helpful if i use so thanks ;)

Partyhat
July 29th, 2010, 07:33
Wow, I consider myself pretty good with 317's.

Coding 508's+ is really overwhelming.
I need to learn it though so thanks a lot. :]

Gugo
August 30th, 2010, 01:15
Tyyy you man very very muchhhh, im noob at coding, really helped me alot, looks complicated on look, but actually is ultra easy =)

Gugo
September 2nd, 2010, 08:44
Hey, i was wondering, how u make shop for donators only =/ I just did all and my donator rank is 48.. how do I add that?

iTStorm
September 16th, 2010, 18:16
Ok, I have a question about this. Does the case number matter?

vrmsasha
October 27th, 2010, 13:47
Good job.

Karbon
October 28th, 2010, 08:58
Ty for help.

battlezone
October 29th, 2010, 09:54
wow what source do you guys use? i started with a blank source and when i made shops i made it so you only have to change it in 1 file takes like 10 seconds to make a shop.

this is easy but messy as hell

Wizderm
November 5th, 2010, 23:34
i got this error and i dont no how to fix it.

src\emily\rs2hd\packethandler\SummonPacketHandler. java:92: cannot find symbol
symbol : method openShop(emily.rs2hd.model.Player,int)
location: class emily.rs2hd.content.ShopHandler
GameEngine.shopHandler.openShop(p, 2);

Owner Dylan
November 6th, 2010, 05:26
This is a perfect tut for people that need to add shops!
;)

Divine-X
November 8th, 2010, 23:13
i got this error and i dont no how to fix it.

src\emily\rs2hd\packethandler\SummonPacketHandler. java:92: cannot find symbol
symbol : method openShop(emily.rs2hd.model.Player,int)
location: class emily.rs2hd.content.ShopHandler
GameEngine.shopHandler.openShop(p, 2);

Your using Emily's source so I can't really help you cause I'm not sure if she changed anything.

aerodude30
November 9th, 2010, 01:54
hey um i did everything right it think and I c party pete ingame but when I trade him nothing happens you know the error?

Divine-X
November 9th, 2010, 02:00
Revise over this tutorial again and also is he added into SummonPacketHandler.java?

aerodude30
November 10th, 2010, 01:12
ya he is

bartjuh10
November 19th, 2010, 17:44
Add him to NpcPacketHandler under void option1.

Hard
November 19th, 2010, 23:41
Only the registered members can see the link.

Steve
November 20th, 2010, 04:34
This shophandler is awful, no offense to the tut creator, just whoever created the shophandler.

Chief Smart
November 20th, 2010, 08:15
Pretty nice tutorial ;) very detailed and easy to understand :)

EDIT: I do though have 1 question... where do I have to add my npc to? I use RuneSlay source...

Hard
November 28th, 2010, 17:40
Pretty nice tutorial ;) very detailed and easy to understand :)

EDIT: I do though have 1 question... where do I have to add my npc to? I use RuneSlay source...

go to data and add it in npcs.xml

Mystic Flow
November 28th, 2010, 17:41
Why do people still use Serenity's shop system, it's buggy as fuck and it's outdated.

Cookinggek
December 28th, 2010, 19:26
excellent tut, but how do you make it a donator shop?

tedhead2
December 28th, 2010, 21:10
excellent tut, but how do you make it a donator shop?


where you added the npc i think make and if, it should look like this.
NOTE: this is for a moderator only shop, change it a little for a donator shop.


case ####:
if(player.getRights() == 1){
GameEngine.shopHandler.openshop(p, ##);
}else{
player.sendMessage("You must be a moderator to open this shop!");
}



Also, i made my npx Lollik(207), i added him correctly, just like the tutorial said, but it wont open -.-'

EDIT: Nevermind.

Guys, make sure to add your npc to NpcPacketHandler.java, or else nothing will work.

EDIT 2: Ok, i tried making a shop that sold items for 1 million each, so that if you had max cash, you can have even more money. I did it the EXACT same way i did the other shop(that worked) i made this new one, and now i get an error!


Compiling core...
src\emily\rs2hd\content\ShopHandler.java:606: cannot find symbol
symbol : variable investment
location: class emily.rs2hd.content.Shops
items = GameEngine.shops.investment;
^
src\emily\rs2hd\content\ShopHandler.java:607: cannot find symbol
symbol : variable investmentN
location: class emily.rs2hd.content.Shops
itemsN = GameEngine.shops.investmentN;
^
2 errors
Compiling loginserver...
src\emily\rs2hd\content\ShopHandler.java:606: cannot find symbol
symbol : variable investment
location: class emily.rs2hd.content.Shops
items = GameEngine.shops.investment;
^
src\emily\rs2hd\content\ShopHandler.java:607: cannot find symbol
symbol : variable investmentN
location: class emily.rs2hd.content.Shops
itemsN = GameEngine.shops.investmentN;
^
2 errors
Compiling packet handlers...
src\emily\rs2hd\content\ShopHandler.java:606: cannot find symbol
symbol : variable investment
location: class emily.rs2hd.content.Shops
items = GameEngine.shops.investment;
^
src\emily\rs2hd\content\ShopHandler.java:607: cannot find symbol
symbol : variable investmentN
location: class emily.rs2hd.content.Shops
itemsN = GameEngine.shops.investmentN;
^
2 errors
Compiling logging system...
src\emily\rs2hd\content\ShopHandler.java:606: cannot find symbol
symbol : variable investment
location: class emily.rs2hd.content.Shops
items = GameEngine.shops.investment;
^
src\emily\rs2hd\content\ShopHandler.java:607: cannot find symbol
symbol : variable investmentN
location: class emily.rs2hd.content.Shops
itemsN = GameEngine.shops.investmentN;
^
2 errors
Complete.
src\emily\rs2hd\content\ShopHandler.java:606: cannot find symbol
symbol : variable investment
location: class emily.rs2hd.content.Shops
items = GameEngine.shops.investment;
^
src\emily\rs2hd\content\ShopHandler.java:607: cannot find symbol
symbol : variable investmentN
location: class emily.rs2hd.content.Shops
itemsN = GameEngine.shops.investmentN;
^
2 errors
Complete.
Press any key to continue . . .

ZUM
December 29th, 2010, 18:03
where to i put the npc code at? what file

tedhead2
December 29th, 2010, 20:38
where to i put the npc code at? what file

Npc.xml :)

I'll help you some more on MSN, read my PM.

Cookinggek
December 31st, 2010, 10:39
where you added the npc i think make and if, it should look like this.
NOTE: this is for a moderator only shop, change it a little for a donator shop.



Also, i made my npx Lollik(207), i added him correctly, just like the tutorial said, but it wont open -.-'

EDIT: Nevermind.

Guys, make sure to add your npc to NpcPacketHandler.java, or else nothing will work.

EDIT 2: Ok, i tried making a shop that sold items for 1 million each, so that if you had max cash, you can have even more money. I did it the EXACT same way i did the other shop(that worked) i made this new one, and now i get an error!

try making itemsN into investmentN or other way round

and you mean to put the if in summonpackethanlder?

rmtank
January 2nd, 2011, 09:53
nice tut i used the same thing when i made my shops

Cookinggek
January 2nd, 2011, 14:16
i fixed your method for RS2HD

case ###:
if(p.donator() == 1){
GameEngine.shopHandler.openshop(p, ##);
}else{
p.sm("You must be a Donator to open this shop!");
}

rmtank
January 2nd, 2011, 14:20
i fixed your method for RS2HD

case ###:
if(p.donator() == 1){
GameEngine.shopHandler.openshop(p, ##);
}else{
p.sm("You must be a Donator to open this shop!");
}

where would u put this at?

A N I M A L
January 2nd, 2011, 16:31
idk whats wrong with my shop but everything i've checked seems to be right, i've added 2 or 3 shops using this method and they worked fine but this shop seems to always show up with no items in it. help?

Tyler930
January 2nd, 2011, 16:33
you have a bad ID in your shop spawn all the items ingame an if you get "malformed command or null" then delete that id an it should work

A N I M A L
January 2nd, 2011, 16:38
mmk. ty tyler :)

Tyler930
January 2nd, 2011, 16:43
mmk. ty tyler :)

yeap np i had this problem awhile back lol .-. expect i did it on purpose to piss off my friend DX

A N I M A L
January 2nd, 2011, 18:07
its fixed :D ty for the help tyler :)

Tyler930
January 2nd, 2011, 18:43
its fixed :D ty for the help tyler :)

sahweet .-. try clearing your DB of all npc drops an re adding new ones .-. so much fun

Cookinggek
January 2nd, 2011, 18:43
put the method in summonpackethandler

and make sure when putitng in the items for shop, they are the same order

i pown i
January 12th, 2011, 15:51
ehh... im kinda noob with coding but where to add the coords + id of npc ? and very nice tut

EDIT : found it :)
EDIT : i did everything what u did i changed the coords but it isnt at the place of the coords.

chekman
January 15th, 2011, 08:29
anyone else having problems with 562's buying items to the right of what you want to buy. can't seem to figure it out. and it's a pain in the A** if anyone has any suggestions or help id love to get a pm, and we can talk on msn or something i really need help with this no idea why it's doing it, also added a new shop items show up won't let me buy any of them. Please help Forum.

Artist
January 23rd, 2011, 22:05
i cant buy anything out of my shop and the cost of a partyhat is 28 coins? and it disappears when u restart cleint? how do i fix?

SnowTurmoil
March 13th, 2011, 14:24
I did everything still the Npc doesnt show. Do i need to spawn it with a command?

Divine-X
March 16th, 2011, 21:36
I did everything still the Npc doesnt show. Do i need to spawn it with a command?

You add the NPC to npcs.xml

OwnerAustin
March 20th, 2011, 19:55
Thanks for the tut, but can you have 2 of the same NPC's, but with different shops? Because I get the other shop if i try to create a shop with an NPC that has already been used on the server.

Divine-X
March 20th, 2011, 19:59
Thanks for the tut, but can you have 2 of the same NPC's, but with different shops? Because I get the other shop if i try to create a shop with an NPC that has already been used on the server.

You can have 2 of same NPCs but you cannot have them open a different shop. That is what I know. Unless you can find another copy of the NPC example: 1 = Man 1000 = Man <--- Just an example.

OwnerAustin
March 20th, 2011, 20:31
Thank you.

EtherScape
May 3rd, 2011, 21:17
public int[] Generalshopvarrock = {1755, 590, 946, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 227};

Thats the code to one of my shops....where is that located at? like the cords?

David
May 3rd, 2011, 21:56
public int[] Generalshopvarrock = {1755, 590, 946, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 227};

Thats the code to one of my shops....where is that located at? like the cords?

You need to place the npc yourself.

tfortacos
May 20th, 2011, 18:44
okay wtf o.O My shops go all the way to Case 23 I go to case 3 theres like everything he's explaining it's like not there i don't get it wtf D:<!!!

davidpaceway
May 30th, 2011, 07:53
src\com\rs2hd\content\ShopHandler.java:615: cannot find symbol
symbol : variable Rares
location: class com.rs2hd.content.Shops
items = GameEngine.shops.Rares;
^
src\com\rs2hd\content\ShopHandler.java:616: cannot find symbol
symbol : variable shopsRaresN
location: class com.rs2hd.GameEngine
itemsN = GameEngine.shopsRaresN;
^
2 errors

wtf..
Its not added into shops.java like in shophandler...

David
May 30th, 2011, 10:31
Its not added into shops.java like in shophandler...

No, he just forgot a dot between shops and RaresN

rayshon30
June 15th, 2011, 16:47
I have the npc coords where do I put it...?You never explained that

rayshon30
June 15th, 2011, 17:13
oops double post delete this

Venged
June 29th, 2011, 02:51
Real nice Tut 10/10 but one prob im stuck on last part im using a blank and it dosent have shops in summoningpacket

OrE0
August 30th, 2011, 19:34
i cant trade it :(

Sonicforce41
August 30th, 2011, 19:52
Talk about grave dig, uhuh?

OrE0
August 30th, 2011, 20:15
Talk about grave dig, uhuh?
i just want it fixed :(

pl4ytodeath
November 5th, 2011, 11:41
hi i got token shop but i know how to change te price but when i change price than is all item in my shop same price that i change it

skiller exel
November 27th, 2011, 17:15
Mhh ... Thx alot! you helped me but ...
i get error when compiling i fixed most of errors but im stuck here my compiler says
compiling ...
src\com\rs2hd\content\shophandler.java:1461: reached end of file while parsing
Break;
src\com\rs2hd\content\shophandler.java:1462: reached end of file while parsing
->
complete
what shall i do? :D:eek:

Intensive Tony
November 27th, 2011, 17:42
Mhh ... Thx alot! you helped me but ...
i get error when compiling i fixed most of errors but im stuck here my compiler says
compiling ...
src\com\rs2hd\content\shophandler.java:1461: reached end of file while parsing
Break;
src\com\rs2hd\content\shophandler.java:1462: reached end of file while parsing
->
complete
what shall i do? :D:eek:

U missing a }

skiller exel
November 27th, 2011, 17:59
Where???

skiller exel
November 27th, 2011, 18:02
i get new error now ... -.-

Compiling...
src\com\rs2hd\content\ShopHandler.java:1456: reached end of file while parsing
} →
^
1 error
Correctly compiled
Press any key to continue . . .

scary blood
March 17th, 2012, 21:38
I have loyalty titles coded on my server so does it work to code a shop where you can buy titles?

trees
May 4th, 2012, 23:12
ahh the 562's <3. Nice job Divine, good to see a familiar face on here.. I haven't been on in ages.