Advertisement
Guest User

ActiveChat Beta 1.2

a guest
Feb 26th, 2017
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.04 KB | None | 0 0
  1. // You need:
  2. // 1) Label on screen "inchat" in the bottom left corner with:
  3. // "Control Name" = "ActiveChat"
  4. // "Background colour" = "0"
  5. // "Text Align" = "Bottom Left"
  6. // 2) Label on screen "ingame" in the 3rd row from the top
  7. // over the whole screen from left to right with:
  8. // "Control Name" = "InfoChat"
  9. // "Background colour" = "0"
  10. // "Text Align" = "Middle Centre"
  11.  
  12. //= OPTIONS ==========================================================================
  13.  
  14. #on=1
  15. // Master switch
  16. // 0 - off
  17. // 1 - on
  18.  
  19. #activechat=1
  20. // Shows you your active chat
  21. // 0 - off
  22. // 1 - on
  23.  
  24. #money=1
  25. // Makes /money messages short and fancy
  26. // 0 - off
  27. // 1 - on
  28.  
  29. #bank=1
  30. // Reorganizes /kbank infos and replaces the guy at the bank
  31. // 0 - off
  32. // 1 - on
  33.  
  34. #shop=1
  35. // Makes shop messages so damn fancy. Holy shit!
  36. // 0 - off
  37. // 1 - on
  38.  
  39. #tpa=1
  40. // Makes tpa requests much shorter and fancy
  41. // 0 - off
  42. // 1 - on
  43.  
  44. #guildinfo=1
  45. // Filters unnecessary lines and changes join/leave messages
  46. // 0 - off
  47. // 1 - on
  48.  
  49. #ping=1
  50. // Changes just one message. For style reasons.
  51. // 0 - off
  52. // 1 - on
  53.  
  54. #mail=1
  55. // Makes mail messages fancy
  56. // 0 - off
  57. // 1 - on
  58. // Planned:
  59. // 2 - on (only show on join and new mail)
  60. // 3 - on (only show on join)
  61. // 4 - on (never show)
  62.  
  63. #votes=1
  64. // Makes vote messages short and fancy
  65. // 0 - off
  66. // 1 - on
  67. // 2 - on (super short)
  68. // 3 - on (no more vote messages)
  69.  
  70. #server=1
  71. // Makes messages from a server switch short and fancy
  72. // 0 - off
  73. // 1 - on
  74.  
  75. #noperm=1
  76. // Filters some "You don't have permission ..." messages
  77. // and replaces them with a villager sound
  78. // 0 - off
  79. // 1 - on
  80.  
  81. #fishing=1
  82. // Filters the fishing messages
  83. // 0 - show messages
  84. // 1 - hide messages
  85.  
  86. #debug=0
  87. // Don't know what's going on?
  88. // 0 - Normal operation mode
  89. // 1 - Show ALL chat messages (original and changed ones)
  90.  
  91. //====================================================================================
  92.  
  93.  
  94.  
  95. // TAGS
  96. &version="§r§5ActiveChat§r §eBeta§r"
  97. &tag_activechat="§r§8§l>>>§r"
  98. &tag_afk="§r§8[§7§lAFK§r§8]§r"
  99. &tag_money="§r§8[§r§aMoney§r§8]§r"
  100. &tag_itime="§r§8[§r§aiTime§r§8]§r"
  101. &tag_bank="§r§8[§r§aBank§r§8]§r"
  102. &tag_shop="§r§8[§r§aShop§r§8]§r"
  103. &tag_votes="§r§8[§r§aVotes§r§8]§r"
  104. &tag_server="§r§8[§r§cServer§r§8]§r"
  105. &tag_tpa="§r§8[§r§aTpa§r§8]§r"
  106. &tag_ping="§r§8[§r§aPing§r§8]§r"
  107. &tag_mail="§r§8[§r§aMail§r§8]§r"
  108. &tag_arrow_r="§r§8»§r"
  109. &tag_arrow_l="§r§8«§r"
  110. &tag_minus="§r§8-§r"
  111. &tag_pipe="§r§8|§r"
  112. &tag_pipeend="§r§8L§r"
  113.  
  114. if(#on)
  115. // Chat
  116. ifbeginswith(%CHAT%,"§e[l] ")
  117. if(#bank)
  118. ifbeginswith(%CHAT%,"§e[l] §r§fBankberater§r§e: §r§aGerne. Ab sofort kann §r")
  119. ifcontains(%CHAT%,"§r§a nicht mehr auf das Konto §r§6")
  120. ifbeginswith(%CHAT%,"§e[l] §r§fBankberater§r§e: §r§aGerne. Ab sofort kann §r§a nicht mehr auf das Konto §r§6")
  121. log("§e[l] §r§7[§r§2Bank§r§7]§r§fMonet§r§e: §ePlease§r §etell§r §eme§r §ethe§r §ename§r §eof§r §ethe§r §eperson§r §eyou§r §ewant§r §eto§r §eremove§r §efrom§r §6%&bank_account%§r§e.§r")
  122. else
  123. match(%CHAT%,"§e\[l\] §r§fBankberater§r§e: §r§aGerne. Ab sofort kann §r§e(.*)§r§a nicht mehr auf das Konto §r§6(.*)§r§a zugreifen.§r",{&bank_add,&bank_account})
  124. log("§e[l] §r§7[§r§2Bank§r§7]§r§fMonet§r§e: §3%&bank_add%§r §ehas§r §eno§r §eaccess§r §eto§r §eyour§r §ebank§r §eaccount§r §6%&bank_account%§r §eanymore.§r")
  125. endif
  126. else
  127. match(%CHAT%,"§e\[l\] §r§fBankberater§r§e: §r§aGerne. Ab sofort kann §r§e(.*)§r§a auf das Konto §r§6(.*)§r§a zugreifen.§r",{&bank_add,&bank_account})
  128. log("§e[l] §r§7[§r§2Bank§r§7]§r§fMonet§r§e: §3%&bank_add%§r §ehas§r §enow§r §efull§r §eaccess§r §eto§r §eyour§r §ebank§r §eaccount§r §6%&bank_account%§r§e.§r §eWe§r §edo§r §enot§r §erefund§r §eany§r §estolen§r §emoney.§r")
  129. endif
  130. #cut=1
  131. endif
  132. ifbeginswith(%CHAT%,"§e[l] §r§fBankberater§r§e: §r§cBitte beachten Sie: Die Bank haftet nicht dafür, wenn §r§e")
  133. #cut=1
  134. endif
  135. ifbeginswith(%CHAT%,"§e[l] §r§fBankberater§r§e: §r§6Entschuldigung, ich habe Sie leider nicht verstanden.§r")
  136. log("§e[l] §r§7[§r§2Bank§r§7]§r§fMonet§r§e:§r §eSorry.§r §eI§r §edid§r §enot§r §eunderstand§r §ewhat§r §eyou§r §esaid.§r")
  137. #cut=1
  138. endif
  139. ifbeginswith(%CHAT%,"§e[l] §r§fBankberater§r§e: §r§aGerne. Ich habe für Sie das Konto mit dem Namen §r§6")
  140. match(%CHAT%,"§e\[l\] §r§fBankberater§r§e: §r§aGerne. Ich habe für Sie das Konto mit dem Namen §r§6(.*)§r§a eröffnet.§r",{&bank_account})
  141. log("§e[l] §r§7[§r§2Bank§r§7]§r§fMonet§r§e:§r §eYour§r §enew§r §ebank§r §eaccount§r §6%&bank_account%§r §eis§r §eready§r §eto§r §ebe§r §eused.§r")
  142. #cut=1
  143. endif
  144. ifbeginswith(%CHAT%,"§e[l] §r§fBankberater§r§e: §r§aGerne. Ich habe Ihr Konto §r§6")
  145. match(%CHAT%,"§e\[l\] §r§fBankberater§r§e: §r§aGerne. Ich habe Ihr Konto §r§6(.*)§r§a geschlossen.§r",{&bank_account})
  146. log("§e[l] §r§7[§r§2Bank§r§7]§r§fMonet§r§e:§r §eYour§r §ebank§r §eaccount§r §6%&bank_account%§r §ewas§r §edeleted.§r")
  147. #cut=1
  148. endif
  149. ifbeginswith(%CHAT%,"§e[l] §r§fBankberater§r§e: §r§cLeider gibt es schon ein Konto mit dem Namen §r§6")
  150. match(%CHAT%,"§e\[l\] §r§fBankberater§r§e: §r§cLeider gibt es schon ein Konto mit dem Namen §r§6(.*)§r§a.§r",{&bank_account})
  151. log("§e[l] §r§7[§r§2Bank§r§7]§r§fMonet§r§e:§r §eThere§r §eis§r §ealready§r §ea§r §ebank§r §eaccount§r §enamed§r §6%&bank_account%§r§e.§r")
  152. #cut=1
  153. endif
  154. ifbeginswith(%CHAT%,"§e[l] §r§fBankberater§r§e: §r§cEs tut mir leid, Sie haben keinen Zugriff auf das Konto §r§6")
  155. match(%CHAT%,"§e\[l\] §r§fBankberater§r§e: §r§cEs tut mir leid, Sie haben keinen Zugriff auf das Konto §r§6(.*)§r§c.§r",{&bank_account})
  156. log("§e[l] §r§7[§r§2Bank§r§7]§r§fMonet§r§e:§r §eYou§r §edon't§r §ehave§r §eaccess§r §eto§r §6%&bank_account%§r§e.§r")
  157. #cut=1
  158. endif
  159. ifbeginswith(%CHAT%,"§e[l] §r§fBankberater§r§e: §r§cSie haben bereits die Maximalanzahl an Konten eröffnet.§r")
  160. log("§e[l] §r§7[§r§2Bank§r§7]§r§fMonet§r§e:§r §eYou§r §ecannot§r §eopen§r §eanother§r §ebank§r §eaccount.§r")
  161. #cut=1
  162. endif
  163. ifbeginswith(%CHAT%,"§e[l] §r§fBankberater§r§e: §r§aGerne. Ab sofort können Sie nicht mehr auf das Konto §r§6")
  164. match(%CHAT%,"§e\[l\] §r§fBankberater§r§e: §r§aGerne. Ab sofort können Sie nicht mehr auf das Konto §r§6(.*)§r§a zugreifen, für erneuten Zugriff melden Sie sich bitte beim Kontobesitzer.§r",{&bank_account})
  165. log("§e[l] §r§7[§r§2Bank§r§7]§r§fMonet§r§e:§r §eYou§r §ehave§r §ebeen§r §eremoved§r §efrom§r §6%&bank_account%§r§e.§r")
  166. #cut=1
  167. endif
  168. endif
  169. else
  170. ifbeginswith(%CHAT%,"§2[G] ")
  171. else
  172. ifbeginswith(%CHAT%,"§9[T] ")
  173. else
  174. ifbeginswith(%CHAT%,"§b[h] ")
  175. else
  176. ifbeginswith(%CHAT%,"§6[S] ")
  177. else
  178. // Guild Chat
  179. ifbeginswith(%CHAT%,"§2[Guild] > ")
  180. else
  181. // Shop 1/2
  182. ifbeginswith(%CHAT%,"§a[Shop] ")
  183. if(#shop)
  184. ifcontains(%CHAT%,") von ")
  185. ifbeginswith(%CHAT%,"§a[Shop] §r§fDu hast §r§a")
  186. match(%CHAT%,"§a\[Shop\] §r§fDu hast §r§a(.*)§r (.*) \((.*)\) von (.*) für §r§c(.*) Kadis§r gekauft.§r",{&shop_amount,&shop_item,&shop_id,&shop_player,&shop_money})
  187. else
  188. match(%CHAT%,"§a\[Shop\] §r§fDu hast (.*) MONSTER_EGG (.*) \((.*)\) von (.*) für §r§c(.*) Kadis§r gekauft.§r",{&shop_amount,&shop_item,&shop_id,&shop_player,&shop_money})
  189. endif
  190. &shop_action="You buy"
  191. endif
  192. ifcontains(%CHAT%,") an ")
  193. ifbeginswith(%CHAT%,"§a[Shop] §r§fDu hast §r§a")
  194. match(%CHAT%,"§a\[Shop\] §r§fDu hast §r§a(.*)§r (.*) \((.*)\) an (.*) für §r§c(.*) Kadis§r verkauft.§r",{&shop_amount,&shop_item,&shop_id,&shop_player,&shop_money})
  195. else
  196. match(%CHAT%,"§a\[Shop\] §r§fDu hast (.*) MONSTER_EGG (.*) \((.*)\) an (.*) für §r§c(.*) Kadis§r verkauft.§r",{&shop_amount,&shop_item,&shop_id,&shop_player,&shop_money})
  197. endif
  198. &shop_action="You sell"
  199. endif
  200. ifcontains(%CHAT%," hat von dir §r§a")
  201. ifendswith(%CHAT%," Kadis Steuern) gekauft.§r")
  202. match(%CHAT%,"§a\[Shop\] §r§f(.*) hat von dir §r§a(.*)§r (.*) \((.*)\) für §r§c(.*) Kadis§r \(0.01 Kadis Steuern\) gekauft.§r",{&shop_player,&shop_amount,&shop_item,&shop_id,&shop_money})
  203. else
  204. match(%CHAT%,"§a\[Shop\] §r§f(.*) hat von dir §r§a(.*)§r (.*) \((.*)\) für §r§c(.*) Kadis§r gekauft.§r",{&shop_player,&shop_amount,&shop_item,&shop_id,&shop_money})
  205. endif
  206. &shop_action="They buy"
  207. else
  208. ifcontains(%CHAT%," hat von dir ")
  209. ifendswith(%CHAT%," Kadis Steuern) gekauft.§r")
  210. match(%CHAT%,"§a\[Shop\] §r§f(.*) hat von dir (.*) MONSTER_EGG (.*) \((.*)\) für §r§c(.*) Kadis§r \(0.01 Kadis Steuern\) gekauft.§r",{&shop_player,&shop_amount,&shop_item,&shop_id,&shop_money})
  211. else
  212. match(%CHAT%,"§a\[Shop\] §r§f(.*) hat von dir (.*) MONSTER_EGG (.*) \((.*)\) für §r§c(.*) Kadis§r gekauft.§r",{&shop_player,&shop_amount,&shop_item,&shop_id,&shop_money})
  213. endif
  214. &shop_action="They buy"
  215. endif
  216. endif
  217. ifcontains(%CHAT%," hat dir §r§a")
  218. match(%CHAT%,"§a\[Shop\] §r§f(.*) hat dir §r§a(.*)§r (.*) \((.*)\) für §r§c(.*) Kadis§r verkauft.§r",{&shop_player,&shop_amount,&shop_item,&shop_id,&shop_money})
  219. &shop_action="They sell"
  220. else
  221. ifcontains(%CHAT%," hat dir ")
  222. match(%CHAT%,"§a\[Shop\] §r§f(.*) hat dir (.*) MONSTER_EGG (.*) \((.*)\) für §r§c(.*) Kadis§r verkauft.§r",{&shop_player,&shop_amount,&shop_item,&shop_id,&shop_money})
  223. &shop_action="They sell"
  224. endif
  225. endif
  226. if(&shop_item="Music Disc")
  227. if(&shop_id="2256:0")
  228. &shop_item="%&shop_item%§r §d13§r"
  229. elseif(&shop_id="2257:0")
  230. &shop_item="%&shop_item%§r §dCat§r"
  231. elseif(&shop_id="2258:0")
  232. &shop_item="%&shop_item%§r §dBlocks§r"
  233. elseif(&shop_id="2259:0")
  234. &shop_item="%&shop_item%§r §dChirp§r"
  235. elseif(&shop_id="2260:0")
  236. &shop_item="%&shop_item%§r §dFar§r"
  237. elseif(&shop_id="2261:0")
  238. &shop_item="%&shop_item%§r §dMall§r"
  239. elseif(&shop_id="2262:0")
  240. &shop_item="%&shop_item%§r §dMellohi§r"
  241. elseif(&shop_id="2263:0")
  242. &shop_item="%&shop_item%§r §dStal§r"
  243. elseif(&shop_id="2264:0")
  244. &shop_item="%&shop_item%§r §dStrad§r"
  245. elseif(&shop_id="2265:0")
  246. &shop_item="%&shop_item%§r §dWard§r"
  247. elseif(&shop_id="2266:0")
  248. &shop_item="%&shop_item%§r §d11§r"
  249. elseif(&shop_id="2267:0")
  250. &shop_item="%&shop_item%§r §dWait§r"
  251. endif
  252. endif
  253. if(&shop_action!="")
  254. if(&shop_action="You buy")
  255. log("%&tag_shop%§r §7You§r §7bought§r §e%&shop_amount%§r §a%&shop_item%§r§7.§r §4[§r§c-§r§e%&shop_money%§r §eKadis§r§4]§r")
  256. setlabel(InfoChat,"")
  257. elseif(&shop_action="You sell")
  258. log("%&tag_shop%§r §7You§r §7sold§r §e%&shop_amount%§r §a%&shop_item%§r§7.§r §2[§r§a+§r§e%&shop_money%§r §eKadis§r§2]§r")
  259. setlabel(InfoChat,"")
  260. elseif(&shop_action="They buy")
  261. log("%&tag_shop%§r §3%&shop_player%§r §7bought§r §e%&shop_amount%§r §a%&shop_item%§r§7.§r §2[§r§a+§r§e%&shop_money%§r §eKadis§r§2]§r")
  262. elseif(&shop_action="They sell")
  263. log("%&tag_shop%§r §3%&shop_player%§r §7sold§r §e%&shop_amount%§r §a%&shop_item%§r§7.§r §4[§r§c-§r§e%&shop_money%§r §eKadis§r§4]§r")
  264. endif
  265. &shop_action=""
  266. #cut=1
  267. endif
  268. ifmatches(%CHAT%,"§a\[Shop\] §r§fDu hast nicht genug Items, um hier zu verkaufen!§r")
  269. log("%&tag_shop%§r §7You don't have this item.§r")
  270. setlabel(InfoChat,"")
  271. #cut=1
  272. endif
  273. ifmatches(%CHAT%,"§a\[Shop\] §r§fDie Shopkiste hat nicht genug Platz!§r")
  274. log("%&tag_shop%§r §7This shop does not have the required free space.§r")
  275. setlabel(InfoChat,"")
  276. #cut=1
  277. endif
  278. ifmatches(%CHAT%,"§a\[Shop\] §r§fDer Shopbesitzer hat nicht genug Geld!§r")
  279. log("%&tag_shop%§r §7The shop owner is out of money.§r")
  280. setlabel(InfoChat,"")
  281. #cut=1
  282. endif
  283. ifmatches(%CHAT%,"§a\[Shop\] §r§fHier kannst du nichts kaufen!§r")
  284. log("%&tag_shop%§r §7You can't buy items here.§r")
  285. #cut=1
  286. endif
  287. ifmatches(%CHAT%,"§a\[Shop\] §r§fHier kannst du nichts verkaufen!§r")
  288. log("%&tag_shop%§r §7You can't sell items here.§r")
  289. #cut=1
  290. endif
  291. ifmatches(%CHAT%,"§a\[Shop\] §r§fDafür hast du keine Berechtigung!§r")
  292. log("%&tag_shop%§r §7You don't have access to this shop chest.§r")
  293. #cut=1
  294. endif
  295. endif
  296. else
  297. // Money
  298. ifbeginswith(%CHAT%,"§2[§r§fMoney§r§2] ")
  299. if(#money)
  300. ifbeginswith(%CHAT%,"§2[§r§fMoney§r§2] §r§2Balance: §r§f")
  301. match(%CHAT%,"§2\[§r§fMoney§r§2\] §r§2Balance: §r§f(.*) Kadis§r",{&money_pocket})
  302. log("%&tag_money%§r §7You§r §7got§r §e%&money_pocket%§r §eKadis§r §7in§r §7your§r §7pocket§r§7.§r")
  303. #cut=1
  304. endif
  305. ifbeginswith(%CHAT%,"§2[§r§fMoney§r§2] §r§2You have sent §r§f")
  306. match(%CHAT%,"§2\[§r§fMoney§r§2\] §r§2You have sent §r§f(.*) Kadis§r§2 to §r§f(.*)§r§2.§r",{&money_payed,&money_receiver})
  307. log("%&tag_money%§r §7You§r §7have§r §7sent§r §e%&money_payed%§r §eKadis§r §7to§r §3%&money_receiver%§r§7.§r")
  308. #cut=1
  309. endif
  310. ifcontains(%CHAT%,"§r§2 has sent you §r§f")
  311. match(%CHAT%,"§2\[§r§fMoney§r§2\] §r§f(.*)§r§2 has sent you §r§f(.*) Kadis§r§2.§r",{&money_sender,&money_received})
  312. log("%&tag_money%§r §7You§r §7recieved§r §e%&money_received%§r §eKadis§r §7from§r §3%&money_sender%§r§7.§r")
  313. #cut=1
  314. endif
  315. ifcontains(%CHAT%,"'s Balance: §r§f")
  316. match(%CHAT%,"§2\[§r§fMoney§r§2\] §r§2(.*)'s Balance: §r§f(.*) Kadis§r",{&money_name,&money_pocket})
  317. log("%&tag_money%§r §3%&money_name%§r §7has§r §e%&money_pocket%§r §eKadis§r §7in§r §7the§r §7pocket§r§7.§r")
  318. #cut=1
  319. endif
  320. endif
  321. else
  322. // Ping
  323. ifbeginswith(%CHAT%,"§6[§r§aPING§r§6]§r§7: §r§aDein Ping ist: §r§6")
  324. if(#ping)
  325. match(%CHAT%,"§6\[§r§aPING§r§6\]§r§7: §r§aDein Ping ist: §r§6(.*)§r",{&ping_ping})
  326. log("%&tag_ping%§r§7 Your ping is §e%&ping_ping%§r §ems§r§7.§r")
  327. #cut=1
  328. endif
  329. else
  330. // iTime
  331. ifbeginswith(%CHAT%,"§2[§r§fTime§r§2] §r§2Balance: §r§f")
  332. if(#money)
  333. match(%CHAT%,"§2\[§r§fTime§r§2\] §r§2Balance: §r§f(.*) Minutes§r",{&itime_itime})
  334. log("%&tag_itime%§r§7 You have §b%&itime_itime%§r &biTime§r§7.§r")
  335. #cut=1
  336. endif
  337. else
  338. // Mail
  339. ifbeginswith(%CHAT%,"§6[§r")
  340. if(#mail)
  341. match(%CHAT%,"§6\[§r(.*)§r§6\] §r(.*)§r",{&mail_sender,&mail_message})
  342. log("%&tag_arrow_r%§r §3%&mail_sender%§r§f:§r §f%&mail_message%§r")
  343. if(#mail_just_sent)
  344. #mail_just_sent=0
  345. if(&mail_receiver=&name)
  346. #mail_refresh=1
  347. echo("/tp")
  348. endif
  349. endif
  350. #cut=1
  351. endif
  352. else
  353. if(#mail)
  354. ifmatches(%CHAT%,"§6Du hast keine Nachrichten.§r")
  355. &mail_mails="0"
  356. log("%&tag_mail%§r§7 You got §e%&mail_mails% mails§7.")
  357. #cut=1
  358. endif
  359. ifmatches(%CHAT%,"§6Du hast keine neue Nachrichten.§r")
  360. &mail_mails="0"
  361. log("%&tag_mail%§r§7 You got §e%&mail_mails% mails§7.")
  362. #cut=1
  363. endif
  364. ifbeginswith(%CHAT%,"§e ---- §r§6Mail: read §r§e--§r§6 Seite §r§c")
  365. match(%CHAT%,"§e ---- §r§6Mail: read §r§e--§r§6 Seite §r§c(.*)§r§6/§r§c(.*) §r§e----§r",{&mail_page_now,&mail_page_of})
  366. if(&mail_page_of="1")
  367. if(&mail_mails="1")
  368. log("%&tag_mail%§r§7 There is §e1 mail§7 in your mailbox.")
  369. else
  370. log("%&tag_mail%§r§7 There are §e%&mail_mails% mails§7 in your mailbox.")
  371. endif
  372. else
  373. log("%&tag_mail%§r§7 Opening mailbox §e%&mail_page_now%§7 of §e%&mail_page_of%§7. You got §e%&mail_mails% mails§7.")
  374. endif
  375. #cut=1
  376. endif
  377. ifendswith(%CHAT%,"§r§6 wurde diese Mail gesendet:§r")
  378. match(%CHAT%,"§c(.*)§r§6 wurde diese Mail gesendet:§r",{&mail_receiver})
  379. log("%&tag_mail%§r§7 You sent §3%&mail_receiver%§7 the following mail:")
  380. #mail_just_sent=1
  381. #cut=1
  382. endif
  383. ifbeginswith(%CHAT%,"§6Du hast §r§c")
  384. match(%CHAT%,"§6Du hast §r§c(.*) §r§6Nachrichten\! Schreibe §r§c/mail read§r§6 um deine Nachrichten anzuzeigen.§r",{&mail_mails})
  385. if(#mail_refresh=0)
  386. if(&mail_mails!="0")
  387. if(&mail_mails="1")
  388. log("%&tag_mail%§r§7 You got §e%&mail_mails% mail§7. Type §a/mail read§7 to read it.")
  389. else
  390. log("%&tag_mail%§r§7 You got §e%&mail_mails% mails§7. Type §a/mail read§7 to read them.")
  391. endif
  392. endif
  393. endif
  394. #cut=1
  395. endif
  396. ifmatches(%CHAT%,"§6Nachrichten gelöscht!§r")
  397. log("%&tag_mail%§r§7 You cleared your mailbox.")
  398. &mail_mails="0"
  399. #cut=1
  400. endif
  401. ifmatches(%CHAT%,"§6Um deine Nachrichten zu löschen, schreibe§r§c /mail clear.§r")
  402. if(%&mail_page_of%="1")
  403. log("%&tag_arrow_r%§r§7 Clear your mailbox with §c/mail clear§7.")
  404. else
  405. log("%&tag_arrow_r%§r§7 Use §a/mail read 1§8..§a%&mail_page_of%§7 to read and §c/mail clear§7 to clear.")
  406. endif
  407. #cut=1
  408. endif
  409. endif
  410. // Shop 2/2
  411. if(#shop)
  412. ifbeginswith(%CHAT%,"Du wirst §r§a")
  413. ifendswith(%CHAT%,"§r§f kaufen.§r")
  414. match(%CHAT%,"Du wirst §r§a(.*)§r (.*) \((.*)\) für §r§c(.*)§r§f kaufen.§r",{&shop_amount,&shop_item,&shop_id,&shop_money})
  415. setlabel(InfoChat,"%&tag_arrow_r%§r §fTrying§r §fto§r §fbuy§r §e%&shop_amount%§r §a%&shop_item%§r§7.§r §4[§c-§e%&shop_money%§r §eKadis§r§4]§r %&tag_arrow_l%§r")
  416. #cut=1
  417. endif
  418. ifendswith(%CHAT%,"§r§f verkaufen.§r")
  419. match(%CHAT%,"Du wirst §r§a(.*)§r (.*) \((.*)\) für §r§c(.*)§r§f verkaufen.§r",{&shop_amount,&shop_item,&shop_id,&shop_money})
  420. setlabel(InfoChat,"%&tag_arrow_r%§r §fTrying§r §fto§r §fsell§r §e%&shop_amount%§r §a%&shop_item%§r§7.§r §2[§a+§e%&shop_money%§r §eKadis§r§2]§r %&tag_arrow_l%§r")
  421. #cut=1
  422. endif
  423. else
  424. ifbeginswith(%CHAT%,"Du wirst ")
  425. ifendswith(%CHAT%,"§r§f kaufen.§r")
  426. match(%CHAT%,"Du wirst (.*) MONSTER_EGG (.*) \((.*)\) für §r§c(.*)§r§f kaufen.§r",{&shop_amount,&shop_item,&shop_id,&shop_money})
  427. setlabel(InfoChat,"%&tag_arrow_r%§r §fTrying§r §fto§r §fbuy§r §e%&shop_amount%§r §a%&shop_item%§r§7.§r §4[§c-§e%&shop_money%§r §eKadis§r§4]§r %&tag_arrow_l%§r")
  428. #cut=1
  429. endif
  430. ifendswith(%CHAT%,"§r§f verkaufen.§r")
  431. match(%CHAT%,"Du wirst (.*) MONSTER_EGG (.*) \((.*)\) für §r§c(.*)§r§f verkaufen.§r",{&shop_amount,&shop_item,&shop_id,&shop_money})
  432. setlabel(InfoChat,"%&tag_arrow_r%§r §fTrying§r §fto§r §fsell§r §e%&shop_amount%§r §a%&shop_item%§r§7.§r §2[§a+§e%&shop_money%§r §eKadis§r§2]§r %&tag_arrow_l%§r")
  433. #cut=1
  434. endif
  435. endif
  436. endif
  437. ifmatches(%CHAT%,"Der Handel wurde abgebrochen.§r")
  438. log("%&tag_shop%§r §7Your trading request was canceled.§r")
  439. setlabel(InfoChat,"")
  440. #cut=1
  441. endif
  442. endif
  443. // ActiveChat
  444. if(#activechat)
  445. ifbeginswith(%CHAT%,"§eDu chattest jetzt mit §r§f")
  446. match(%CHAT%,"§eDu chattest jetzt mit §r§f(.*)§r§e.§r",{&activechat_active})
  447. &activechat_colored="§d%&activechat_active%"
  448. #updatelabel=1
  449. #updatechat=1
  450. #cut=1
  451. endif
  452. ifbeginswith(%CHAT%,"§eDu chattest jetzt in §r")
  453. match(%CHAT%,"§eDu chattest jetzt in §r(.*)§r§e.§r",{&activechat_colored})
  454. strip(&activechat_active,%&activechat_colored%)
  455. #updatelabel=1
  456. #updatechat=1
  457. #cut=1
  458. endif
  459. ifmatches(%CHAT%,"§eSpieler wurde nicht gefunden.§r")
  460. log("%&tag_activechat%§r§7 Player not found...")
  461. #cut=1
  462. endif
  463. ifmatches(%CHAT%,"§eNiemand hat dir eine Nachricht hinterlassen.§r")
  464. log("%&tag_activechat%§r§7 There is no one to reply...")
  465. #cut=1
  466. endif
  467. ifmatches(%CHAT%,"§eChannel wurde nicht gefunden.§r")
  468. log("%&tag_activechat%§r§7 Channel not found...")
  469. #cut=1
  470. endif
  471. ifmatches(%CHAT%,"§eDu bist nun AFK.§r")
  472. log("%&tag_activechat%§r§7 You are AFK now. §cGoodbye§7!")
  473. #afk=1
  474. #updatelabel=1
  475. #cut=1
  476. endif
  477. ifbeginswith(%CHAT%,"§eDu bist nicht länger AFK.§r")
  478. log("%&tag_activechat%§r§7 You returned from your AFK-Adventure. §aWelcome back§7!")
  479. #afk=0
  480. #updatelabel=1
  481. #cut=1
  482. endif
  483. ifbeginswith(%CHAT%,"§c§lDu wirst zu Server ")
  484. #switch=1
  485. #cut=1
  486. endif
  487. ifbeginswith(%CHAT%,"§f[§r§2Chunk§r§4li§r§f] §r§bYou joined '§r§bkadcon")
  488. &activechat_colored="§eLocal"
  489. &activechat_active="Local"
  490. #afk=0
  491. if(%#switch%=0)
  492. echo("/kbank")
  493. #name_check=1
  494. #guild=0
  495. if(#activechat)
  496. &activechat_color="§a"
  497. else
  498. &activechat_color="§c"
  499. endif
  500. if(#money)
  501. &money_color="§a"
  502. else
  503. &money_color="§c"
  504. endif
  505. if(#bank)
  506. &bank_color="§a"
  507. else
  508. &bank_color="§c"
  509. endif
  510. if(#shop)
  511. &shop_color="§a"
  512. else
  513. &shop_color="§c"
  514. endif
  515. if(#tpa)
  516. &tpa_color="§a"
  517. else
  518. &tpa_color="§c"
  519. endif
  520. if(#guildinfo)
  521. &guildinfo_color="§a"
  522. else
  523. &guildinfo_color="§c"
  524. endif
  525. if(#ping)
  526. &ping_color="§a"
  527. else
  528. &ping_color="§c"
  529. endif
  530. if(#mail)
  531. &mail_color="§a"
  532. else
  533. &mail_color="§c"
  534. endif
  535. if(#votes)
  536. &votes_color="§a"
  537. else
  538. &votes_color="§c"
  539. endif
  540. if(#server)
  541. &server_color="§a"
  542. else
  543. &server_color="§c"
  544. endif
  545. if(#noperm)
  546. &noperm_color="§a"
  547. else
  548. &noperm_color="§c"
  549. endif
  550. log("§dYou are using %&version%§r§d!§r")
  551. log("§dYou need to add &e2 labels§r §dMore infos in your §echatfilter file§r§d.§r")
  552. log("§5Current settings§r§d:§r")
  553. log("%&tag_arrow_r%§r %&activechat_color%ActiveChat§r %&money_color%Money§r %&bank_color%Bank§r %&shop_color%Shop§r %&tpa_color%Tpa§r %&guildinfo_color%GuildInfo§r %&ping_color%Ping§r %&mail_color%Mail§r %&votes_color%Votes§r")
  554. log("%&tag_arrow_r%§r %&server_color%Server§r %&noperm_color%NoPerm§r")
  555. endif
  556. #switch=0
  557. #updatelabel=1
  558. endif
  559. ifmatches(%CHAT%,"§2Gilden§r§bchat wurde aktiviert§r")
  560. #guild=1
  561. #updatelabel=1
  562. #updatechat=1
  563. #cut=1
  564. endif
  565. ifmatches(%CHAT%,"§2Gilden§r§bchat wurde deaktiviert§r")
  566. #guild=0
  567. #updatelabel=1
  568. #updatechat=1
  569. #cut=1
  570. endif
  571. if(%#updatelabel%)
  572. #updatelabel=0
  573. if(%#guild%)
  574. if(%#afk%)
  575. setlabel(ActiveChat,"%&tag_afk%§r §7§lGuildchat§r §8(§7%&activechat_active%§r§8)")
  576. else
  577. setlabel(ActiveChat,"%&tag_activechat%§r §a§lGuildchat§r §8(§7%&activechat_active%§r§8)")
  578. endif
  579. else
  580. if(%#afk%)
  581. setlabel(ActiveChat,"%&tag_afk%§r §7%&activechat_active%§r")
  582. else
  583. setlabel(ActiveChat,"%&tag_activechat%§r %&activechat_colored%§r")
  584. endif
  585. endif
  586. endif
  587. if(%#updatechat%)
  588. #updatechat=0
  589. if(%#guild%)
  590. if(%#afk%)
  591. log("%&tag_afk%§r §7§lGuildchat§r §8(§7%&activechat_active%§r§8)")
  592. else
  593. log("%&tag_activechat%§r §a§lGuildchat§r §8(§7%&activechat_active%§r§8)")
  594. endif
  595. else
  596. if(%#afk%)
  597. log("%&tag_afk%§r §7%&activechat_active%§r")
  598. else
  599. log("%&tag_activechat%§r %&activechat_colored%§r")
  600. endif
  601. endif
  602. endif
  603. endif
  604. // Guildinfo (GUILD MEMBERS HINZUFÜGEN)
  605. if(#guildinfo)
  606. ifmatches(%CHAT%,"§b-----------------------------------------------------§r")
  607. #cut=1
  608. endif
  609. ifendswith(%CHAT%," hat das Spiel betreten§r")
  610. match(%CHAT%,"§a(.*) hat das Spiel betreten§r",{&guild_join_leave})
  611. log("§8[§a+§8] §3%&guild_join_leave%")
  612. #cut=1
  613. endif
  614. ifendswith(%CHAT%," §r§chat das Spiel verlassen§r")
  615. match(%CHAT%,"§a(.*) §r§chat das Spiel verlassen§r",{&guild_join_leave})
  616. log("§8[§4-§8] §3%&guild_join_leave%")
  617. #cut=1
  618. endif
  619. endif
  620. // Tpa
  621. if(#tpa)
  622. ifmatches(%CHAT%,"§cFehler:§r§4 §r§4Teleportierungsanfrage ist abgelaufen.§r")
  623. log("%&tag_tpa%§r§7 No teleport request found within the last §e30 seconds§7.")
  624. #cut=1
  625. endif
  626. ifmatches(%CHAT%,"§cFehler:§r§4 §r§4Du hast keine Teleportierungsanfragen.§r")
  627. log("%&tag_tpa%§r§7 No teleport request found within the last §e30 seconds§7.")
  628. #cut=1
  629. endif
  630. ifendswith(%CHAT%,"§6 fragt, ob er sich zu dir teleportieren darf.§r")
  631. match(%CHAT%,"§c(.*)§r§6 fragt, ob er sich zu dir teleportieren darf.§r",{&tpa_teleportin})
  632. log("%&tag_tpa%§r§7 Teleport §3%&tpa_teleportin% §7to you? §8[§a/tpaccept§8] [§c/tpdeny§8]")
  633. &tpa_teleport="here"
  634. #cut=1
  635. endif
  636. ifendswith(%CHAT%,"§6 fragt, ob du dich zu ihm teleportierst.§r")
  637. match(%CHAT%,"§c(.*)§r§6 fragt, ob du dich zu ihm teleportierst.§r",{&tpa_teleportin})
  638. log("%&tag_tpa%§r§7 Teleport to §3%&tpa_teleportin%§7? §8[§a/tpaccept§8] [§c/tpdeny§8]")
  639. &tpa_teleport="there"
  640. #cut=1
  641. endif
  642. ifmatches(%CHAT%,"§7Teleportierungsanfrage akzeptiert.§r")
  643. if(%&tpa_teleport%="here")
  644. log("%&tag_tpa%§r§7 Teleported §3%&tpa_teleportin%§7 to you.")
  645. elseif(%&tpa_teleport%="there")
  646. log("%&tag_tpa%§r§7 You teleported to §3%&tpa_teleportin%§7.")
  647. endif
  648. #cut=1
  649. endif
  650. ifmatches(%CHAT%,"§6Um zu teleportieren, schreibe §r§c/tpaccept§r§6.§r")
  651. #cut=1
  652. endif
  653. ifmatches(%CHAT%,"§6Um diese Anfrage abzulehnen, schreibe §r§c/tpdeny§r§6.§r")
  654. #cut=1
  655. endif
  656. ifmatches(%CHAT%,"§6Diese Anfrage wird nach§r§c 30 Sekunden§r§6 ungültig.§r")
  657. #cut=1
  658. endif
  659. ifbeginswith(%CHAT%,"§6Anfrage gesendet an§r§c ")
  660. match(%CHAT%,"§6Anfrage gesendet an§r§c (.*)§r§6.§r",{&tpa_teleportout})
  661. log("%&tag_tpa%§r§7 Teleport request sent to §3%&tpa_teleportout%§7.")
  662. #cut=1
  663. endif
  664. ifendswith(%CHAT%," §r§6hat deine Teleportierungsanfrage angenommen.§r")
  665. match(%CHAT%,"§c(.*) §r§6hat deine Teleportierungsanfrage angenommen.§r",{&tpa_teleportaccepted})
  666. #cut=1
  667. endif
  668. ifmatches(%CHAT%,"§6Teleportiere...§r")
  669. if(%&tpa_teleportaccepted%)
  670. log("%&tag_tpa%§r§7 §3%&tpa_teleportaccepted%§7 was teleported to you.")
  671. &tpa_teleportaccepted=0
  672. #cut=1
  673. endif
  674. endif
  675. ifbeginswith(%CHAT%,"§6teleportieren zu §r§c")
  676. match(%CHAT%,"§6teleportieren zu §r§c(.*)§r§6.§r",{&tpa_teleportaccepted})
  677. log("%&tag_tpa%§r§7 You have been teleported to §3%&tpa_teleportaccepted%§7.")
  678. &tpa_teleportaccepted=0
  679. #cut=1
  680. endif
  681. ifmatches(%CHAT%,"§6Kehre zur letzten Position zurück.§r")
  682. log("%&tag_tpa%§r§7 Wooosh! You're back!")
  683. #cut=1
  684. endif
  685. ifmatches(%CHAT%,"§cFehler:§r§4 §r§4Spieler nicht gefunden.§r")
  686. log("%&tag_tpa%§r§7 Player not found...")
  687. #cut=1
  688. endif
  689. ifmatches(%CHAT%,"Request to teleport to the specified player.§r")
  690. #cut=1
  691. endif
  692. ifmatches(%CHAT%,"Request that the specified player teleport to you.§r")
  693. #cut=1
  694. endif
  695. endif
  696. ifmatches(%CHAT%,"/tpa <player>§r")
  697. if(#tpa)
  698. log("%&tag_tpa%§r§7 Use §a/tpa <Name>§7 to teleport yourself to a player.")
  699. #cut=1
  700. endif
  701. endif
  702. ifmatches(%CHAT%,"/tpahere <player>§r")
  703. if(#tpa)
  704. log("%&tag_tpa%§r§7 Use §a/tpahere <Name>§7 to teleport a player to you.")
  705. #cut=1
  706. endif
  707. endif
  708. // Votes
  709. if(#votes=3)
  710. #cut=1
  711. elseif(#votes)
  712. ifendswith(%CHAT%,"§r§a wurde für den Vote auf§r§e§l vote.kadcon.de§r§a belohnt!§r")
  713. if(#votes=1)
  714. match(%CHAT%,"§6(.*)§r§a wurde für den Vote auf§r§e§l vote.kadcon.de§r§a belohnt!§r",{&votes_voters})
  715. log("%&tag_votes%§r §3%&votes_voters%§r §dwas§r §drewarded§r §dfor§r §dvoting.§r")
  716. elseif(#votes=2)
  717. log("%&tag_votes%§r §dThe§r §dserver§r §dreceived§r §e1§r §eVote§r§d.§r")
  718. endif
  719. #cut=1
  720. endif
  721. ifendswith(%CHAT%,"§r§a wurden für den Vote auf§r§e§l vote.kadcon.de§r§a belohnt!§r")
  722. ifbeginswith(%CHAT%,"§aDie Spieler §r§6")
  723. if(#votes=1)
  724. match(%CHAT%,"§aDie Spieler §r§6(.*)§r§a wurden für den Vote auf§r§e§l vote.kadcon.de§r§a belohnt!§r",{&votes_voters})
  725. replace(&votes_voters,"Ein Kadconer","§3Ein§r §3Kadconer§r")
  726. split("§r§6, ",%&votes_voters%,&votes_voters_array[])
  727. //arraysize(&votes_voters_array[],#votes_amount)
  728. //&votes_voters_last="%&votes_voters_array[%#votes_amount%]%"
  729. join("§r§d,§r §3",&votes_voters_array[],&votes_voters)
  730. //log("%&tag_votes%§r §3%&votes_voters%§r §dand§r §3%&votes_voters_last%§r §dwere§r §drewarded§r §dfor§r §dvoting.§r")
  731. log("%&tag_votes%§r §3%&votes_voters%§r §dwere§r §drewarded§r §dfor§r §dvoting.§r")
  732. elseif(#votes=2)
  733. match(%CHAT%,"§aDie Spieler §r§6(.*)§r§a wurden für den Vote auf§r§e§l vote.kadcon.de§r§a belohnt!§r",{&votes_voters})
  734. split("§r§6, ",%&votes_voters%,&votes_voters_array[])
  735. arraysize(&votes_voters_array[],#votes_amount)
  736. log("%&tag_votes%§r §dThe§r §dserver§r §dreceived§r §e%#votes_amount%§r §eVotes§r§d.§r")
  737. endif
  738. endif
  739. #cut=1
  740. endif
  741. ifbeginswith(%CHAT%,"§aDir sind heute bereits §6")
  742. match(%CHAT%,"§aDir sind heute bereits §6(.*)§a Kadis und §6(.*)§a Minuten entgangen, da du nicht gevotet hast! Wenn du vor 24 Uhr votest, bekommst du das entgangene Geld nachgeliefert!§r",{&votes_kadis,&votes_itime})
  743. log("%&tag_votes%§r §dVote§r §5TODAY§r §dto§r §dget§r §e%&votes_kadis%§r §eKadis§r §dand§r §b%&votes_itime%§r §biTime§r §dextra!§r")
  744. #cut=1
  745. endif
  746. ifendswith(%CHAT%," Kadis§r§a für die neuen Votes erhalten :)§r")
  747. match(%CHAT%,"§f(.*) Kadis§r§a für die neuen Votes erhalten :\)§r",{&votes_kadis})
  748. #cut=1
  749. endif
  750. ifendswith(%CHAT%," Minuten§r§b für die neuen Votes erhalten :)§r")
  751. match(%CHAT%,"§f(.*) Minuten§r§b für die neuen Votes erhalten :\)§r",{&votes_itime})
  752. log("%&tag_votes%§r§7 You received §2[§a+§e%&votes_kadis% Kadis§2]§7 and §2[§a+§b%&votes_itime% iTime§2]§7!")
  753. #cut=1
  754. endif
  755. // Keine neuen Votes :(
  756. // Einfügen falls es das noch gibt
  757. ifmatches(%CHAT%,"§aDanke fürs Voten, du hast Kadis und iTime erhalten§r")
  758. log("%&tag_votes%§r §dThank§r §dyou§r §dfor§r §dyour§r §aVote§r§d!§r §dEnjoy§r §dyour§r §eKadis§r §dand§r §biTime§r§d!§r")
  759. #cut=1
  760. endif
  761. endif
  762. // Server
  763. if(#server)
  764. ifbeginswith(%CHAT%,"§dWelcome to the server ")
  765. #cut=1
  766. endif
  767. ifbeginswith(%CHAT%,"§f[§r§2Chunk§r§4li§r§f] §r§bYou joined '§r§bkadcon")
  768. match(%CHAT%,"§f\[§r§2Chunk§r§4li§r§f\] §r§bYou joined '§r§bkadcon(.*).server'§r",{&server_server})
  769. log("§e§lWelcome to§r §4§lK§r§a§ladcon.de§r §e§lServer§r §6§l%&server_server%§r§e§l!§r")
  770. #cut=1
  771. endif
  772. ifmatches(%CHAT%,"§f §r§f §r§1 §r§0 §r§2 §r§f §r§f §r§2 §r§0 §r§4 §r§3 §r§9 §r§2 §r§0 §r§0 §r§3 §r§9 §r§2 §r§0 §r§0 §r§3 §r§9 §r§2 §r§0 §r§0 §r§3 §r§6 §r§3 §r§6 §r§3 §r§6 §r§3 §r§6 §r§3 §r§6 §r§3 §r§6 §r")
  773. #cut=1
  774. endif
  775. ifmatches(%CHAT%,"§f §r§f §r§1 §r§0 §r§2 §r§4 §r§f §r§f §r§2 §r§0 §r§4 §r§8 §r§3 §r§9 §r§2 §r§0 §r§0 §r")
  776. #cut=1
  777. endif
  778. ifmatches(%CHAT%,"§3 §r§6 §r§3 §r§6 §r§3 §r§6 §r§e §r§3 §r§6 §r§3 §r§6 §r§3 §r§6 §r§d §r")
  779. #cut=1
  780. endif
  781. ifmatches(%CHAT%,"§6\*\*\* Willkommen auf §r§6Kadcon.de§r§6! Ihr gestaltet die Stadt! \*\*\*§r")
  782. #cut=1
  783. endif
  784. ifmatches(%CHAT%,"§bForum: §r§7forum.kadcon.de§r§7 - §r§bVotes: §r§7vote.kadcon.de§r")
  785. #cut=1
  786. endif
  787. ifbeginswith(%CHAT%,"§6Dir gefaellt der Server? Bitte §r")
  788. #cut=1
  789. endif
  790. ifmatches(%CHAT%,"§c2x §r§cvote.kadcon.de§r§c und 825 Kadis erhalten!§r")
  791. #cut=1
  792. endif
  793. endif
  794. // NoPerm
  795. ifmatches(%CHAT%,"§4Du hast keinen Zugriff auf diesen Befehl.§r")
  796. if(#mail_refresh)
  797. #mail_refresh=0
  798. else
  799. if(#noperm)
  800. log("%&tag_server%§r §7You are not allowed to use this command.§r")
  801. endif
  802. endif
  803. #cut=1
  804. endif
  805. if(#noperm)
  806. ifmatches(%CHAT%,"§4You don't have permission to damage in this area.§r")
  807. playsound(entity.villager.no)
  808. #cut=1
  809. endif
  810. ifmatches(%CHAT%,"§4You don't have permission to use that in this area.§r")
  811. playsound(entity.villager.no)
  812. #cut=1
  813. endif
  814. ifmatches(%CHAT%,"§4You don't have permission for this area.§r")
  815. playsound(entity.villager.no)
  816. #cut=1
  817. endif
  818. ifmatches(%CHAT%,"§4You don't have permission to open that in this area.§r")
  819. playsound(entity.villager.no)
  820. #cut=1
  821. endif
  822. ifmatches(%CHAT%,"§4You are in a no-PvP area.§r")
  823. playsound(entity.villager.no)
  824. #cut=1
  825. endif
  826. ifmatches(%CHAT%,"§4Kein Animal-Griefing.§r")
  827. playsound(entity.villager.no)
  828. #cut=1
  829. endif
  830. ifmatches(%CHAT%,"Unknown command. Type \"/help\" for help.§r")
  831. log("%&tag_server%§r §7Unknown command. Type §a/help§7 for help.§r")
  832. #cut=1
  833. endif
  834. endif
  835. // Bank
  836. ifmatches(%CHAT%,"§6Bank: §r§aGerne. Hier ist Ihre Kontoinformation:§r")
  837. #bank_myacc=0
  838. #bank_added=0
  839. #cut=1
  840. endif
  841. ifbeginswith(%CHAT%," §r§aAktuelles Geld dabei: §r§e")
  842. match(%CHAT%," §r§aAktuelles Geld dabei: §r§e(.*) Kadis§r",{&money_pocket})
  843. &bank_message_pocket="§aYou§r §agot§r §e%&money_pocket%§r §eKadis§r §ain§r §ayour§r §apocket§r§a.§r"
  844. #cut=1
  845. endif
  846. ifbeginswith(%CHAT%," §r§aSie haben ")
  847. match(%CHAT%," §r§aSie haben (.*) Konten.\(max. (.*)\)§r",{&bank_accounts,&bank_accounts_max})
  848. &bank_message_accounts="%&tag_bank%§r §e%&bank_accounts%§r §aout§r §aof§r §e%&bank_accounts_max%§r §abank§r §aaccounts§r §aare§r §abeing§r §aused.§r"
  849. #cut=1
  850. endif
  851. ifbeginswith(%CHAT%," §r§6(")
  852. match(%CHAT%," §r§6\((.*)\)§r§a: §r§e(.*) Kadis§r§a von §r§e(.*)§r",{&name,&bank_money,&bank_owner})
  853. &bank_message_myacc[0]="%&tag_arrow_r%§r §aPrivate§r §abank§r §aaccount:§r §e%&bank_money%§r §eKadis§r"
  854. #cut=1
  855. else
  856. ifbeginswith(%CHAT%," §r§6")
  857. match(%CHAT%," §r§6(.*)§r§a: §r§e(.*) Kadis§r§a von §r§e(.*)§r",{&bank_account,&bank_money,&bank_owner})
  858. if(&bank_owner=&name)
  859. inc(#bank_myacc)
  860. &bank_message_myacc[%#bank_myacc%]="%&tag_arrow_r%§r §6%&bank_account%§r§a:§r §e%&bank_money%§r §eKadis§r"
  861. &bank_add_tracker="myaccount"
  862. else
  863. inc(#bank_added)
  864. &bank_message_added[%#bank_added%]="%&tag_arrow_r%§r §6%&bank_account%§r §afrom§r §3%&bank_owner%§r§a:§r §e%&bank_money%§r §eKadis§r"
  865. &bank_add_tracker="added"
  866. endif
  867. #cut=1
  868. endif
  869. endif
  870. ifbeginswith(%CHAT%," §r§amit Zugriff für: §r§e")
  871. match(%CHAT%," §r§amit Zugriff für: §r§e(.*)§r",{&bank_adds})
  872. split(", ",%&bank_adds%,&bank_adds_array[])
  873. join("§r§a,§r §3",&bank_adds_array[],&bank_adds)
  874. if(&bank_add_tracker="myaccount")
  875. inc(#bank_myacc)
  876. &bank_message_myacc[%#bank_myacc%]="%&tag_minus%§r%&tag_arrow_r%§r §a(§r§3%&bank_adds%§r§a)§r"
  877. &bank_add_tracker=""
  878. elseif(&bank_add_tracker="added")
  879. inc(#bank_added)
  880. &bank_message_added[%#bank_added%]="%&tag_minus%§r%&tag_arrow_r%§r §a(§r§3%&bank_adds%§r§a)§r"
  881. &bank_add_tracker=""
  882. endif
  883. #cut=1
  884. endif
  885. ifbeginswith(%CHAT%," §r§aGesamt verfügbares Vermögen: §r§e")
  886. match(%CHAT%," §r§aGesamt verfügbares Vermögen: §r§e(.*) Kadis§r",{&bank_money_sum})
  887. &bank_message_total="§aYou§r §ahave§r §aaccess§r §ato§r §aa§r §atotal§r §aof§r §e%&bank_money_sum%§r §eKadis§r§a.§r"
  888. #bank_message=1
  889. #cut=1
  890. endif
  891. if(#bank_message)
  892. #bank_message=0
  893. if(#name_check=0)
  894. if(#bank)
  895. log("%&bank_message_accounts%§r")
  896. for(#i,0,%#bank_myacc%)
  897. log("%&bank_message_myacc[%#i%]%§r")
  898. next
  899. if(#bank_added)
  900. for(#i,1,%#bank_added%)
  901. log("%&bank_message_added[%#i%]%§r")
  902. next
  903. endif
  904. log("%&tag_arrow_r%§r %&bank_message_pocket%§r")
  905. log("%&tag_arrow_r%§r %&bank_message_total%§r")
  906. #bank_myacc=0
  907. #bank_added=0
  908. #cut=1
  909. endif
  910. else
  911. #name_check=0
  912. #cut=1
  913. endif
  914. endif
  915. // Fishing
  916. if(#fishing)
  917. ifmatches(%CHAT%,"mcMMO-Drop! \(Angel-Regeln beachten. Siehe §rregeln.kadcon.de§r 1.9\)§r")
  918. #cut=1
  919. endif
  920. ifmatches(%CHAT%,"§7Treasure found!§r")
  921. #cut=1
  922. endif
  923. ifmatches(%CHAT%,"§7You feel a touch of magic on this treasure...§r")
  924. #cut=1
  925. endif
  926. endif
  927. endif
  928. endif
  929. endif
  930. endif
  931. endif
  932. endif
  933. endif
  934. endif
  935. endif
  936. endif
  937. endif
  938. if(#debug=0)
  939. if(#cut)
  940. #cut=0
  941. filter
  942. endif
  943. endif
  944. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement