Jump to content
Sign in to follow this  
Steve

666 sample items in shop

Recommended Posts

This is 100% correct for 666, idk about other revisions. Anyway here it is:
[CODE]
ActionSender.sendConfig(player, 1496, 23); //the 23 can change to like all kinds of crazy numbers
ActionSender.sendAMask(player, 0, 100, 620, 26, 0, 1150); //so can the 100, but dont go too low
ActionSender.sendItems(player, 23, freeItems, false);
[/CODE]

Share this post


Link to post
Share on other sites
First 666 Config released.
Impressed, I am.
Awesome, this is.

Share this post


Link to post
Share on other sites
Nice o_O. Seen this on one server only I think.

Share this post


Link to post
Share on other sites
[quote name='iRepo']First 666 Config released.
Impressed, I am.
Awesome, this is.[/QUOTE]
It'll really only be useful for Emperor. Although this will work for 562 probably too.

Share this post


Link to post
Share on other sites
[quote name='Steve']It'll really only be useful for Emperor. Although this will work for 562 probably too.[/QUOTE]

Or Dragonkk.

Anyway, after studying it, I have realized...
It would work with 562 (assuming you'd have the methods in ActionSender)

Share this post


Link to post
Share on other sites
[quote name='iRepo']Or Dragonkk.

Anyway, after studying it, I have realized...
It would work with 562 (assuming you'd have the methods in ActionSender)[/QUOTE]
Well you could probably get it to compile, but i mean with the older revisions interfaces could've been different or different ids could be different.

Share this post


Link to post
Share on other sites
[quote name='Steve']Well you could probably get it to compile, but i mean with the older revisions interfaces could've been different or different ids could be different.[/QUOTE]

Ah, you're right.
I stand corrected.

Share this post


Link to post
Share on other sites
Another thing for anyone interested in making shops for their server...
when you receive the action button packet when you try to buy/take an item the slot is way off because the client multiplies it or something. [B]So for the regular items, you would divide the slot by 6 [/B]and [B]for the sample items you can multiply the slot by .25[/B] to get the right slots :p.

Share this post


Link to post
Share on other sites
[code]player.getPackets().sendConfig(1496, -1); //sample slot[/code]

That's for 562 any way....

Share this post


Link to post
Share on other sites
[quote name='SkrilleX'][code]player.getPackets().sendConfig(1496, -1); //sample slot[/code]That's for 562 any way....[/QUOTE]That makes the sample items thing go away. It's for shops that's don't have sample items.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×