Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.72 KB | None | 0 0
  1. # By Coder is giresun283428 (Sikiript my life .d)
  2.  
  3. options:
  4.  
  5. p: &aBanka »
  6. hesapacmafiyati: 1000
  7. limitbaslangicfiyati: 5000
  8. asgariucret: 2020
  9.  
  10. function banka(p: player, sayfa: String):
  11. if {_sayfa} is "menu":
  12. play raw sound "note.pling" at {_p} with pitch 1 volume 10
  13. open virtual chest inventory with size 1 named "&eBanka / Menü" to {_p}
  14. make a gui slot 0 of {_p} with {_p}'s skull named "&a&lBilgilerin" with lore "||&7Bilgilerini görüntülemek için tıkla!" to run function banka({_p}, "bilgiler")
  15. make a gui slot 1 of {_p} with 175 named "&a&lBankacılar" with lore "||&7Bankacıları görüntülemek için tıkla!" to run function bankacilar({_p}, 1)
  16. make a gui slot 2 of {_p} with 160:11 named "&e" to nothing
  17. if {banka::kredicekmismi::%{_p}%} is false:
  18. make a gui slot 3 of {_p} with 388 named "&a&lİşlem Yap" with lore "||&7İşlem menüsünü görüntülemek||&7için tıkla!" to run function banka({_p}, "islemmenu")
  19. else if {banka::kredicekmismi::%{_p}%} is true:
  20. make a gui slot 3 of {_p} with 166 named "&c&l&mKILITLI!" with lore "||&7Kredi çekebilmek için||&7önce Kredi Borcunu öde!" to run function banka({_p}, "krediborcu")
  21. if {_sayfa} is "ac":
  22. set {_hesapacmafiyati} to "{@hesapacmafiyati}" parsed as integer
  23. play raw sound "note.pling" at {_p} with pitch 1 volume 10
  24. open virtual chest inventory with size 3 named "&eBanka / Hesap Aç" to {_p}
  25. make a gui slot 13 of {_p} with 381 named "&a&lHesap Aç" with lore "||&eBanka'ya hoşgeldin!||&eİşlem yapabilmek için lütfen||&ebir hesap aç!||||&c&lGerekli Şartlar||&c&l&m------------||&81. &7{@hesapacmafiyati} TL" to run using left:
  26. if balance of {_p} is bigger than or equal to {_hesapacmafiyati}:
  27. execute console command "eco take %{_p}% %{_hesapacmafiyati}%"
  28. add {_p} to {bankahesaplari::*}
  29. set {banka::hesapacmismi::%{_p}%} to true
  30. set {banka::tur::%{_p}%} to "Kişisel"
  31. set {banka::kayittarihi::%{_p}%} to "%now%"
  32. set {banka::goruntulenmesi::%{_p}%} to 0
  33. set {banka::para::%{_p}%} to 0
  34. set {banka::limit::%{_p}%} to {@limitbaslangicfiyati}
  35. set {banka::borc::%{_p}%} to 0
  36. set {banka::kredicekmismi::%{_p}%} to false
  37. set {banka::sifreolusturmusmu::%{_p}%} to false
  38. send "{@p} &b&lTebrikler, &ebir hesap açtın!" to {_p}
  39. broadcast "&9%{_p}%, &7adlı oyuncumuz banka hesabı açtı!"
  40. banka({_p}, "sifreolustur")
  41. else:
  42. send "{@p} &cYeterli paran yok!" to {_p}
  43. make a gui slot 18 of {_p} with 262 named "&c&lKapat" to run using left:
  44. close {_p}'s inventory
  45. if {_sayfa} is "bilgiler":
  46. play raw sound "note.pling" at {_p} with pitch 1 volume 10
  47. open virtual chest inventory with size 6 named "&eBanka / Bilgilerin" to {_p}
  48. make a gui slot 0 of {_p} with 160:14 named "&e" to nothing
  49. make a gui slot 1 of {_p} with 160:14 named "&e" to nothing
  50. make a gui slot 2 of {_p} with 160:14 named "&e" to nothing
  51. make a gui slot 3 of {_p} with 160:14 named "&e" to nothing
  52. make a gui slot 4 of {_p} with {_p}'s skull named "&a%{_p}%" with lore "&9&m------------------------||||&eBanka Türü||&e&m--------------||&7%{banka::tur::%{_p}%}%||||&eKayıt Tarihi: &7%{banka::kayittarihi::%{_p}%}%||&eBanka Görüntülenmesi: &7%{banka::goruntulenmesi::%{_p}%}%||||&ePara: &c&l%{banka::para::%{_p}%}%||&eLimit: &c&l%{banka::limit::%{_p}%}%" to nothing
  53. make a gui slot 5 of {_p} with 160:14 named "&e" to nothing
  54. make a gui slot 6 of {_p} with 160:14 named "&e" to nothing
  55. make a gui slot 7 of {_p} with 160:14 named "&e" to nothing
  56. make a gui slot 8 of {_p} with 160:14 named "&e" to nothing
  57. make a gui slot 9 of {_p} with 160:11 named "&e" to nothing
  58. make a gui slot 10 of {_p} with 160:11 named "&e" to nothing
  59. make a gui slot 11 of {_p} with 160:11 named "&e" to nothing
  60. make a gui slot 12 of {_p} with 160:11 named "&e" to nothing
  61. make a gui slot 13 of {_p} with 160:11 named "&e" to nothing
  62. make a gui slot 14 of {_p} with 160:11 named "&e" to nothing
  63. make a gui slot 15 of {_p} with 160:11 named "&e" to nothing
  64. make a gui slot 16 of {_p} with 160:11 named "&e" to nothing
  65. make a gui slot 17 of {_p} with 160:11 named "&e" to nothing
  66. make a gui slot 18 of {_p} with 160:5 named "&e" to nothing
  67. make a gui slot 26 of {_p} with 160:5 named "&e" to nothing
  68. make a gui slot 27 of {_p} with 160:5 named "&e" to nothing
  69. make a gui slot 29 of {_p} with 160 named "&e" to nothing
  70. make a gui slot 31 of {_p} with 152 named "&eHesabı Kapat" with lore "||&7Hesabı kalıcı olarak kapatmak için tıkla!" to run using left:
  71. if {banka::kredicekmismi::%{_p}%} is false:
  72. open virtual chest inventory with size 1 named "&eBanka / Hesabı Sil" to {_p}
  73. make a gui slot 3 of {_p} with 159:11 named "&aONAYLA" with lore "||&eHesabındaki paran silinecek!" to run using left:
  74. remove {_p} from {bankahesaplari::*}
  75. delete {banka::hesapacmismi::%{_p}%}
  76. close {_p}'s inventory
  77. send "{@p} &aHesabını başarıyla sildin!" to {_p}
  78. make a gui slot 5 of {_p} with 159:14 named "&cVAZGEÇ" to run function banka({_p}, "menu")
  79. else:
  80. send "{@p} &cKredi Borcunu öde!" to {_p}
  81. make a gui slot 32 of {_p} with 160 named "&e" to nothing
  82. make a gui slot 33 of {_p} with 160 named "&e" to nothing
  83. make a gui slot 35 of {_p} with 160:5 named "&e" to nothing
  84. make a gui slot 36 of {_p} with 160:5 named "&e" to nothing
  85. make a gui slot 44 of {_p} with 160:5 named "&e" to nothing
  86. make a gui slot 46 of {_p} with 160:5 named "&e" to nothing
  87. make a gui slot 47 of {_p} with 160:5 named "&e" to nothing
  88. make a gui slot 48 of {_p} with 160:5 named "&e" to nothing
  89. make a gui slot 49 of {_p} with 160:5 named "&e" to nothing
  90. make a gui slot 50 of {_p} with 160:5 named "&e" to nothing
  91. make a gui slot 51 of {_p} with 160:5 named "&e" to nothing
  92. make a gui slot 52 of {_p} with 160:5 named "&e" to nothing
  93. make a gui slot 53 of {_p} with 160:5 named "&e" to nothing
  94. make a gui slot 30 of {_p} with 160 named "&e" to nothing
  95. make a gui slot 19 of {_p} with 160:4 named "&e" to nothing
  96. make a gui slot 20 of {_p} with 160:4 named "&e" to nothing
  97. make a gui slot 21 of {_p} with 160:4 named "&e" to nothing
  98. make a gui slot 22 of {_p} with 160:4 named "&e" to nothing
  99. make a gui slot 23 of {_p} with 160:4 named "&e" to nothing
  100. make a gui slot 24 of {_p} with 160:4 named "&e" to nothing
  101. make a gui slot 25 of {_p} with 160:4 named "&e" to nothing
  102. make a gui slot 28 of {_p} with 160:4 named "&e" to nothing
  103. make a gui slot 34 of {_p} with 160:4 named "&e" to nothing
  104. make a gui slot 37 of {_p} with 160:4 named "&e" to nothing
  105. make a gui slot 38 of {_p} with 160:4 named "&e" to nothing
  106. make a gui slot 39 of {_p} with 160:4 named "&e" to nothing
  107. make a gui slot 40 of {_p} with 160:4 named "&e" to nothing
  108. make a gui slot 41 of {_p} with 160:4 named "&e" to nothing
  109. make a gui slot 42 of {_p} with 160:4 named "&e" to nothing
  110. make a gui slot 43 of {_p} with 160:4 named "&e" to nothing
  111. make a gui slot 45 of {_p} with 262 named "&c&l<- Önceki Sayfa" to run function banka({_p}, "menu")
  112. if {_sayfa} is "islemmenu":
  113. play raw sound "note.pling" at {_p} with pitch 1 volume 10
  114. open virtual chest inventory with size 1 named "&eBanka / İşlem Menüsü" to {_p}
  115. make a gui slot 0 of {_p} with 351:10 named "&aKredi Çek" with lore "||&7Borç Kredi çekmek||&7için tıkla!" to run function banka({_p}, "kredicek")
  116. make a gui slot 1 of {_p} with 351:9 named "&aPara Çek" with lore "||&7Hesabından para çekmek||&7için tıkla!" to run function banka({_p}, "paracek")
  117. make a gui slot 2 of {_p} with 351:8 named "&aPara Yatır" with lore "||&7Hesabına para yatırmak||&7için tıkla!" to run function banka({_p}, "parayatir")
  118. make a gui slot 4 of {_p} with 335 named "&aMaaş Al" with lore "||&7Maaşını almak||&7için tıkla!" to run function banka({_p}, "maasal")
  119. make a gui slot 8 of {_p} with 262 named "&c&l<- Önceki Sayfa" to run function banka({_p}, "menu")
  120. if {_sayfa} is "kredicek":
  121. play raw sound "note.pling" at {_p} with pitch 3 volume 10
  122. open virtual chest inventory with size 3 named "&eBanka / Kredi Çek" to {_p}
  123. make a gui slot 13 of {_p} with 421 named "&eKredi Çek" with lore "||&7Limit: &c%{banka::limit::%{_p}%}%||||&aKredi çekmek için tıkla!" to run using left:
  124. set {kredicekiyor::%{_p}%} to true
  125. delete {paracekiyor::%{_p}%}
  126. delete {parayatiriyor::%{_p}%}
  127. send "{@p} &cLimit: &a%{banka::limit::%{_p}%}%" to {_p}
  128. send "{@p} &eLütfen sohbete Kredi fiyatını yaz!" to {_p}
  129. close {_p}'s inventory
  130. make a gui slot 18 of {_p} with 262 named "&c&l<- Önceki Sayfa" to run function banka({_p}, "islemmenu")
  131. if {_sayfa} is "paracek":
  132. play raw sound "note.pling" at {_p} with pitch 1 volume 10
  133. open virtual chest inventory with size 3 named "&eBanka / Para Çek" to {_p}
  134. make a gui slot 13 of {_p} with 421 named "&ePara Çek" with lore "||&7Bakiye: &c%{banka::para::%{_p}%}%||||&aPara çekmek için tıkla!" to run using left:
  135. set {paracekiyor::%{_p}%} to true
  136. delete {kredicekiyor::%{_p}%}
  137. delete {parayatiriyor::%{_p}%}
  138. send "{@p} &cBakiye: &a%{banka::para::%{_p}%}%" to {_p}
  139. send "{@p} &eLütfen sohbete Para fiyatını yaz!" to {_p}
  140. close {_p}'s inventory
  141. make a gui slot 18 of {_p} with 262 named "&c&l<- Önceki Sayfa" to run function banka({_p}, "islemmenu")
  142. if {_sayfa} is "parayatir":
  143. play raw sound "note.pling" at {_p} with pitch 1 volume 10
  144. open virtual chest inventory with size 3 named "&eBanka / Para Yatır" to {_p}
  145. make a gui slot 13 of {_p} with 421 named "&ePara Yatır" with lore "||&7Bakiye: &c%{banka::para::%{_p}%}%||||&aPara yatırmak için tıkla!" to run using left:
  146. set {parayatiriyor::%{_p}%} to true
  147. delete {kredicekiyor::%{_p}%}
  148. delete {paracekiyor::%{_p}%}
  149. send "{@p} &cBakiye: &a%{banka::para::%{_p}%}%" to {_p}
  150. send "{@p} &eLütfen sohbete Para fiyatını yaz!" to {_p}
  151. close {_p}'s inventory
  152. make a gui slot 18 of {_p} with 262 named "&c&l<- Önceki Sayfa" to run function banka({_p}, "islemmenu")
  153. if {_sayfa} is "maasal":
  154. play raw sound "note.pling" at {_p} with pitch 1 volume 10
  155. open virtual chest inventory with size 3 named "&eBanka / Maaş Al" to {_p}
  156. make a gui slot 13 of {_p} with 69 named "&eMaaş Al" with lore "||&a&m------||||&8Asgari Ücret: &7{@asgariucret}||||&eMaaşını almak için tıkla!" to run using left:
  157. set {_zaman} to difference between {maas::beklemesuresi::%{_p}%} and now
  158. if {maas::beklemesuresi::%{_p}%} is not set:
  159. set {maas::beklemesuresi::%{_p}%} to now
  160. execute console command "eco give %{_p}% {@asgariucret}"
  161. send "{@p} &eMaaşını çektin!" to {_p}
  162. banka({_p}, "maasal")
  163. else:
  164. if {maas::beklemesuresi::%{_p}%} was less than 24 hours ago:
  165. send "{@p} &cMaaşını 24 saatte bir alabilirsin!" to {_p}
  166. send "{@p} &eKalan süre: &a%difference between {_zaman} and 24 hours%" to {_p}
  167. else:
  168. set {maas::beklemesuresi::%{_p}%} to now
  169. execute console command "eco give %{_p}% {@asgariucret}"
  170. send "{@p} &eMaaşını çektin!" to {_p}
  171. banka({_p}, "maasal")
  172. make a gui slot 18 of {_p} with 262 named "&c&l<- Önceki Sayfa" to run function banka({_p}, "islemmenu")
  173. if {_sayfa} is "krediborcu":
  174. play raw sound "note.pling" at {_p} with pitch 1 volume 10
  175. open virtual chest inventory with size 3 named "&eBanka / Kredi Borcu" to {_p}
  176. make a gui slot 13 of {_p} with 77 named "%{banka::borc::%{_p}%}%" with lore "||&eKredi Borcunu||&eödemek için tıkla!" to run using left:
  177. if balance of {_p} is bigger than or equal to {banka::borc::%{_p}%}:
  178. set {_yenilimitbelirle} to name of slot 13 of {_p}'s current inventory parsed as integer
  179. set {_yenilimit} to "%{_yenilimitbelirle} / 2%" parsed as integer
  180. execute console command "eco take %{_p}% %{banka::borc::%{_p}%}%"
  181. add {_yenilimit} to {banka::limit::%{_p}%}
  182. set {banka::borc::%{_p}%} to 0
  183. set {banka::kredicekmismi::%{_p}%} to false
  184. send "{@p} &eKredi Borcunu başarıyla ödedin!" to {_p}
  185. close {_p}'s inventory
  186. else:
  187. send "{@p} &cBorcu ödemek için yeterli paran yok!" to {_p}
  188. make a gui slot 18 of {_p} with 262 named "&c&l<- Önceki Sayfa" to run function banka({_p}, "menu")
  189. if {_sayfa} is "sifreolustur":
  190. play raw sound "note.pling" at {_p} with pitch 1 volume 10
  191. open virtual chest inventory with size 6 named "&eBanka / Şifre Oluştur" to {_p}
  192. format gui slot 11 of {_p} with 339 named "0" to run function sifreolustur({_p}, "sifrebirarttir") with "left" click
  193. format gui slot 11 of {_p} with 339 named "0" to run function sifreolustur({_p}, "sifrebirazalt") with "right" click
  194. format gui slot 12 of {_p} with 339 named "0" to run function sifreolustur({_p}, "sifreikiarttir") with "left" click
  195. format gui slot 12 of {_p} with 339 named "0" to run function sifreolustur({_p}, "sifreikiazalt") with "right" click
  196. format gui slot 13 of {_p} with 339 named "0" to run function sifreolustur({_p}, "sifreucarttir") with "left" click
  197. format gui slot 13 of {_p} with 339 named "0" to run function sifreolustur({_p}, "sifreucazalt") with "right" click
  198. format gui slot 14 of {_p} with 339 named "0" to run function sifreolustur({_p}, "sifredortarttir") with "left" click
  199. format gui slot 14 of {_p} with 339 named "0" to run function sifreolustur({_p}, "sifredortazalt") with "right" click
  200. format gui slot 31 of {_p} with 76 named "&aSıfırla" to run function sifreolustur({_p}, "sifresifirla") with "left" click
  201. make a gui slot 30 of {_p} with 145 named "&aŞifreyi Oluştur" with lore "||&eYeni Şifreni||&eonaylamak için tıkla!" to run using left:
  202. set {_sifre1} to name of slot 11 of {_p}'s current inventory parsed as integer
  203. set {_sifre2} to name of slot 12 of {_p}'s current inventory parsed as integer
  204. set {_sifre3} to name of slot 13 of {_p}'s current inventory parsed as integer
  205. set {_sifre4} to name of slot 14 of {_p}'s current inventory parsed as integer
  206. if {_sifre1} and {_sifre2} and {_sifre3} and {_sifre4} is bigger than 0:
  207. if {_sifre1} and {_sifre2} and {_sifre3} and {_sifre4} is smaller than 10:
  208. set {banka::sifreolusturmusmu::%{_p}%} to true
  209. set {banka::girisyapmismi::%{_p}%} to true
  210. set {banka::sifre::%{_p}%} to "%{_sifre1}%%{_sifre2}%%{_sifre3}%%{_sifre4}%"
  211. banka({_p}, "menu")
  212. send "{@p} &eYeni Şifren oluşturuldu &a%{_sifre1}%%{_sifre2}%%{_sifre3}%%{_sifre4}%" to {_p}
  213. wait 1 tick
  214. add {para:%{_p}%} to {banka::para::%{_p}%}
  215. set {para:%{_p}%} to 0
  216. else:
  217. send "{@p} &cGirdiğin şifre 10'dan küçük olmalı!" to {_p}
  218. else:
  219. send "{@p} &cGirdiğin şifre 0'dan büyük olmalı!" to {_p}
  220. if {_sayfa} is "girisyap":
  221. play raw sound "note.pling" at {_p} with pitch 1 volume 10
  222. open virtual chest inventory with size 6 named "&eBanka / Giriş Yap" to {_p}
  223. format gui slot 11 of {_p} with 339 named "0" to run function girisyap({_p}, "sifrebirarttir") with "left" click
  224. format gui slot 11 of {_p} with 339 named "0" to run function girisyap({_p}, "sifrebirazalt") with "right" click
  225. format gui slot 12 of {_p} with 339 named "0" to run function girisyap({_p}, "sifreikiarttir") with "left" click
  226. format gui slot 12 of {_p} with 339 named "0" to run function girisyap({_p}, "sifreikiazalt") with "right" click
  227. format gui slot 13 of {_p} with 339 named "0" to run function girisyap({_p}, "sifreucarttir") with "left" click
  228. format gui slot 13 of {_p} with 339 named "0" to run function girisyap({_p}, "sifreucazalt") with "right" click
  229. format gui slot 14 of {_p} with 339 named "0" to run function girisyap({_p}, "sifredortarttir") with "left" click
  230. format gui slot 14 of {_p} with 339 named "0" to run function girisyap({_p}, "sifredortazalt") with "right" click
  231. format gui slot 31 of {_p} with 76 named "&aSıfırla" to run function girisyap({_p}, "sifresifirla") with "left" click
  232. make a gui slot 30 of {_p} with 145 named "&aGiriş Yap" with lore "||&eHesabına Giriş||&eyapmak için tıkla!" to run using left:
  233. set {_sifre1} to name of slot 11 of {_p}'s current inventory parsed as integer
  234. set {_sifre2} to name of slot 12 of {_p}'s current inventory parsed as integer
  235. set {_sifre3} to name of slot 13 of {_p}'s current inventory parsed as integer
  236. set {_sifre4} to name of slot 14 of {_p}'s current inventory parsed as integer
  237. set {_sifre} to "%{_sifre1}%%{_sifre2}%%{_sifre3}%%{_sifre4}%"
  238. if {_sifre1} and {_sifre2} and {_sifre3} and {_sifre4} is bigger than 0:
  239. if {_sifre1} and {_sifre2} and {_sifre3} and {_sifre4} is smaller than 10:
  240. if {_sifre} = {banka::sifre::%{_p}%}:
  241. set {banka::girisyapmismi::%{_p}%} to true
  242. banka({_p}, "menu")
  243. send "{@p} &eŞifre Doğru! Hesabına başarıyla giriş yaptın." to {_p}
  244. else:
  245. send "{@p} &cGirdiğin şifre yanlış!" to {_p}
  246. else:
  247. send "{@p} &cGirdiğin şifre 10'dan küçük olmalı!" to {_p}
  248. else:
  249. send "{@p} &cGirdiğin şifre 0'dan büyük olmalı!" to {_p}
  250.  
  251. function sifreolustur(p: Player, tiklamaturu: String):
  252. set {_sifre1} to name of slot 11 of {_p}'s current inventory parsed as number
  253. set {_sifre2} to name of slot 12 of {_p}'s current inventory parsed as number
  254. set {_sifre3} to name of slot 13 of {_p}'s current inventory parsed as number
  255. set {_sifre4} to name of slot 14 of {_p}'s current inventory parsed as number
  256. if {_tiklamaturu} is "sifrebirarttir":
  257. add 1 to {_sifre1}
  258. else if {_tiklamaturu} is "sifrebirazalt":
  259. remove 1 from {_sifre1}
  260. else if {_tiklamaturu} is "sifreikiarttir":
  261. add 1 to {_sifre2}
  262. else if {_tiklamaturu} is "sifreikiazalt":
  263. remove 1 from {_sifre2}
  264. else if {_tiklamaturu} is "sifreucarttir":
  265. add 1 to {_sifre3}
  266. else if {_tiklamaturu} is "sifreucazalt":
  267. remove 1 from {_sifre3}
  268. else if {_tiklamaturu} is "sifredortarttir":
  269. add 1 to {_sifre4}
  270. else if {_tiklamaturu} is "sifredortazalt":
  271. remove 1 from {_sifre4}
  272. else if {_tiklamaturu} is "sifresifirla":
  273. set {_sifre1} to 0
  274. set {_sifre2} to 0
  275. set {_sifre3} to 0
  276. set {_sifre4} to 0
  277. set name of slot 11 of {_p}'s current inventory to "%{_sifre1}%"
  278. set name of slot 12 of {_p}'s current inventory to "%{_sifre2}%"
  279. set name of slot 13 of {_p}'s current inventory to "%{_sifre3}%"
  280. set name of slot 14 of {_p}'s current inventory to "%{_sifre4}%"
  281.  
  282. function girisyap(p: Player, tiklamaturu: String):
  283. set {_sifre1} to name of slot 11 of {_p}'s current inventory parsed as number
  284. set {_sifre2} to name of slot 12 of {_p}'s current inventory parsed as number
  285. set {_sifre3} to name of slot 13 of {_p}'s current inventory parsed as number
  286. set {_sifre4} to name of slot 14 of {_p}'s current inventory parsed as number
  287. if {_tiklamaturu} is "sifrebirarttir":
  288. add 1 to {_sifre1}
  289. else if {_tiklamaturu} is "sifrebirazalt":
  290. remove 1 from {_sifre1}
  291. else if {_tiklamaturu} is "sifreikiarttir":
  292. add 1 to {_sifre2}
  293. else if {_tiklamaturu} is "sifreikiazalt":
  294. remove 1 from {_sifre2}
  295. else if {_tiklamaturu} is "sifreucarttir":
  296. add 1 to {_sifre3}
  297. else if {_tiklamaturu} is "sifreucazalt":
  298. remove 1 from {_sifre3}
  299. else if {_tiklamaturu} is "sifredortarttir":
  300. add 1 to {_sifre4}
  301. else if {_tiklamaturu} is "sifredortazalt":
  302. remove 1 from {_sifre4}
  303. else if {_tiklamaturu} is "sifresifirla":
  304. set {_sifre1} to 0
  305. set {_sifre2} to 0
  306. set {_sifre3} to 0
  307. set {_sifre4} to 0
  308. set name of slot 11 of {_p}'s current inventory to "%{_sifre1}%"
  309. set name of slot 12 of {_p}'s current inventory to "%{_sifre2}%"
  310. set name of slot 13 of {_p}'s current inventory to "%{_sifre3}%"
  311. set name of slot 14 of {_p}'s current inventory to "%{_sifre4}%"
  312.  
  313. function bankaprofil(p: player, o: String):
  314. play raw sound "note.pling" at {_p} with pitch 1 volume 10
  315. open virtual chest inventory with size 6 named "&eProfil / %{_o}%" to {_p}
  316. make gui slot 13 of {_p} with {_p}'s skull named "&a%{_o}%" with lore "&9&m------------------------||||&eBanka Türü||&e&m--------------||&7%{banka::tur::%{_o}%}%||||&eKayıt Tarihi: &7%{banka::kayittarihi::%{_o}%}%||&eBanka Görüntülenmesi: &7%{banka::goruntulenmesi::%{_o}%}%" to nothing
  317. make a gui slot 45 of {_p} with 262 named "&c&l<- Önceki Sayfa" to run function bankacilar({_p}, 1)
  318.  
  319. function bankacilar(p: player , i: number):
  320. play raw sound "note.pling" at {_p} with pitch 1 volume 10
  321. set {_bankacisayisi} to size of {bankahesaplari::*}
  322. set {_sayfa::maksimum} to {_i} * ((6 - 1) * 9)
  323. set {_sayfa::minimum} to ({_i} - 1) * ((6 - 1) * 9)
  324. set {_sayfa::bankacilar} to 0
  325. set {_sayfa::miktar} to 0
  326. set {_sayfa::sayi} to {_i}
  327. set {_sayfalar} to size of {bankahesaplari::*} / ((6 - 1) * 9)
  328. set {_sayfalar} to "%{_sayfalar}%"
  329. set {_sayfalar::*} to {_sayfalar} split at "."
  330. set {_sayfa::toplam} to {_sayfalar::1}
  331. if {_sayfalar::2} is set:
  332. set {_sayfa::toplam} to {_sayfa::toplam} parsed as an integer
  333. add 1 to {_sayfa::toplam}
  334. if inventory name of {_p}'s current inventory does not contain "&0Tüm Bankacıların Listesi":
  335. open virtual chest with size 6 named "&0Tüm Bankacıların Listesi %{_sayfa::sayi}%/%{_sayfa::toplam}%" to {_p}
  336. else:
  337. loop (6 * 9) times:
  338. set slot (loop-number - 1) of {_p}'s current inventory to air
  339. set inventory name of {_p}'s current inventory to "&0Tüm Bankacıların Listesi %{_sayfa::sayi}%/%{_sayfa::toplam}%"
  340. if {_sayfa::sayi} is greater than 1:
  341. make gui slot (6 * 9 - 9) of {_p} with 262 named "&eÖnceki Sayfa" to run using left:
  342. if {_sayfalar::1} parsed as an integer is greater than 1:
  343. set {_sayi} to "%{_sayfalar::1} parsed as an integer - 1%"
  344. bankacilar({_p}, {_sayi})
  345. else:
  346. bankacilar({_p}, 1)
  347. set slot (6 * 9 - 8) of {_p}'s current inventory to 160:14 named "&7"
  348. set slot (6 * 9 - 7) of {_p}'s current inventory to 160:15 named "&7"
  349. set slot (6 * 9 - 6) of {_p}'s current inventory to 160:15 named "&7"
  350. make gui slot (6 * 9 - 5) of {_p} with 385 named "&eSayfayı Yenile" to run using left:
  351. bankacilar({_p}, 1)
  352. set slot (6 * 9 - 4) of {_p}'s current inventory to 340 named "&eTüm Bankacıların Sayısı" with lore "&7Bankacılar &8» &c%{_bankacisayisi}%"
  353. set slot (6 * 9 - 3) of {_p}'s current inventory to 160:15 named "&7"
  354. set slot (6 * 9 - 2) of {_p}'s current inventory to 160:15 named "&7"
  355. set slot (6 * 9 - 1) of {_p}'s current inventory to 160:14 named "&7"
  356. else:
  357. make gui slot (6 * 9 - 9) of {_p} with 262 named "&eÖnceki Sayfa" to run using left:
  358. if {_sayfa::sayi} is greater than 1:
  359. make gui slot (6 * 9 - 9) of {_p} with 385 named "&eÖnceki Sayfa" to run using left:
  360. if {_sayfalar::1} parsed as an integer is greater than 1:
  361. set {_sayi} to "%{_sayfalar::1} parsed as an integer - 1%"
  362. bankacilar({_p}, {_sayi})
  363. else:
  364. bankacilar({_p}, 1)
  365. set slot (6 * 9 - 8) of {_p}'s current inventory to 160:14 named "&7"
  366. set slot (6 * 9 - 7) of {_p}'s current inventory to 160:15 named "&7"
  367. set slot (6 * 9 - 6) of {_p}'s current inventory to 160:15 named "&7"
  368. make gui slot (6 * 9 - 5) of {_p} with 385 named "&eSayfayı Yenile" to run using left:
  369. bankacilar({_p}, 1)
  370. set slot (6 * 9 - 4) of {_p}'s current inventory to 340 named "&eTüm Bankacıların Sayısı" with lore "&7Bankacılar &8» &c%{_bankacisayisi}%"
  371. set slot (6 * 9 - 3) of {_p}'s current inventory to 160:15 named "&7"
  372. set slot (6 * 9 - 2) of {_p}'s current inventory to 160:15 named "&7"
  373. set slot (6 * 9 - 1) of {_p}'s current inventory to 160:14 named "&7"
  374. loop {bankahesaplari::*}:
  375. if {_sayfa::bankacilar} is less than {_sayfa::maksimum}:
  376. if {_sayfa::miktar} is greater than or equal to {_sayfa::minimum}:
  377. set {_Bankacı} to "%loop-value%"
  378. make gui slot {_sayfa::bankacilar} of {_p} with loop-value's skull named "&e%loop-value%" to run using left:
  379. if {banka::goruntuleme::%{_p}%::%{_Bankacı}%} is not set:
  380. set {banka::goruntuleme::%{_p}%::%{_Bankacı}%} to true
  381. add 1 to {banka::goruntulenmesi::%{_Bankacı}%}
  382. bankaprofil({_p}, "%{_Bankacı}%")
  383. add 1 to {_sayfa::bankacilar}
  384. add 1 to {_sayfa::miktar}
  385. if {_sayfa::sayi} is less than {_sayfa::toplam}:
  386. make gui slot (6 * 9 - 1) of {_p} with 262 named "&eSonraki Sayfa" to run using left:
  387. set {_sayi2} to "%{_sayfalar::1} parsed as an integer + 1%"
  388. bankacilar({_p}, {_sayi2})
  389. if {_sayfa::miktar} is 0:
  390. open virtual chest with size 1 named "&0Mevcut Bankacı Sayısı: &a%{_sayfa::miktar}%" to {_p}
  391. set slot 0 of {_p}'s current inventory to 160:15 named "&7"
  392. set slot 1 of {_p}'s current inventory to 160:15 named "&7"
  393. set slot 2 of {_p}'s current inventory to 160:15 named "&7"
  394. set slot 3 of {_p}'s current inventory to 160:15 named "&7"
  395. set slot 4 of {_p}'s current inventory to 340 named "&eHenüz Bankacı bulunmamakta"
  396. set slot 5 of {_p}'s current inventory to 160:15 named "&7"
  397. set slot 6 of {_p}'s current inventory to 160:15 named "&7"
  398. set slot 7 of {_p}'s current inventory to 160:15 named "&7"
  399. set slot 8 of {_p}'s current inventory to 160:15 named "&7"
  400.  
  401. on inventory click:
  402. if inventory name of player's current inventory contains "&0Mevcut Bankacı Sayısı: ":
  403. cancel event
  404. if inventory name of player's current inventory contains "&0Tüm Bankacıların Listesi":
  405. cancel event
  406. set {_sayfa} to "%inventory name of player's current inventory%"
  407. replace all "&0Tüm Bankacıların Listesi " in {_sayfa} with ""
  408. set {_sayfalar::*} to {_sayfa} split at "/"
  409.  
  410. command /banka:
  411. trigger:
  412. if {banka::hesapacmismi::%player%} is not set:
  413. banka(player, "ac")
  414. else:
  415. if {banka::sifreolusturmusmu::%player%} is true:
  416. if {banka::girisyapmismi::%player%} is true:
  417. banka(player, "menu")
  418. else:
  419. banka(player, "girisyap")
  420. else:
  421. banka(player, "sifreolustur")
  422.  
  423. command /bankasifirla [<player>]:
  424. aliases: bs
  425. permission: bs.admin
  426. trigger:
  427. if arg 1 is not set:
  428. send "{@p} &e/bankasifirla &f<oyuncu>" to player
  429. if arg 1 is set:
  430. if arg 1 is online:
  431. set {banka::goruntulenmesi::%arg 1%} to 0
  432. set {banka::para::%arg 1%} to 0
  433. set {banka::limit::%arg 1%} to {@limitbaslangicfiyati}
  434. set {banka::borc::%arg 1%} to 0
  435. set {banka::kredicekmismi::%arg 1%} to false
  436. send "{@p} &e%arg 1%, &7oyuncusunun bilgileri sıfırlandı!" to player
  437. else:
  438. send "{@p} &cOyuncu aktif değil!" to player
  439.  
  440. on quit:
  441. set {banka::girisyapmismi::%player%} to false
  442. delete {kredicekiyor::%player%}
  443. delete {paracekiyor::%player%}
  444. delete {parayatiriyor::%player%}
  445.  
  446. command /cek [<player>] [<integer>]:
  447. trigger:
  448. if arg 1 is not set:
  449. send "{@p} &e/cek &f<oyuncu> <fiyat>" to player
  450. if arg 1 is set:
  451. if arg 1 = player:
  452. send "{@p} &cKendine çek yazamazsın!" to player
  453. else:
  454. if arg 1 is online:
  455. if arg 2 is set:
  456. set {_arg2} to "%arg 2%" parsed as integer
  457. if balance of player is bigger than or equal to {_arg2}:
  458. execute console command "eco take %player% %{_arg2}%"
  459. set {_ceksahibi} to arg 1
  460. set {_cekfiyati} to "%arg 2%" parsed as integer
  461. give 1 339 named "%{_cekfiyati}% TL &eÇek" with lore "||&a&m------||||&8Çeki Yazan: &7%player%||&8Çekin Sahibi: &7%{_ceksahibi}%||||&7Çeki bozdurmak için tıkla!" to player
  462. else:
  463. send "{@p} &cYeterli paran yok!" to player
  464. else:
  465. send "{@p} &e/cek &f<oyuncu> <fiyat>" to player
  466. else:
  467. send "{@p} &cOyuncu aktif değil!" to player
  468.  
  469. on rightclick with a 339:
  470. if lore of player's held item contains "&8Çekin Sahibi: &7%player%":
  471. play raw sound "note.pling" at player with pitch 2 volume 10
  472. lore of player's tool contains "&7Çeki bozdurmak için tıkla!"
  473. set {_miktar} to name of tool
  474. replace all " TL &eÇek" with "" in {_miktar}
  475. set {_miktar} to name of tool parsed as integer
  476. remove 1 of player's tool from player
  477. execute console command "eco give %player% %{_miktar}%"
  478. send "{@p} &eÇek bozduruldu!" to player
  479. else:
  480. send "{@p} &cÇekin sahibi sen değilsin!" to player
  481.  
  482. on chat:
  483. if {kredicekiyor::%player%} is set:
  484. cancel event
  485. if message is "iptal":
  486. delete {kredicekiyor::%player%}
  487. send "{@p} &cKredi çekimi iptal edildi!" to player
  488. banka(player, "kredicek")
  489. else:
  490. set {_fiyat} to "%message%" parsed as integer
  491. set {_enazkredifiyati} to "%{banka::limit::%player%} / 2%" parsed as integer
  492. set {_borc} to "%{_fiyat} * 2%" parsed as integer
  493. if {_fiyat} is bigger than 0:
  494. if {_fiyat} is bigger than {_enazkredifiyati}:
  495. if {_fiyat} is smaller than {banka::limit::%player%}+1:
  496. delete {kredicekiyor::%player%}
  497. set {banka::borc::%player%} to {_borc}
  498. set {banka::kredicekmismi::%player%} to true
  499. execute console command "eco give %player% %{_fiyat}%"
  500. send "{@p} &eBankadan &2%{_fiyat}% TL &ekredi çektin!" to player
  501. banka(player, "menu")
  502. else:
  503. send "{@p} &cGirdiğin fiyat Limiti aşıyor!" to player
  504. else:
  505. send "{@p} &cGirdiğin fiyat &2%{_enazkredifiyati}% TL&c'den fazla olmalı!" to player
  506. else:
  507. send "{@p} &cGirdiğin fiyat 0 TL'den fazla olmalı!" to player
  508. if {paracekiyor::%player%} is set:
  509. cancel event
  510. if message is "iptal":
  511. delete {paracekiyor::%player%}
  512. send "{@p} &cPara çekimi iptal edildi!" to player
  513. banka(player, "paracek")
  514. else:
  515. set {_fiyat} to "%message%" parsed as integer
  516. if {_fiyat} is bigger than 0:
  517. if {_fiyat} is smaller than {banka::para::%player%}+1:
  518. delete {paracekiyor::%player%}
  519. remove {_fiyat} from {banka::para::%player%}
  520. execute console command "eco give %player% %{_fiyat}%"
  521. send "{@p} &eHesabından &2%{_fiyat}% TL &epara çektin!" to player
  522. banka(player, "paracek")
  523. else:
  524. send "{@p} &cGirdiğin fiyat Limit'i aşıyor!" to player
  525. else:
  526. send "{@p} &cGirdiğin fiyat 0 TL'den fazla olmalı!" to player
  527. if {parayatiriyor::%player%} is set:
  528. cancel event
  529. if message is "iptal":
  530. delete {parayatiriyor::%player%}
  531. send "{@p} &cPara yatırımı iptal edildi!" to player
  532. banka(player, "parayatir")
  533. else:
  534. set {_fiyat} to "%message%" parsed as integer
  535. if {_fiyat} is bigger than 0:
  536. if balance of player is bigger than or equal to {_fiyat}:
  537. delete {parayatiriyor::%player%}
  538. add {_fiyat} to {banka::para::%player%}
  539. execute console command "eco take %player% %{_fiyat}%"
  540. send "{@p} &eHesabına &2%{_fiyat}% TL &epara yatırdın!" to player
  541. banka(player, "parayatir")
  542. else:
  543. send "{@p} &cGirdiğin fiyat Paran'ı aşıyor!" to player
  544. else:
  545. send "{@p} &cGirdiğin fiyat 0 TL'den fazla olmalı!" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement