Guest User

Untitled

a guest
Jan 26th, 2018
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. set {sql} to the database "mysql://ms1.location-minecraft.com:3306/lcmc_122166?user=lcmc_122166&password=8fhpHpY7&useSSL=false"
  2. set {_requete} to "SELECT * FROM Marchand_blocs"
  3. execute unsafe {_requete} in {sql} and store the result in {_output::*}
  4.  
  5. loop {_output::slot::*}:
  6. set {_item} to {_output::type::%loop-index%} parsed as item
  7. 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:
  8. set {_item} to clicked item
  9. set {_lore::*} to lore of clicked item split by " "
  10. set {_lv} to {_lore::3} parsed as integer
  11. set {_prix} to {_lore::5}
  12. send "%{_lv}% , %{_prix}%"
  13. if {stats.%{_pu}%::1} >= {_lv}:
  14. set {_objet} to {_item} with lore "&5Niveau requis: %{_lv}%|| &6&oPrix: %{_prix}%"
  15. play "UI_BUTTON_CLICK" to {_p} at volume 10
  16. confirm_achat_mob("Marchand de blocs", {_objet}, 10, {_nombre}, {_p})
Add Comment
Please, Sign In to add comment