Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Soporte:
- Discord:
- Varibles Necesarias
- Nombre: xp
- Valor: 0
- Nombre: subir
- Valor: 50
- Nombre: nivel
- Valor: 0
- Nombre: role1
- Valor:
- Nombre: role2
- Valor:
- Nombre: role3
- Valor:
- Nombre: role4
- Valor:
- Nombre: role5
- Valor:
- Nombre: role6
- Valor:
- Nombre: role7
- Valor:
- Nombre: role8
- Valor:
- Nombre: role9
- Valor:
- Nombre: role10
- Valor:
- Postada:Por cada seccion debe crear un nuevo comando.
- 1.- Nivelacion de XP y Niveles
- Posdata:
- - Debe crear este codigo desde la a - z y en mayusculas A - z, una vocal por cada comando.
- - Necesita Mode Unstable el codigo.
- Prefix: a-z A-Z
- Codigo:
- $nomention
- $if[$getUserVar[xp;$authorID]>$getUserVar[subir;$authorID]]
- $setUserVar[nivel;$sum[$getUserVar[nivel;$authorID];1];$authorID]
- $setUserVar[subir;$sum[$getUserVar[subir;$authorID];100];$authorID]
- $setUserVar[xp;0;$authorID]
- $channelSendMessage[$replaceText[$replaceText[%$checkCondition[$getServerVar[channel]==]%;%true%;$channelID;1];%false%;$getServerVar[channel];1];$replaceText[$replaceText[$checkCondition[$getServerVar[lvlmessage]==];true;<@$authorID> felicidades subiste de nivel **$sum[$getUserVar[nivel];1].** GG!;1];false;$replaceText[$replaceText[$replaceText[$getServerVar[lvlmessage];{mention};<@$authorID>;-1];{level};$sum[$getUserVar[nivel];1];-1];{username};$username;-1];1]]
- $else
- $if[$getUserVar[xp]<$getUserVar[subir]]
- $setUserVar[xp;$sum[$getUserVar[xp;$authorID];$random[0;30]];$authorID]
- $endif
- $endif
- $if[$roleExists[$getServerVar[role2]]==true]
- $if[$getUserVar[nivel]==2]
- $roleGrant[$authorID;+$getServerVar[role2]]
- $endif
- $endif
- $if[$roleExists[$getServerVar[role3]]==true]
- $if[$getUserVar[nivel]==3]
- $roleGrant[$authorID;+$getServerVar[role3]]
- $endif
- $endif
- $if[$roleExists[$getServerVar[role4]]==true]
- $if[$getUserVar[nivel]==4]
- $roleGrant[$authorID;+$getServerVar[role4]]
- $endif
- $endif
- $if[$roleExists[$getServerVar[role5]]==true]
- $if[$getUserVar[nivel]==5]
- $roleGrant[$authorID;+$getServerVar[role5]]
- $endif
- $endif
- $if[$roleExists[$getServerVar[role6]]==true]
- $if[$getUserVar[nivel]==6]
- $roleGrant[$authorID;+$getServerVar[role6]]
- $endif
- $endif
- $if[$roleExists[$getServerVar[role7]]==true]
- $if[$getUserVar[nivel]==7]
- $roleGrant[$authorID;+$getServerVar[role7]]
- $endif
- $endif
- $if[$roleExists[$getServerVar[role8]]==true]
- $if[$getUserVar[nivel]==8]
- $roleGrant[$authorID;+$getServerVar[role8]]
- $endif
- $endif
- $if[$roleExists[$getServerVar[role9]]==true]
- $if[$getUserVar[nivel]==9]
- $roleGrant[$authorID;+$getServerVar[role9]]
- $endif
- $endif
- $if[$roleExists[$getServerVar[role10]]==true]
- $if[$getUserVar[nivel]==10]
- $roleGrant[$authorID;+$getServerVar[role10]]
- $endif
- $endif
- 2.- Establecer el canal donde ira el mensaje cuando el bot envie cuando alguien subio de nivel.
- Posdata:
- - Si no se establecio un canal el codigo devolvera el mensaje en cualquier canal cuando alguien suba de nivel.
- Prefix: !levelchannel
- Codigo:
- $nomention
- $if[$checkUserPerms[$authorID;admin]==false]
- $sendMessage[$getVar[x] Necesitas el permiso "admi" para hacer esto]
- $stop
- $endif
- $if[$isSlash==false]
- $if[$mentionedChannels[1]!=]
- $if[$channelExists[$mentionedChannels[1]]==true]
- $getVar[c] Se establecio la subida de niveles en <#$mentionedChannels[1]>
- $setServerVar[channel;$mentionedChannels[1];$guildID]
- $else
- $getVar[x] El canal `$mentionedChannels[1]` no existe en el servidor.
- $endif
- $else
- $getVar[x] Falta de argumentos, menciona un canal valido.
- ```Uso:
- levelchannel <mencioncanal>```
- $endif
- $else
- $if[$channelExists[$message[channel]]==true]
- $description[$getVar[c] Se establecio la subida de niveles en <#$message[channel]>]
- $setServerVar[channel;$message[channel];$guildID]
- $color[#4e7dd7]
- $else
- $description[$getVar[x] El canal no existe en el servidor lo siento.]
- $color[#c13849]
- $endif
- $endif
- 3.- 2.- Establecer un mensaje personalizado en el mensaje cuando un usuario suba de nivel
- Posdata:
- Tags:
- {username} = $username
- {level} = $sum[$getUserVar[nivel];1]
- {author} = <@$authorID>
- Prefix: 1levelmessage
- Codigo:
- $nomention
- $try
- $onlyIf[$checkUserPerms[$authorID;admin]==true;]
- $catch
- $sendMessage[$getVar[x] Necesitas el permiso de "admi" para hacer esto]
- $stop
- $endtry
- $if[$isSlash==false]
- $if[$message!=]
- $sendMessage[$getVar[c] Se guardo exitosamente el mensaje de subida de niveles
- $replaceText[$replaceText[$checkContains[$message;{username};{mention};{level}];true;;-1];false;<:bad:1137873995576918088> Te sugerimos usar los tags.]]
- $setServerVar[lvlmessage;$message]
- $else
- $sendMessage[Pon un texto o una oracion usando los tags <:god:1137871924152770720> ]
- $endif
- $else
- $sendMessage[$getVar[c] Se guardo exitosamente el mensaje de subida de niveles
- $replaceText[$replaceText[$checkContains[$message[text];{username};{mention};{level}];true;;-1];false;<:bad:1137873995576918088> Te sugerimos usar los tags.]]
- $setServerVar[lvlmessage;$message[text]]
- $endif
- 4.- Agrega XP alos usuarios.
- Prefix: !addxp
- Codigo:
- $nomention
- $if[$isSlash==true]
- $getVar[c] Completado le diste `$numberSeparator[$message[amount]]XP` a $username[$message[user]]
- $setUserVar[xp;$sum[$message[amount];$getUserVar[xp;$message[user]]];$message[user]]
- $else
- $onlyIf[$checkUserPerms[$authorID;admin]==true;$getVar[x] Necesitas el permisos de "admi" para esto]
- $onlyIf[$userExists[$mentioned[1]]==true;$getVar[x] El usuario no existe lo siento.]
- $onlyIf[$noMentionMessage<$getUserVar[subir;$mentioned[1]];$getVar[x] No puedes agregar mas `XP` del limite $getUserVar[subir;$mentioned[1]].]
- $onlyIf[$isNumber[$noMentionMessage]==true;$getVar[x] Solo numeros por favor.]
- $onlyIf[$mentioned[1]!=;<:god:1137871924152770720> Menciona un usuario]
- $onlyIf[$isBot[$mentioned[1]]==false;
- $getVar[x] No puedes dar dinero a bots.]
- $onlyIf[$mentioned[1]!=$botID;<:sonr:1137837724066385992> Yo no puedo recibir dinero.]
- $sendMessage[$getVar[c] Completado le diste `$numberSeparator[$noMentionMessage]XP` a $username[$mentioned[1]]]
- $setUserVar[xp;$sum[$noMentionMessage;$getUserVar[xp;$mentioned[1]]];$mentioned[1]]
- $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement