Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set {sql} to the database "mysql://ms1.location-minecraft.com:3306/lcmc_122166?user=lcmc_122166&password=8fhpHpY7&useSSL=false"
- set {_requete} to "SELECT * FROM Marchand_blocs"
- execute unsafe {_requete} in {sql} and store the result in {_output::*}
- loop {_output::slot::*}:
- set {_item} to {_output::type::%loop-index%} parsed as item
- format gui slot {_output::slot::%loop-index%} of {_p} with {_item} with lore "&5Niveau requis: %{_output::niveau::%loop-index%}% ||&6&oPrix: %{_output::prix::%loop-index%}%" to run:
- set {_item} to clicked item
- set {_lore::*} to lore of clicked item split by " "
- set {_lv} to {_lore::3} parsed as integer
- set {_prix} to {_lore::5}
- send "%{_lv}% , %{_prix}%"
- if {stats.%{_pu}%::1} >= {_lv}:
- set {_objet} to {_item} with lore "&5Niveau requis: %{_lv}%|| &6&oPrix: %{_prix}%"
- play "UI_BUTTON_CLICK" to {_p} at volume 10
- confirm_achat_mob("Marchand de blocs", {_objet}, 10, {_nombre}, {_p})
Add Comment
Please, Sign In to add comment