How to code a bidding/auc system like skyblock [ML]...

LINE 1:

Chat Event :
If holding NOT (Empty chest) :
Split Text: Array [A], Text: Current Message, Text[Split]: ' ' [Space] or [Empty] INFO: Neither one of this variable or array is %player%
Get Element: Array [A], Index: 1, Variable [C]
If Text equals, Variable [C], Text[to check]: '@auc' or your choice :
If variable NOT equals, Variable [Q] , Value '1' : # The variable 'Q' will be used later and it stores the value of there is already an item in auc
: Get Element: Array [A], Index: 2,Variable [C]
: Phrase Number: Variable [C], Text: Variable [C]
: If compare interval, Checking no: Variable [C], Less than: 1000000, More than: 0 :
: :
Get Item value [Name], Variable [N], Item: Current Item
: : Get Item value [Description], Variable [D], Item: Current Item
: : Get Item value [Amount], Variable [A], Item: Current Item
: : Send Message [All] 'N,D,A' (Line Separation) # You can modify this message as you like, Like with color and player name
: :
Set Variable Variable [Q], Value '1' [This Message Describe the Player's item with amount and additional information]
: : Set Item Variable , Item Current Item
: : Set Variable Variable [T], Value '20'
: : Start Loop Counter
: : Set Variable Variable [CH] = '%player%'
: : Set Variable Variable [PS] = Variable [C]
: :
Set Variable Variable [CP] = '0'
: Else:
:
Send Message 'Error in amount' or your choice
Else :
Send Message 'There is already an item in queue' or your choice

LINE 2:

LOOP [Counter] [ 20 ticks ] :
select random player
if compare number,
Checking no: Variable [T], More than 0 :
:
Set Variable Number Variable [T], -= 1 # -= means Minus equals to, fr this minus sign is pissing me off
Else:
Stop Loop Counter
Set Variable Variable [Q] = '0'
if variable equals Variable [CP] = '0' :
:
Send Message 'No bids sold' (all)
Else :
select player by condition [ if variable equals Variable [CP], Value '%selected%' ] #You can put current name(apple) instead of %selected%
Send Message 'Item sold to %selected%'
Give Variable Item '
Variable '
Set Variable Number Variable [%selected%money] -= Variable [E]
select player by condition [ if variable equals Variable [CH], Value '%selected%' ]

Set Variable Number Variable [%selected%money] += Variable [E]

LINE 3:


Chat Event:
if variable equals Variable [C], Value '1' :
Split Text Array [A], Text: Current Message, Text[Split]: ' ' [Space] or [Empty]
Get Element Array [A], Index '1', Variable [P]
If Text Equals Variable [P], Text[to check]: '@bid' or your choice :
Get Element Array [A], Index '2', Variable [E]
Phrase Number: Variable [E], Text: Variable [E]
If compare interval Checking no: Variable [E], Less than: Variable [%player%money], More than: 0 :
: if variable NOT equals Variable [CH], Value '%player%' :
: : If compare no Checking no: Variable [E], More than Variable [PS] :
: : :
Set variable Variable [PS] = Variable [E]
: : :
Send Message '%player%'s bid, Variable [E]' (all)
: : :
Set Variable Variable [CP] = '%player%'
: : : Set Variable Variable [T] = '20'
: : Else :
: :
Send Message 'Please put more amount than the previous one to place a bid'
: Else :
:
Send Message 'You can't place bid on your own item'
Else :
Send Message 'You don't have this much money to place a bid or it could be error in amount'



Its a little complicated, made it so kids won't understand (definately not refering to aalus)
Also tell me there were any errors
 
Last edited:

deefer

Active member
Joined
May 22, 2023
Messages
456
@deefer You could've said all that in one post, anyways

You don't need a "CS Book" for "advanced auction house"
stfu, thats how i CHAT. Omg you are so smart you fell into one of the easiest trap ever, "phishing links" dayum and now a tech guy is banned! Damn you should've used your wisdom to think wisely before clicking on that link to protect YOUR own privacy, not making a coherent out of ones saying.
 

veddnt

Active member
Joined
Jun 2, 2023
Messages
201
stfu, thats how i CHAT. Omg you are so smart you fell into one of the easiest trap ever, "phishing links" dayum and now a tech guy is banned! Damn you should've used your wisdom to think wisely before clicking on that link to protect YOUR own privacy, not making a coherent out of ones saying.
🥱and?
 

piyushwarior

Member
Joined
Feb 28, 2024
Messages
56
I do have coding knowledge. Show me a statement of mine that proves my coding ineptitude -_-
There are many. Like coding is ml is childs play i dont even remember asking a tutorial or someones help in coding something. Real program is much more challanging, if i asked you a single thing in real life coding you wont be able to askwer that
 
Top