[Aportes indexados] Sublideres para Clanes

Estado
Cerrado para nuevas respuestas.

Dj Mixer

Destructor Lvl 1
Nose si ya existe el cod pero se los dejo,,
El SubLider Puede Echar miembros y Aceptar Gente al Clan..
Comando para designar Subliders : /SUBLEADER NICK

SubLideres de Clanes ;D

14/12
En Declares.bas
Buscan
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"><span style="color: #b1b100;">Type</span> tGuild</li></ol></div>[/vb]
y abajo ponen
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1">EsSubLeader <span style="color: #b1b100;">As</span> Byte</li></ol></div>[/vb]


Abajo del HandleData2
Antes del Prosesed = True y del End Sub
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1">            Select <span style="color: #b1b100;">Case</span> <span style="color: #b1b100;">UCase</span>$<span style="color: #66cc66;">(</span><span style="color: #b1b100;">Left</span>$<span style="color: #66cc66;">(</span>rdata, <span style="color: #cc66cc;">11</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">        <span style="color: #b1b100;">Case</span> <span style="color: #ffffff;">"/SUBLEADER "</span></li><li style="" class="li2">            rdata = <span style="color: #b1b100;">Right</span>$<span style="color: #66cc66;">(</span>rdata, <span style="color: #b1b100;">Len</span><span style="color: #66cc66;">(</span>rdata<span style="color: #66cc66;">)</span> - <span style="color: #cc66cc;">11</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            tIndex = NameIndex<span style="color: #66cc66;">(</span>rdata<span style="color: #66cc66;">)</span></li><li style="" class="li1">            <span style="color: #b1b100;">If</span> UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsGuildLeader</span> = <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">Then</span> <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span> <span style="color: #808080;">'Y si no sos lider,,,</span></li><li style="" class="li2">            <span style="color: #b1b100;">If</span> <span style="color: #b1b100;">Not</span> UserList<span style="color: #66cc66;">(</span>tIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">GuildName</span> = UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">GuildName</span> <span style="color: #b1b100;">Then</span> <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span> <span style="color: #808080;">'Del Mismo Clan</span></li><li style="" class="li1">            <span style="color: #b1b100;">If</span> UserList<span style="color: #66cc66;">(</span>tIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsGuildLeader</span> = <span style="color: #cc66cc;">1</span> <span style="color: #b1b100;">Then</span> <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span> <span style="color: #808080;">'Ya sos lider q mas queres ;D</span></li><li style="" class="li1">            UserList<span style="color: #66cc66;">(</span>tIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsSubLeader</span> = <span style="color: #cc66cc;">1</span> <span style="color: #808080;">'Si ya es Para que otra ves el mensaje en consola q se viene ;D</span></li><li style="" class="li2">            <span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToAll, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"||"</span> & UserList<span style="color: #66cc66;">(</span>tIndex<span style="color: #66cc66;">)</span>.<span style="color: #b1b100;">Name</span> & <span style="color: #ffffff;">"Ha Sido Elejido Como SubLider del Clan "</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">GuildName</span> & FONTTYPE_INFO<span style="color: #66cc66;">)</span> <span style="color: #808080;">'A todos un avisito;D</span></li><li style="" class="li1">            <span style="color: #b1b100;">Call</span> WriteVar<span style="color: #66cc66;">(</span>App.<span style="color: #66cc66;">Path</span> & <span style="color: #ffffff;">"\Guilds\"</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #b1b100;">Name</span> & <span style="color: #ffffff;">".chr"</span>, <span style="color: #ffffff;">"GUILD"</span>, <span style="color: #ffffff;">"EsSubLeader"</span>, <span style="color: #b1b100;">val</span><span style="color: #66cc66;">(</span>UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsSubLeader</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span> <span style="color: #808080;">'Guarda Datos</span></li><li style="" class="li1">            <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></li><li style="" class="li2">        <span style="color: #b1b100;">End</span> Select</li></ol></div>[/vb]

Dps en
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"><span style="color: #b1b100;">Sub</span> EacharMember</li></ol></div>[/vb]

Reemplazas todo el sub x esto


