Jump to content

Recommended Posts

Posted (edited)


-stm = con.prepareStatement("INSERT INTO items VALUES (?,?,?,?,?,?,?,?,?,?,?,?)");

+stm = con.prepareStatement("INSERT INTO items VALUES (?,?,?,?,?,?,?,?,?,?,?)");

stm.setInt(1, playerId);

stm.setInt(2, IdFactory.getInstance().getNextId());

stm.setInt(3, itemId);

stm.setInt(4, count);

stm.setInt(5, 0);

stm.setString(6, "INVENTORY");

stm.setInt(7, 0);

stm.setInt(8, 0);

stm.setInt(9, 0);

stm.setInt(10, 0);

stm.setInt(11, -1);

-stm.setInt(12, 0);

 

Edited by Tony360
  • 1 month later...
Posted (edited)

What if exception is thrown in add/delete when trying to update database?
Correct me if I am wrong but shouldn't these operations act as transactions or otherwise you will have possibility of duplicated/lost items?

 

edit:

ah I see it was updated

all fine for me now

 

edit2:

Why is no one complaining about missing IconTable?

Edited by bistabil
Posted (edited)
On 7/17/2017 at 11:44 PM, bistabil said:
edit2:

Why is no one complaining about missing IconTable?

 

Because everyone can make IconTable i think...

Edited by Tony360
Posted (edited)

I am testing this and reading the code.

 

Seller will lose adena if sum of price and adena he currently owns exceeds max adena amount.

 

Also, way the pagination is implemented worries me.

 

Another feature that this auction should have is expiration otherwise list could get full of trash fast.

 

edit:

 

First I thing that bothered me about pagination was performance but now I see that it wont work because order of inserts is not preserved thus one can't predict end result.

Edited by bistabil
  • 4 weeks later...
Posted

Hello, how would you put it to sell also the weapons with skill of argumets to sell?

 

I can put some of my girlfriends there so you can argument all the day.

  • 2 years later...
Posted (edited)


Hi guys.
Sorry for my English.
My Java is bad too.))


I am using 382 aCis.

There is no XMLDocumentFactory.java 

(which, as I understand it, is used for parsing icons for an auction.)

ACis 382 have IXmlReader.java method

is there an option to use IXmlReader.java?.

Pulled with (368)
XMLDocumentFactory.java.  the norm works


And please tell me.
How to limit items allowed for sale at auctions?

Edited by alexmaghym
Posted

Hey.

 

Regarding your XML issue, it's not really used in this code, except for the icon table which I basically don't have anymore in order to provide a fix/help for you. But IXmlReader is much easier and cleaner to use than previous methods for reading xml (on aCis always). Try to see some examples in datatables.xml.

 

As for a limit on the items one can add on the shop, it's quite simple really, you just need to add a method in AuctionTable to read how many items a player has for auction like so:

 

https://pastebin.com/XANukcpm

 

Then just add a check under else if (command.startsWith("addit2"))

