Jump to content

Slotmachine Event Npc


Recommended Posts

Well, this is a SlotMachine style NPC that I created long time ago and I didn't give him any use, so I'll share it.

 

How it works? First of all you can configure it via .properties file so it's easy for newbies. Then, the NPC consumes X quantity of items and X am.ount of those items for each try, when you try once, the npc starts showing you a html with 3 icons, each slot has 3 possible items, the NPC randomly change every slot X times so if you have luck and after all 3 moves all 3 icons are the same, gz you won, otherwise the items were consumed and you won nothing, try it again.

As I said, feed and reward is easy configurable, same with NPC ID and with the Server Name, which will appear in the html shown by the NPC.

 

Have fun, here a video if u didn't understand how it works.

 

And yes it's done using Thread.sleep(); I know... if u don't like, rework it with ThreadPool.

 

Coded for L2jServer H5

 

 

 

 

Link to comment
Share on other sites

correct me if im wrong but it sends more than 15 html packets right?

yep, maybe not recommended for populated servers xddd

didn't know any other way to simulate the slotmachine effect when I coded it, do you?

 

still funny in my opinion xd

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...
  • 2 weeks later...

before apply manually this and test can u tell me is for freya chronicle (l2java)?

 

or it require adopt for freya? (ct2.5)

It should work for freya yes.

Link to comment
Share on other sites

before apply manually this and test can u tell me is for freya chronicle (l2java)?

 

or it require adopt for freya? (ct2.5)

 

Coded for L2jServer H5

 

Read carefuly next time. And yup, its gonna work on freya also.

Link to comment
Share on other sites

  • 7 months later...

i adapt for acis and i have this message in console

 

---------------------------------------------------------=[ Quests & Scripts ]
Class not found: L2SlotMachineInstance
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Personally, I like Exodus. This is the best option for me right now. By the way, I also found a useful review of crypto exchangers when I wanted to sell Bitcoin to Wise card https://www.bestchange.com/bitcoin-to-wise.html . Maybe it will be useful to someone.
    • I have a problem respawning bosses too. Though, probably I made a mistake and changed the multipliers of minimum and maximum to 0.0 from 1.0. Then I thought that this may mess up with the whole system, so I changed it back, I w8d 12 hours and bosses are still nowhere to be found, then I changed the multiplies to 0.1 and waited for 1 hour and 20 minutes after I reloaded the config. Nothing! Then changed them back to 1.0. I still can't see them around. Did I cause a critical issue or smth?
    • GRAND OPENING - 09.12.2023 - SATURDAY, 18:00+ 1 GMT  We are happy to invite you on the unique project on the HighFive chronicle scene where you can compare forces or cooperate with the international community.   🔰 WEBSITE : http://www.l2tribun.com 🔰 DISCORD : https://discord.gg/3YAjn2PZTE   🔱 Join the Adventure Unveiled! 🔱 Embark on a journey like never before in our L2TRIBUN world and Immerse yourself in a world of magic, mystery, and custom features that will redefine your gaming experience.   Important general information :   Server Base Version: High Five Salvation Client Newest Auto-Farm system Open Auction system Premium Active-Anticheat system (No bots in our project!) International Community Subclass-Certificate system Dynamic Event system (every 1 hour) AutoBuff - 24 buff slots (+4 divine inspiration) and 12 dance and songs slot Advanced ALT+B system (buffer, global teleport, GM shop...and so on Mass pvp on Epic Bosses 4 times per week Gm shop up to low A grade with SA every dropped,crafted gear is high boost for your character!   RATES :  EXP/SP 15x rate Adena 7x rate Drop 7x rate Spoil 7x rate Safe enchant +3  Attribute Drop: x2    RB EXP/SP: x5   RB Drop: x1   ENCHANT RATES :   Weapons : Normal scrolls 65 %,  Blessed Scrolls 60%   Armors : Normal scrolls 65 %,  Blessed Scrolls 60%   Attribute : (LEVEL 0-4) : 50 %   (LEVEL 4-7) : 40% »» GM shop up to top A grade items  »» Starting with extra newbie items of C grade »»  Support NPCs for all general services »» Maximum 3 windows (for stable economy) »» Unlimited Auto-Farm service »» Unlimited Mana Potions »» Class transfer for free (with exception of 3rd class - for amount of adena) »» Free subclass quest »» Olympiad Maximum +6 enchant »» Open Auction system »» Auto learn skills »» Heroes every 7 days »» All needed instances Freya, Frintezza, Zaken »» .party global chat for better regroup players for any action / instance »» Shift+Click on the monster shows you their droplist and chances for drop »» Beleth teleport NPC for easy acces to this Epic Boss »» Donation system setuped to be really affordable »» Cloaks able to wear on any grade and type of armor »» Elaborated community board for very good acess »» Class Balance »» longer-therm project »» Only active members on community ( 0 bots on discord and  0 in game) »» Because of Salvation client no lags in mass pvp  Epic Bosses general timelines We are aware that a lot of players are not big fan of every day action where they are normaly forced to play, by their clans/community or by their own will that they can support their team to win Mass pvp in Epic Boss action Thats why we setuped also in a week free days where the players can focus their time and evening to gear up their character, focus on community, spend time with their families 🔱   Monday – FREE DAY (last day of olympiad, more space to focus on gear, farm, community)   Tuesday – Ant Queen, Orfen , Core   Wednesday – Beleth, Baium   Thursday – Antharas   Friday – FREE DAY (more space to focus on your gear, farm, community)   Saturday – Valakas Sunday - FREE DAY ( Castle Sieges )   All Epics are in timeline – between 20:00-22:00 GMT+1   USEFUL COMMANDS :    .cfg - Character controling panel .acp - Automatic use of CP/HP/MP .unstuck - teleport stucked character back to town .changepassword - account password change .offline - Offline Trading service .combinetalisman - Combine all talismans in inventory .autofarm - Auto-Farm service .premium - Check your premium account status .dressme - Change your visual look to your prefference     We believe that this is in generaly all important informations, however there easily could be that something what would interest you missing there, in that case dont hesitate write here below this topic or write a ticket in our discord I will gladly answer any upcoming questions.   We looking forward 🔱                          
    • Hello i sell a separately server for low rate servers, you can test it on a live server of course. For more info please add me on skype: @IcathiaLord or discord: IcathiaLord#7407
    • hi, this project is on l2jserver? how much actually price?, it work on low rate server? i need to know if all is working fine, because i want to do my server but i dont want fix bugs, i just want to start the server u know.
  • Topics

×
×
  • Create New...