Share EXTENSION - Phantom_Shops (fake player offline shops)

Hellcat

Vagabond
Customer
LUCERA2 PHANTOM SHOP EXTENSION (tested on interlude setup)
Hello,
I was working on something that caught my eye for the past week and i am sharing this for anyone that might want to use it or improve it.
I took the first idea from this topic LINK (that source is not working) and used that extension as my start up project to fix and improve it.
Obviously i had the help of AI assistant to make this work since my coding skills are below average!
The current state of this extension is in DEBUG MODE with lots of helpers written in the source. (prints any errors in the console regarding the extension) -- you will find all detailed info in the readme docs.



IMPORTANT:
PhantomShopFixer is a script that reads phantomshops.properties and converts any already-online (real or fake using lucera's existing phantom engine) character with a matching nickname
(nickname added in template at .properties) into a normal private store. It does NOT spawn new independend phantoms or move characters.
It runs a few delayed passes on startup to catch phantoms that come online.



Phantom shop modes:
  1. WTS: Sell phantom shop injects items, counts, and prices into a Sell list. - Fully functional :white_check_mark:
  2. WTB: Buy phantom shop builds a Buy list and auto-ensures adena float. - Fully functional :white_check_mark:
  3. CRAFT: Crafter phantom shop builds a manufacture list and shows recipe entries—currently pending for a “learn recipe + get craft skills” step. So the ingame shop UI displays the item as usual, opens it normally, shows all the correct values/materials needed but hitting the in-game Create button currently has no results. - Needs improvement :mad:



.properties setup:
Drop phantomshops.properties to your ...\gameserver\config\

Sample configuration below:

Position format (in-game loc):

Name;X;Y;Z;Heading;Title;MODE;ItemSpecList

MODE: WTS (sell shop) | WTB (buy shop) | CRAFT (manufacture)

WTS/WTB ItemSpecList: ITEM_ID:COUNT:ΡRICE,ITEM_ID:COUNT:ΡRICE
CRAFT ItemSpecList: RECIPE_ID:0:ΡRICE (count is ignored by server; use 0 for recipes)


BUY example (WTB)
testbuyer;82570;148015;-3496;16384;BuyingParts;WTB;5502:1:50000,5504:1:4000

SELL example (WTS)
testseller;82586;147995;-3496;30768;SellingParts;WTS;5502:1:6999,5504:1:5000

CRAFT example (Manufacture) — replace 774 (draconic bow) with a valid recipe ID in your pack - check ...\gameserver\data\recipe.xml > recipe id=" "
testcrafter;82610;148040;-3496;16384;CheapestCrafter;CRAFT;774:0:250999



Requirements:
  • State required runtime: Java 8 server, compile with JDK 8 or with JDK 11+ using cross-compile --release 8.
  • Read all the README's so that you know how to build it and what to expect in game for those who want to check it out.
  • Add phantomshops.ext.jar to scripts.cfg (if your pack uses it).

Feel free to post any advices for improvements!

***Permission is hereby granted, to any person obtaining a copy of this package and any associated documentation files included, to deal with the package without restrictions***

Download below
 

Attachments

Last edited:
Back
Top