[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Sub</span> EacharMember<span style="color: #66cc66;">(</span>ByVal UserIndex <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span>, ByVal rdata <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span><span style="color: #66cc66;">)</span></li><li style="" class="li1"> </li><li style="" class="li2"><span style="color: #b1b100;">If</span> UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsGuildLeader</span> = <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">Or</span> UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsSubLeader</span> = <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">Then</span></li><li style="" class="li1">    <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></li><li style="" class="li1"><span style="color: #b1b100;">ElseIf</span> <span style="color: #66cc66;">(</span><span style="color: #b1b100;">UCase</span><span style="color: #66cc66;">(</span>UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildRef</span>.<span style="color: #66cc66;">leader</span><span style="color: #66cc66;">)</span> <> <span style="color: #b1b100;">UCase</span><span style="color: #66cc66;">(</span>UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #b1b100;">Name</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span> <span style="color: #b1b100;">And</span> <span style="color: #66cc66;">(</span><span style="color: #b1b100;">UCase</span><span style="color: #66cc66;">(</span>rdata<span style="color: #66cc66;">)</span> <> <span style="color: #b1b100;">UCase</span><span style="color: #66cc66;">(</span>UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #b1b100;">Name</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span> <span style="color: #b1b100;">Then</span></li><li style="" class="li2">    <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></li><li style="" class="li1"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></li><li style="" class="li1"> </li><li style="" class="li2"><span style="color: #b1b100;">Dim</span> oGuild <span style="color: #b1b100;">As</span> cGuild</li><li style="" class="li1"> </li><li style="" class="li1"><span style="color: #b1b100;">Set</span> oGuild = FetchGuild<span style="color: #66cc66;">(</span>UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">GuildName</span><span style="color: #66cc66;">)</span></li><li style="" class="li2"> </li><li style="" class="li1"><span style="color: #b1b100;">If</span> oGuild Is <span style="color: #b1b100;">Nothing</span> <span style="color: #b1b100;">Then</span> <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></li><li style="" class="li1"> </li><li style="" class="li2"><span style="color: #b1b100;">Dim</span> MemberIndex <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span></li><li style="" class="li1"> </li><li style="" class="li1">MemberIndex = DameUserIndexConNombre<span style="color: #66cc66;">(</span>rdata<span style="color: #66cc66;">)</span></li><li style="" class="li2"> </li><li style="" class="li1"><span style="color: #b1b100;">If</span> MemberIndex <> <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">Then</span> <span style="color: #808080;">'esta online</span></li><li style="" class="li1">    <span style="color: #b1b100;">If</span> UserList<span style="color: #66cc66;">(</span>MemberIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsGuildLeader</span> = <span style="color: #cc66cc;">1</span> <span style="color: #b1b100;">Then</span></li><li style="" class="li2">        <span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToGuildMembers, MemberIndex, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"||¡No pueden expulsar al líder del clan!"</span> & FONTTYPE_GUILD<span style="color: #66cc66;">)</span></li><li style="" class="li1">        <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></li><li style="" class="li1">    <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></li><li style="" class="li2">    <span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToIndex, MemberIndex, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"||Has sido expulsado del clan."</span> & FONTTYPE_GUILD<span style="color: #66cc66;">)</span></li><li style="" class="li1">    <span style="color: #b1b100;">Call</span> AddtoVar<span style="color: #66cc66;">(</span>UserList<span style="color: #66cc66;">(</span>MemberIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">Echadas</span>, <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">    UserList<span style="color: #66cc66;">(</span>MemberIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">GuildPoints</span> = <span style="color: #cc66cc;">0</span></li><li style="" class="li2">    UserList<span style="color: #66cc66;">(</span>MemberIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">GuildName</span> = <span style="color: #ffffff;">""</span></li><li style="" class="li1">    <span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToGuildMembers, UserIndex, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"||"</span> & rdata & <span style="color: #ffffff;">" fue expulsado del clan."</span> & FONTTYPE_GUILD<span style="color: #66cc66;">)</span></li><li style="" class="li1"><span style="color: #b1b100;">Else</span></li><li style="" class="li2">    <span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToIndex, UserIndex, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"||El usuario no esta ONLINE."</span> & FONTTYPE_GUILD<span style="color: #66cc66;">)</span></li><li style="" class="li1">    <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></li><li style="" class="li1"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></li><li style="" class="li2"> </li><li style="" class="li1"><span style="color: #b1b100;">Call</span> oGuild.<span style="color: #66cc66;">RemoveMember</span><span style="color: #66cc66;">(</span>UserList<span style="color: #66cc66;">(</span>MemberIndex<span style="color: #66cc66;">)</span>.<span style="color: #b1b100;">Name</span><span style="color: #66cc66;">)</span></li><li style="" class="li1"> </li><li style="" class="li2"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></li></ol></div>[/vb]

Y en
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"><span style="color: #b1b100;">Sub</span> AcceptClanMember</li></ol></div>[/vb]
Reemplazas todo x esto


[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Sub</span> AcceptClanMember<span style="color: #66cc66;">(</span>ByVal UserIndex <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span>, ByVal rdata <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span><span style="color: #66cc66;">)</span></li><li style="" class="li1"> </li><li style="" class="li2"><span style="color: #b1b100;">If</span> UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsGuildLeader</span> = <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">Or</span> UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsSubLeader</span> = <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">Then</span> <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></li><li style="" class="li1"> </li><li style="" class="li1"><span style="color: #b1b100;">Dim</span> oGuild <span style="color: #b1b100;">As</span> cGuild</li><li style="" class="li2"> </li><li style="" class="li1"><span style="color: #b1b100;">Set</span> oGuild = FetchGuild<span style="color: #66cc66;">(</span>UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">GuildName</span><span style="color: #66cc66;">)</span></li><li style="" class="li1"> </li><li style="" class="li2"><span style="color: #b1b100;">If</span> oGuild Is <span style="color: #b1b100;">Nothing</span> <span style="color: #b1b100;">Then</span> <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></li><li style="" class="li1"> </li><li style="" class="li1"><span style="color: #b1b100;">Dim</span> Soli <span style="color: #b1b100;">As</span> cSolicitud</li><li style="" class="li2"> </li><li style="" class="li1"><span style="color: #b1b100;">Set</span> Soli = oGuild.<span style="color: #66cc66;">GetSolicitud</span><span style="color: #66cc66;">(</span>rdata<span style="color: #66cc66;">)</span></li><li style="" class="li1"> </li><li style="" class="li2"><span style="color: #b1b100;">If</span> Soli Is <span style="color: #b1b100;">Nothing</span> <span style="color: #b1b100;">Then</span> <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></li><li style="" class="li1"> </li><li style="" class="li1"><span style="color: #b1b100;">Dim</span> MemberIndex <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span></li><li style="" class="li2"> </li><li style="" class="li1">MemberIndex = DameUserIndexConNombre<span style="color: #66cc66;">(</span>Soli.<span style="color: #66cc66;">UserName</span><span style="color: #66cc66;">)</span></li><li style="" class="li1"> </li><li style="" class="li2"><span style="color: #b1b100;">If</span> MemberIndex <> <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">Then</span> <span style="color: #808080;">'esta online</span></li><li style="" class="li1">    </li><li style="" class="li1">    <span style="color: #b1b100;">If</span> UserList<span style="color: #66cc66;">(</span>MemberIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">GuildName</span> <> <span style="color: #ffffff;">""</span> <span style="color: #b1b100;">Then</span></li><li style="" class="li2">        <span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToIndex, UserIndex, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"||No podés aceptar esa solicitud, el pesonaje es lider de otro clan."</span> & FONTTYPE_GUILD<span style="color: #66cc66;">)</span></li><li style="" class="li1">        <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></li><li style="" class="li1">    <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></li><li style="" class="li2">    </li><li style="" class="li1">    UserList<span style="color: #66cc66;">(</span>MemberIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">GuildName</span> = UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">GuildName</span></li><li style="" class="li1">    <span style="color: #b1b100;">Call</span> AddtoVar<span style="color: #66cc66;">(</span>UserList<span style="color: #66cc66;">(</span>MemberIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">ClanesParticipo</span>, <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">)</span></li><li style="" class="li2">    <span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToIndex, MemberIndex, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"||Felicitaciones, tu solicitud ha sido aceptada."</span> & FONTTYPE_GUILD<span style="color: #66cc66;">)</span></li><li style="" class="li1">    <span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToIndex, MemberIndex, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"||Ahora sos un miembro activo del clan "</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">GuildName</span> & FONTTYPE_GUILD<span style="color: #66cc66;">)</span></li><li style="" class="li1">    <span style="color: #b1b100;">Call</span> GiveGuildPoints<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">25</span>, MemberIndex<span style="color: #66cc66;">)</span></li><li style="" class="li2"><span style="color: #b1b100;">Else</span></li><li style="" class="li1">    <span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToIndex, UserIndex, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"||Solo podes aceptar solicitudes cuando el solicitante esta ONLINE."</span> & FONTTYPE_GUILD<span style="color: #66cc66;">)</span></li><li style="" class="li1">    <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></li><li style="" class="li2"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></li><li style="" class="li1"> </li><li style="" class="li1"><span style="color: #b1b100;">Call</span> oGuild.<span style="color: #66cc66;">Members</span>.<span style="color: #66cc66;">Add</span><span style="color: #66cc66;">(</span>Soli.<span style="color: #66cc66;">UserName</span><span style="color: #66cc66;">)</span></li><li style="" class="li2"><span style="color: #b1b100;">Call</span> oGuild.<span style="color: #66cc66;">RemoveSolicitud</span><span style="color: #66cc66;">(</span>Soli.<span style="color: #66cc66;">UserName</span><span style="color: #66cc66;">)</span></li><li style="" class="li1"><span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToGuildMembers, UserIndex, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"TW"</span> & SND_ACEPTADOCLAN<span style="color: #66cc66;">)</span></li><li style="" class="li1"><span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToGuildMembers, UserIndex, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"||"</span> & rdata & <span style="color: #ffffff;">" ha sido aceptado en el clan."</span> & FONTTYPE_GUILD<span style="color: #66cc66;">)</span></li><li style="" class="li2"> </li><li style="" class="li1"> </li><li style="" class="li1"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></li></ol></div>[/vb]

Y Despues buscas
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1">GLINFO</li></ol></div>[/vb]
y reemplazas hasta el EXIT SUB x esto


[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1">        <span style="color: #b1b100;">Case</span> <span style="color: #ffffff;">"GLINFO"</span></li><li style="" class="li1">            <span style="color: #b1b100;">If</span> UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsGuildLeader</span> = <span style="color: #cc66cc;">1</span> <span style="color: #b1b100;">Or</span> UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsSubLeader</span> = <span style="color: #cc66cc;">1</span> <span style="color: #b1b100;">Then</span></li><li style="" class="li2">                        <span style="color: #b1b100;">Call</span> SendGuildLeaderInfo<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span></li><li style="" class="li1">            <span style="color: #b1b100;">Else</span></li><li style="" class="li1">                        <span style="color: #b1b100;">Call</span> SendGuildsList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span></li><li style="" class="li2">            <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></li><li style="" class="li1">            <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></li></ol></div>[/vb]
Y En
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"><span style="color: #b1b100;">Sub</span> SaveUser</li></ol></div>[/vb]
En la parte que dice
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"><span style="color: #b1b100;">Call</span> WriteVar<span style="color: #66cc66;">(</span>UserFile, <span style="color: #ffffff;">"GUILD"</span>, <span style="color: #ffffff;">"EsGuildLeader"</span>, <span style="color: #b1b100;">val</span><span style="color: #66cc66;">(</span>UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsGuildLeader</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li></ol></div>[/vb]
Abajo ponemos
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"><span style="color: #b1b100;">Call</span> WriteVar<span style="color: #66cc66;">(</span>UserFile, <span style="color: #ffffff;">"GUILD"</span>, <span style="color: #ffffff;">"EsSubLeader"</span>, <span style="color: #b1b100;">val</span><span style="color: #66cc66;">(</span>UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">GuildInfo</span>.<span style="color: #66cc66;">EsSubLeader</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li></ol></div>[/vb]
Eso es todooo ;D
By DJ MIxeR || Sabado 11 de Noviembre
Salu2
PD: Los Sublideres tienen el mismo panel q los lideres ( Clanes ) pero solo echan i aceptan ;D
 

Loopzer

Oráculo Lvl 2
eee

nice trabajo :p

voy a probarlo ,si tengo tiempo

pero una cosa,
por que "LEADER" y no "LIDER"

donde esta el patriotismo :p
 

Dj Mixer

Destructor Lvl 1
Jajaja,, Correji 1 error en :
rdata = Right$(rdata, Len(rdata) - 11)
tIndex = NameIndex(rdata)
Antes decia
rdata = tIndex(Right$(rdata, Len(rdata) - 11))
 

dälmiro.

the comeback
Como seria el case osea

SubLider = 1
?Tambien me pueden decir el del lider plz? Para agregar a la barra de Ves a.
 
Estado
Cerrado para nuevas respuestas.
Arriba