to check if player exceeded the limit: if (AuctionTable.getInstance().getNumberOfAuctions(player) >= YOUR_LIMIT

Posted
4 hours ago, Fanky said:

Glad to see you around here,dud.

 

Been a long time since gaming paradise :D

 

Good to see you too bro

Posted (edited)
On 4/8/2020 at 6:44 AM, An4rchy said:

Привет.

 

Что касается вашей проблемы с XML, она не используется в этом коде, за исключением таблицы значков, которая может предоставить вам исправление / помощь. Но IXmlReader гораздо проще, чем предыдущие методы чтения XML (всегда в aCis). Попробуйте увидеть некоторые примеры в datatables.xml.

 

Что касается ограничения на количество предметов, которые можно добавить в магазин, то можно просто добавить метод в AuctionTable, чтобы узнать, сколько предметов у игрока на аукционе, например:

 

https://pastebin.com/XANukcpm

 

Затем просто добавьте проверку в  else if (command.startsWith ("addit2"))

проверить, превысил ли игрок лимит: if (AuctionTable.getInstance (). getNumberOfAuctions (player)> = YOUR_LIMIT

 

 

my English is not very good ((( thanks a lot !!!

but

I want the auction to have only certain items in inventory.

For example - armor weapons jewelry
 

 

 


Error: for (AuctionItem item : items)

Error: Can only iterate over an array or an instance of java.lang.Iterable

 

  1.     public int getNumberOfAuctions(Player player)
  2.     {
  3.         int i = 0;
  4.         for (AuctionItem item : items)
  5.             if (item.getOwnerId() == player.getObjectId())
  6.                 i++;
  7.         return i;
  8.     }

 

 

 

Сan tell me a piece of code: to charge for the services of an auction?

For example, adena

 

 

Edited by alexmaghym
  • 10 months later...
Posted

Everything that @Tryskell cited has not been done yet, I organized a few things and redid AuctionTable, I still need to paginate the pages and optimize the AuctionManager.

 

AuctionManager - https://pastebin.com/YGmT4Uv2

AuctionTable - https://pastebin.com/TnXjWFdi

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


  • Posts

    • Roblox has become one of the world’s most influential user‑generated gaming platforms, attracting millions of players and creators every day. What makes Roblox unique is that it is not just a place to play games—it is a place where anyone can build their own. With Roblox Studio, even complete beginners can design immersive worlds, interactive experiences, and full‑fledged games. This guide will walk you through the essential steps to create your first Roblox game, while also helping you understand how features like Roblox Robux fit into the creator ecosystem.       1. What Is Roblox Studio and Why Use It? Roblox Studio is the official development environment used to create every game on the platform. It is free, accessible, and designed for creators of all skill levels. Whether you want to build a simple obstacle course or a complex simulation game, Roblox Studio provides the tools you need. The platform’s success comes from its user‑generated content model. Players can create games, publish them, and even earn Roblox Robux through in‑game purchases, game passes, or developer products. While earning Robux is not the focus for beginners, understanding its role can motivate you to improve your creations over time.   2. Setting Up Roblox Studio Before you start building, you need to install and set up Roblox Studio. Steps to get started Download Roblox Studio from the official Roblox website. Install and open the application. Log in using your Roblox account. Choose a template or start with a blank Baseplate. For beginners, templates like Obby, Village, or Racing provide a structured starting point. They include pre‑built elements that help you learn how different parts of a game work.   3. Understanding the Interface Roblox Studio may look overwhelming at first, but each panel has a clear purpose. Learning the interface early will make your development process smoother. Key panels Explorer: Shows all objects in your game world. Properties: Displays editable settings for selected objects. Viewport: The 3D workspace where you build your world. Toolbox: Contains free models, scripts, and assets. Home / Model / Test tabs: Provide tools for building, editing, and testing. Spend a few minutes clicking around, selecting objects, and adjusting their properties. This hands‑on exploration helps you understand how everything fits together.   4. Building Your First Game World Once you’re familiar with the interface, it’s time to start building. Using Parts Roblox Studio uses “Parts” as the basic building blocks. You can insert: Blocks Spheres Cylinders Wedges These can be resized, rotated, and moved to create platforms, walls, buildings, or obstacles. Using the Toolbox The Toolbox allows you to drag pre‑made assets into your game. This is extremely helpful for beginners, but choose assets carefully. Some community models include unnecessary scripts that may affect performance. Look for items marked as “Verified” or created by trusted developers. Organizing Your Workspace As your game grows, organization becomes important. Use folders in the Explorer panel to group objects logically: “Obstacles” “SpawnPoints” “Decorations” Good organization saves time and prevents confusion later.   5. Adding Gameplay with Scripts Roblox games use Lua, a beginner‑friendly scripting language. You don’t need to be a programmer to start, but learning basic scripting will greatly expand what you can create. Simple scripts you can try Making a part disappear when touched Creating a moving platform Adding checkpoints Giving players speed boosts Here’s a simple example: a script that prints a message when a player touches a part. Lua: local part = script.Parent   part.Touched:Connect(function(hit)     print("A player touched the part!") end) Even small scripts like this help you understand how interactions work in Roblox.   6. Testing Your Game Testing is essential. Roblox Studio provides several testing modes to simulate gameplay. Use the “Play” button to: Walk around your world Test scripts Check spawn points Look for bugs Ensure platforms and obstacles work correctly You can also use Play Here, Run, and Play Solo to test different aspects of your game.   7. Adding UI and Game Logic A polished game needs more than objects—it needs user interface elements and clear rules. Common UI elements Timers Score counters Health bars Buttons Pop‑up messages You can create UI using ScreenGui objects inside the StarterGui folder. Roblox provides templates for text labels, buttons, and frames, making it easy to design simple interfaces.   8. Optimizing Your Game A smooth game keeps players engaged. Here are some optimization tips: Remove unused parts and scripts. Avoid too many moving objects. Use low‑poly models when possible. Test on mobile devices—many Roblox players use phones. Keep lighting simple to improve performance. Optimization ensures your game runs well for all players, not just those with powerful devices.   9. Publishing Your Game Once your game is playable, you can publish it to Roblox. Steps to publish Click File → Publish to Roblox. Enter a name, description, and genre. Choose whether the game is public or private. Set permissions and access settings. After publishing, you can share the link with friends or the Roblox community. If you eventually want to monetize your game, you can add game passes or developer products that players can purchase using Roblox Robux. This is optional for beginners, but it becomes important as your game grows.   10. Improving Your Game Over Time The best Roblox games are updated regularly. After publishing, pay attention to: Player feedback Bug reports Suggestions from friends Analytics (visits, playtime, retention) Add new levels, improve visuals, or introduce new mechanics to keep players coming back.   11. Learning and Growing as a Creator Roblox provides many resources to help you improve: Roblox Creator Hub Developer Forum YouTube tutorials Community Discord servers The more you practice, the more confident you’ll become. Many successful developers started as beginners just like you—and some now earn significant amounts of Roblox Robux through their creations.   Final Thoughts Creating your first Roblox game is an exciting journey. You don’t need advanced skills or expensive tools—just creativity and curiosity. Start small, experiment with templates, learn basic scripting, and gradually build your skills. With time and persistence, you can create a game that players around the world will enjoy.
    • Hello it seems you can't receive PMs, it won't let me, do you use discord?
    • Hello after returning to lineage 2, I was wanting to start some local server development for a few friends and me to play around with but for some reason I'm having trouble after so many years to find a stable high five client. The clients I have found either have crash issue, many errors in the client log files or freeze after only a day or two of playing (autofarming for a day for example, you'll go to teleport after a farm session and the client freezes).   I've played a few High Five servers and it seems a lot of them have been able to optimize it to avoid these problems.  We are running multiple clients per PC so this does sound essential.   I've heard one major feature that is helping client stability is the ability to clear cache/memory without restarting the game or something along those lines.   So I'm wondering if anyone can point me in the direction of obtaining a High Five client that is clean, optimized and decrypted to be able to add customs items etc. for a fair price.  
    • Sometimes you can understand his intentions from the words he uses and the way he says it to you.  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..