Tutorials_for_BDFD

Levelsystem Englisch

Aug 31st, 2022
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.11 KB | None | 0 0
  1. πŸ“šγ€‘Variables
  2.  
  3. talk = 0
  4.  
  5. level = 0
  6.  
  7. req = 250
  8.  
  9. levelmsg = **{username}** You are now level {level}
  10.  
  11. lvlchannel =
  12.  
  13. custombg = https://cdn.discordapp.com/attachments/997759760793346068/997775287301443594/Wolcken_Background.png
  14.  
  15. role1 =
  16.  
  17. role5 =
  18.  
  19. role10 =
  20.  
  21. role15 =
  22.  
  23. role20 =
  24.  
  25. role25 =
  26.  
  27. role30 =
  28.  
  29. role40 =
  30.  
  31. role50 =
  32.  
  33. role100 =
  34.  
  35.  
  36.  
  37.  
  38.  
  39. __code 1__
  40.  
  41. Triggers : !rank
  42.  
  43. Script : Unstable mode
  44.  
  45. $reply
  46. $onlyIf[$guildID!=;βŒγ€‘ Hey $username, unfortunately I can't help you in the DM's]
  47. $nomention
  48. $title[πŸ† | __Level__ ]
  49.  
  50. $color[00ffa3]
  51. $description[$replaceText[$replaceText[%$checkCondition[$username[$mentioned[1;yes]]==$username[$authorID]]%;%true%;$username;1];%false%;$ username[$mentioned[1;yes]];1] requires `$sum[$replaceText[$sub[$getUserVar[talk];$getUserVar[req]];-;;1];35]` more EXP until next level.
  52.  
  53. 🎁| Current Level : **(Level $getUserVar[level])**
  54. $onlyIf[$isBot[$mentioned[1;yes]]==false;**$username** Well.. you can't see the level of a bot]
  55. $footer[Executed by $username]
  56.  
  57. $image[https://vacefron.nl/api/rankcard?username=$replaceText[$username[$mentioned[1;yes]]; ;+;-1]&avatar=$replaceText[$userAvatar[$mentioned[1;yes]]]?size=4096;webp;jpg;-1]&level=$getUserVar[level;$mentioned[1;yes]]&rank =&currentxp=$replaceText[$sub[$getUserVar[talk;$mentioned[1;yes]];35];-;;1]&nextlevelxp=$replaceText[$getUserVar[req;$mentioned[1;yes]]; -;;1]&previouslevelxp=0&custombg=$getUserVar[custombg;$mentioned[1;yes]]&xpcolor=F8F8F9&isboosting=false&circleavatar=true]
  58.  
  59.  
  60.  
  61.  
  62.  
  63. __code 2__
  64.  
  65. Trigger : !set-level
  66.  
  67. Script : Unstable mode
  68.  
  69. $nomention
  70.  
  71. $onlyIf[$guildID!=;βŒγ€‘ Hey $username, unfortunately I can't help you in the DM's]
  72. $title[βš™οΈγ€‘Level Set]
  73. $description[Level set successfully <@$mentioned[<]>, Now this user is level $noMentionMessage]
  74. $footer[Executed by $username]
  75. $color[00ffa3]
  76. $setUserVar[level;$noMentionMessage;$mentioned[<]]
  77. $onlyIf[$isNumber[$noMentionMessage]==true;Please enter a level!]
  78. $onlyIf[$mentioned[1]!=;Please mention a user!]
  79.  
  80.  
  81.  
  82. __Code 3__
  83.  
  84. Triggers : !setmsg
  85.  
  86. Script : Unstable mode
  87.  
  88. $nomention
  89. $onlyIf[$guildID!=;βŒγ€‘ Hey $username, unfortunately I can't help you in the DM's]
  90. $color[$random[111111;999999]]
  91. $c[ UNSTABLE MODE! ]
  92. $c[ Code from BDFD Network ]
  93.  
  94. $author[message posted]
  95. $description[Level up message successfully set to:
  96. ```$message```
  97. If anyone levels up, I'll send this message!
  98. $replaceText[$replaceText[%$checkContains[$message;{username};{user.id};{level}]%;%true%;;-1];%false%;**Warning**: You have no FUNCTION set, it is recommended to set {functions} in the leveling message, such as:**l!setmsg {username} You leveled up{level}, congratulations!**;1]]
  99. $setServerVar[levelmsg;$message]
  100. $footer[Executed by $username#$discriminator[$authorID]]
  101. $addTimestamp
  102. $onlyIf[$message!=;**$username** Incorrect! Please enter a valid message, you can also use special functions such as {username}, {level} & {user.id}, for example: `**{username}** You have leveled up {level}`! ]
  103. $onlyAdmin[**$username** only admins can set this!]
  104.  
  105.  
  106.  
  107.  
  108. __Code 4__
  109.  
  110. Trigger : t!setchannel
  111.  
  112. Script : Unstable mode
  113.  
  114.  
  115. $nomention
  116. $onlyIf[$guildID!=;βŒγ€‘ Hey $username, unfortunately I can't help you in the DM's]
  117. $color[00ff90]
  118. $c[ ENABLE UNSTABLE MODE! ]
  119. $c[ Code from BDFD Network]
  120.  
  121. $author[channel set!]
  122. $if[$message[1]==off]
  123. $description[**$username** Now I'll send the level up messages to the channel where the user has leveled up!]
  124. $else
  125. $description[**$username** Now I'm sending level up messages in <#$mentionedChannels[<]> channel!]
  126. $endif
  127. $footer[Executed by $username#$discriminator[$authorID]]
  128. $addTimestamp
  129. $if[$message[1]==off]
  130. $setServerVar[lvlchannel; ]
  131. $else
  132. $setServerVar[lvlchannel;$mentionedChannels[>]]
  133. $endif
  134. $onlyAdmin[<:Cross:962060831598735360>】**$username** Sorry, only admins can do that!]
  135. $onlyIf[$message!=;βŒγ€‘**$username** Please provide a valid channel to set up as a level up channel]
  136.  
  137.  
  138. __Code 5___
  139.  
  140.  
  141. Trigger : t!setreward
  142.  
  143. Script : Unstable mode
  144.  
  145. $nomention
  146. $onlyIf[$guildID!=;βŒγ€‘ Hey $username, unfortunately I can't help you in the DM's]
  147. $color[00ff90]
  148. $footer[Executed by $username#$discriminator[$authorID]]
  149. $addTimestamp
  150.  
  151. $if[$message[2]!=off]
  152. $setServerVar[role$message[1];$findRole[$message[2]]]
  153. $description[The role was successfully set <@&$findRole[$message[2]]> as a reward for level **$message[1]**!
  154. When user reaches level **$message[1]** I give them this role]
  155. $onlyIf[$roleExists[$findRole[$message[2]]]==true;**$username** Please enter a valid role ID, mention or name, example: w!setreward 5 @role]
  156. $onlyIf[$message[2]!=;**$username** Please enter a valid role ID, mention or name, example: w!setreward 5 @role]
  157. $else
  158. $setServerVar[role$message[1];]
  159. $description[Successfully removed the role reward for the levell **$message[1]**!
  160. When users level up **$message[1]**I won't give them a role]
  161. $endif
  162. $onlyIf[$message[2]!=;**$username** Please enter a valid role ID, mention or name, example: w!setreward 5 @role]
  163. $onlyIf[$checkContains[$message[1];1;5;10;15;20;40;30;50;100]==true;**$username** Please enter a valid role ID, mention or name, example: **1.5, 10, 15,20, 40, 30,50,100** example: w!setreward 5 @role]
  164. $onlyPerms[manageroles;βŒγ€‘**$username** You need permissions to manage roles!]
  165. $onlyBotPerms[manageroles;βŒγ€‘**$username** Sorry but I need permissions to manage roles. Make sure you give me this permission!]
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173. __code 6___
  174.  
  175.  
  176. Triggers : a-z & A-Z
  177.  
  178. Script : Unstable mode
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187. $note
  188. $onlyIf[$guildID!=;βŒγ€‘ Hey $username, unfortunately I can't help you in the DM's]
  189.  
  190. $cooldown[2s;]
  191. $if[$getUserVar[talk]>$getUserVar[req]]
  192. $setUserVar[level;$sum[$getUserVar[level];1]]
  193. $setUserVar[req;$sum[$getUserVar[req];$getServerVar[xpmulltiplicator]]]
  194. $setUserVar[talk;0]
  195.  
  196. $channelSendMessage[$replaceText[$replaceText[%$checkCondition[$getServerVar[lvlchannel]==]%;%true%;$channelID;1];%false%;$getServerVar[lvlchannel];1];$replaceText[$ replaceText[$replaceText[$replaceText[$getServerVar[levelmsg];{username};$username;-1];{level};$sum[$getUserVar[level];1];-1];{mention};< @$authorID>;-1];{user.id};$authorID;-1]]
  197. $else
  198. $setUserVar[talk;$sum[$getUserVar[talk];$random[1;35]]]
  199. $endif
  200. $onlyIf[$checkContains[$getServerVar[lvlblacklisted];$channelID]==false;]
  201. $suppressErrors
  202.  
  203. $c[LEVEL UP ROLES BELOW - MAKE SURE YOU GIVE THE BOT "MANAGEROLES" PERMISSIONS IF YOU WILL SET LEVEL REWARDS!]
  204. $if[$roleExists[$getServerVar[role5]]$checkUserPerms[$botID;manageroles]==truetrue]
  205. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role5]]==5false]
  206. πŸŽ‰ 】**$username** Congratulations, you are now level 5 and have been rewarded with the **$roleName[$getServerVar[role5]]** role!
  207. $giveRole[$authorID;$getServerVar[role5]]
  208. $else
  209. $endif
  210. $else
  211. $endif
  212.  
  213. $if[$roleExists[$getServerVar[role10]]$checkUserPerms[$botID;manageroles]==truetrue]
  214. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role10]]==10false]
  215. πŸŽ‰γ€‘**$username** Congratulations, you are now level 10 and have been rewarded with the **$roleName[$getServerVar[role10]]** role!
  216. $giveRole[$authorID;$getServerVar[role10]]
  217. $else
  218. $endif
  219. $else
  220. $endif
  221.  
  222. $if[$roleExists[$getServerVar[role15]]$checkUserPerms[$botID;manageroles]==truetrue]
  223. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role15]]==15false]
  224. πŸŽ‰γ€‘**$username** Congratulations, you are now level 15 and have been rewarded with the **$roleName[$getServerVar[role15]]** role!
  225. $giveRole[$authorID;$getServerVar[role15]]
  226. $onlyIf[$hasRole[$authorID;$getServerVar[role15]]]==false;]
  227. $else
  228. $endif
  229. $else
  230. $endif
  231.  
  232. $if[$roleExists[$getServerVar[role20]]$checkUserPerms[$botID;manageroles]==truetrue]
  233. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role20]]==20false]
  234. πŸŽ‰γ€‘**$username** Congratulations, you are now level 20 and have been rewarded with the **$roleName[$getServerVar[role20]]** role!
  235. $giveRole[$authorID;$getServerVar[role20]]
  236. $onlyIf[$hasRole[$authorID;$getServerVar[role20]]]==false;]
  237. $else
  238. $endif
  239. $else
  240. $endif
  241.  
  242. $if[$roleExists[$getServerVar[role25]]$checkUserPerms[$botID;manageroles]==truetrue]
  243. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role25]]==25false]
  244. πŸŽ‰γ€‘**$username** Congratulations, you are now level 25 and have been rewarded with the **$roleName[$getServerVar[role25]]** role!
  245. $giveRole[$authorID;$getServerVar[role25]]
  246. $onlyIf[$hasRole[$authorID;$getServerVar[role25]]]==false;]
  247. $else
  248. $endif
  249. $else
  250. $endif
  251.  
  252. $if[$roleExists[$getServerVar[role30]]$checkUserPerms[$botID;manageroles]==truetrue]
  253. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role30]]==30false]
  254. πŸŽ‰γ€‘**$username** Congratulations, you are now level 30 and have been rewarded with the **$roleName[$getServerVar[role30]]** role!
  255. $giveRole[$authorID;$getServerVar[role30]]
  256. $onlyIf[$hasRole[$authorID;$getServerVar[role30]]]==false;]
  257. $else
  258. $endif
  259. $else
  260. $endif
  261.  
  262. $suppressErrors
  263.  
  264.  
  265. $if[$roleExists[$getServerVar[role30]]$checkUserPerms[$botID;manageroles]==truetrue]
  266. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role40]]==40false]
  267. πŸŽ‰γ€‘**$username** Congratulations, you are now level 40 and have been rewarded with the **$roleName[$getServerVar[role40]]** role!
  268. $giveRole[$authorID;$getServerVar[role40]]
  269. $onlyIf[$hasRole[$authorID;$getServerVar[role40]]]==false;]
  270. $else
  271. $endif
  272. $else
  273. $endif
  274.  
  275. $if[$roleExists[$getServerVar[role30]]$checkUserPerms[$botID;manageroles]==truetrue]
  276. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role50]]==50false]
  277. πŸŽ‰γ€‘**$username** Congratulations, you are now level 50 and have been rewarded with the **$roleName[$getServerVar[role50]]** role!
  278. $giveRole[$authorID;$getServerVar[role50]]
  279. $onlyIf[$hasRole[$authorID;$getServerVar[role50]]]==false;]
  280. $else
  281. $endif
  282. $else
  283. $endif
  284.  
  285. $if[$roleExists[$getServerVar[role100]]$checkUserPerms[$botID;manageroles]==truetrue]
  286. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role100]]==100false]
  287. πŸŽ‰γ€‘**$username** Congratulations, you are now level 100 and have been rewarded with the **$roleName[$getServerVar[role100]]** role!
  288. $giveRole[$authorID;$getServerVar[role100]]
  289. $onlyIf[$hasRole[$authorID;$getServerVar[role100]]==false;]
  290. $else
  291. $endif
  292. $else
  293. $endif
Advertisement
Add Comment
Please, Sign In to add comment