cumbe11

Members
  • Content Count

    212
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

  • Days Won

    1

cumbe11 last won the day on July 18 2014

cumbe11 had the most liked content!

Community Reputation

1 Neutral

3 Followers

About cumbe11

  • Rank
    Marin

Profile Information

  • Gender
    Male
  • Location
    Aracati

Recent Profile Visitors

2,852 profile views
  1. Trx... apparently it's working 100%
  2. thank you very much. What would you look like with only fidelidade points?
  3. Hello, I use this npc that give loyalty points to use in the store, but sometimes people can buy the items even without points, I would like to know where the problem is - script Fidelidade -1,{ OnPCLoginEvent: addtimer 60000,"Fidelidade::OnTime"; end; OnTime: if(query_sql("SELECT login.account_id FROM login LEFT JOIN `char` ON login.account_id=`char`.account_id WHERE login.last_ip=(SELECT last_ip FROM login WHERE account_id="+getcharid(3)+") AND `char`.online=1", [email protected]_id) > 2){ end; } if(checkvending() || #fidelidade == 30000){ end; } set #fidelidade,#fidelidade + 1; if(#fidelidadeon == 0){ dispbottom "@fidelidade : Você recebeu 1 Ponto e ficou com "+#fidelidade+" Pontos de Fidelidade, use @fidelidade."; } addtimer 60000,"Fidelidade::OnTime"; end; OnInit: bindatcmd "fidelidade","Fidelidade::OnFIDELIDADE"; setarray .ItList[0],7836,2700,6001,2700,7087,2700,12080,540,7443,540,675,360,31349,18000,31350,18000,20301,14400,18247,14400,31382,19800,31380,19800,31381,19800; npcshopdelitem "DynShop02",501; for(set .n,0;.n<getarraysize(.ItList);set .n,.n+2) npcshopadditem "DynShop02",.ItList[.n],.ItList[(.n+1)]; end; OnBuyItem: for(set @n,0;@n<getarraysize(@bought_nameid);set @n,@n+1) for(set @a,0;@a<getarraysize(.ItList);set @a,@a+2) if(@bought_nameid[@n]==.ItList[@a]){ set @PriceT,.ItList[@a+1]*@bought_quantity[@n]; if(#fidelidade){ if(#fidelidade<@PriceT) end; }else{ if(Zeny<@PriceT) end; } getitem @bought_nameid[@n],@bought_quantity[@n]; if(#fidelidade) set #fidelidade,#[email protected]; else set Zeny,[email protected]; } end; OnFIDELIDADE: mes "[^ff0000 "+strnpcinfo(1)+" ^000000]"; mes "A cada minuto conectado você recebe ^0000ff1 Ponto^000000 e juntando poderá troca-los por itens em ^FF9900Trocas da Fidelidade^000000."; mes "^F7F7F7-^000000"; mes "Você tem ^0000ff"+#fidelidade+" Pontos de Fidelidade^000000"; switch(select((#fidelidadeon==1?"- Ligar Mensagens":"- Desligar Mensagens"),"- Trocas da Fidelidade")){ case 1: next; mes "[^ff0000 "+strnpcinfo(1)+" ^000000]"; if(#fidelidadeon == 0){ mes "As mensagens foram desligadas."; set #fidelidadeon,1; close; } else { mes "As mensagens foram ligadas."; set #fidelidadeon,0; close; } case 2: close2; callshop "DynShop02",1; npcshopattach "DynShop02"; end; } } - shop DynShop02 -1,501:-1
  4. gostaria de saber isso também
  5. I have this 1x1 duel script, I wanted to leave it 7x7 // ============================================================================== // BattleGround System - KvM 1~59 // ============================================================================== // Registration NPC's // ********************************************************************* prontera,138,223,5 script Time Guillaume::KvM04R_Guillaume 418,{ // KvM Guillaume mes "[^0000FFGuillaume^000000]"; mes "^0000FFEntre no Chat^000000 para duelar contra outro jogador."; close; OnInit: waitingroom "Duelo! [1x1]",1,"KvM04_BG::OnGuillaumeJoin",1; end; OnEnterBG: set [email protected]_id1, waitingroom2bg("bat_c01",53,128,0,"KvM04_BG::OnGuillaumeQuit","KvM04_BG::OnGuillaumeDie"); end; } prontera,140,225,5 script Time Croix::KvM04R_Croix 414,{ // KvM Croix mes "[^FF0000Croix^000000]"; mes "^FF0000Entre no Chat^000000 para duelar contra outro jogador."; close; OnInit: waitingroom "Duelo! [1x1]",1,"KvM04_BG::OnCroixJoin",1; end; OnEnterBG: set [email protected]_id2, waitingroom2bg("bat_c01",146,55,1,"KvM04_BG::OnCroixQuit","KvM04_BG::OnCroixDie"); end; } // Light Effects // ********************************************************************* bat_c01,54,123,0 script #bat_c01a 111,{ end; OnKvM04LightA: misceffect 54; end; OnKvM04LightB: misceffect 55; end; OnKvM04LightC: misceffect 56; end; } bat_c01,56,125,0 duplicate(#bat_c01a) #bat_c01b 111 bat_c01,58,127,0 duplicate(#bat_c01a) #bat_c01c 111 bat_c01,141,56,0 duplicate(#bat_c01a) #bat_c01d 111 bat_c01,143,58,0 duplicate(#bat_c01a) #bat_c01e 111 bat_c01,145,60,0 duplicate(#bat_c01a) #bat_c01f 111 // Battleground Engine // ********************************************************************* - script KvM04_BG -1,{ end; OnInit: setwall "bat_c01",54,122,6,7,0,"batc04wall_a"; setwall "bat_c01",55,122,5,7,0,"batc04wall_b"; setwall "bat_c01",140,56,6,7,0,"batc04wall_c"; setwall "bat_c01",140,57,5,7,0,"batc04wall_d"; disablenpc "TherapistKvM04a"; disablenpc "TherapistKvM04b"; disablenpc "VintenarKvM04a"; disablenpc "VintenarKvM04b"; end; OnGuillaumeJoin: OnCroixJoin: donpcevent "KvM04_BG::OnReadyCheck"; end; OnGuillaumeQuit: OnGuillaumeDie: if( [email protected] == 2 ) { getmapxy [email protected]$, [email protected], [email protected], 0; if( [email protected]$ != "bat_c01" || ([email protected] >= 50 && [email protected] <= 58 && [email protected] >= 123 && [email protected] <= 131) ) end; // Killed/Logout on Cementery or outside the map? set .Guillaume_Count, .Guillaume_Count - 1; set .Croix_Score, .Croix_Score + 1; bg_updatescore "bat_c01",.Guillaume_Score,.Croix_Score; if( .Guillaume_Count < 1 ) donpcevent "KvM04_BG::OnCroixWin"; } end; OnCroixQuit: OnCroixDie: if( [email protected] == 2 ) { getmapxy [email protected]$, [email protected], [email protected], 0; if( [email protected]$ != "bat_c01" || ([email protected] >= 141 && [email protected] <= 149 && [email protected] >= 52 && [email protected] <= 60) ) end; // Killed/Logout on Cementery or outside the map? set .Croix_Count, .Croix_Count - 1; set .Guillaume_Score, .Guillaume_Score + 1; bg_updatescore "bat_c01",.Guillaume_Score,.Croix_Score; if( .Croix_Count < 1 ) donpcevent "KvM04_BG::OnGuillaumeWin"; } end; OnReadyCheck: if( [email protected] ) end; // if( gettime(3) < 16 || gettime(3) > 22 ) // end; // 4 to 11 p.m. if( set([email protected], getwaitingroomstate(6,"KvM04R_Guillaume")) > 0 ) set [email protected]_GU$, [email protected]$[0]; if( set([email protected], getwaitingroomstate(6,"KvM04R_Croix")) > 0 ) set [email protected]_CU$, [email protected]$[0]; if( [email protected] < 1 || [email protected] < 1 ) { // Not enough players to start set [email protected]$, "Duelo! [1x1] - "; if( [email protected] ) set [email protected]$, [email protected]$ + "<" + [email protected]_GU$ + "> VS < >"; else if( [email protected] ) set [email protected]$, [email protected]$ + "< > VS <" + [email protected]_CU$ + ">"; else set [email protected]$, [email protected]$ + "A Arena está liberada."; if( !agitcheck() && [email protected]_Flood < gettimetick(2) ) { announce [email protected]$,0,0xffff00; set [email protected]_Flood, gettimetick(2) + 15; } else mapannounce [email protected]$,1,0xffff00; end; } set [email protected], 1; // Starting donpcevent "KvM04R_Croix::OnEnterBG"; donpcevent "KvM04R_Guillaume::OnEnterBG"; donpcevent "KvM04_BG::OnStart"; end; OnStart: announce "Duelo! [1x1] <" + [email protected]_GU$ + "> VS <" + [email protected]_CU$ + "> começou!",0,0xffff00; enablenpc "TherapistKvM04a"; enablenpc "TherapistKvM04b"; disablenpc "VintenarKvM04a"; disablenpc "VintenarKvM04b"; set [email protected]_Victory, 0; sleep 2000; // Warp Teams bg_warp [email protected]_id1,"bat_c01",53,128; bg_warp [email protected]_id2,"bat_c01",146,55; // ScoreBoard set .Guillaume_Score, 0; set .Croix_Score, 0; initnpctimer; end; OnTimer5000: areapercentheal "bat_c01",50,123,58,131,100,100; areapercentheal "bat_c01",141,52,149,60,100,100; mapannounce "bat_c01","Duelo! [1x1] - A Batalha começará em 25 segundos!",1,0xffff00; end; OnTimer26000: mapannounce "bat_c01","Duelo! [1x1] - A Batalha começará em 4 segundos!",1,0xffff00; end; OnTimer27000: donpcevent "::OnKvM04LightA"; end; OnTimer28000: donpcevent "::OnKvM04LightB"; end; OnTimer29000: donpcevent "::OnKvM04LightC"; end; OnTimer30000: // Team Members set .Guillaume_Count, bg_get_data([email protected]_id1, 0); set .Croix_Count, bg_get_data([email protected]_id2, 0); if( .Guillaume_Count < 1 || .Croix_Count < 1 ) { set [email protected]_Victory, 3; set [email protected], 3; set [email protected]$, "Duelo! [1x1] - "; if( .Guillaume_Count < 1 && .Croix_Count < 1 ) set [email protected]$, "<" + [email protected]_GU$ + "> VS <" + [email protected]_CU$ + "> cancelado."; else if( .Guillaume_Count < 1 ) set [email protected]$, "<" + [email protected]_CU$ + "> está com medo de <" + [email protected]_GU$ + ">..."; else if( .Croix_Count < 1 ) set [email protected]$, "<" + [email protected]_GU$ + "> está com medo de <" + [email protected]_CU$ + ">..."; announce [email protected]$,0,0xffff00; stopnpctimer; sleep 2000; donpcevent "KvM04_BG::OnStop"; end; } set [email protected], 2; // Playing areapercentheal "bat_c01",50,123,58,131,100,100; bg_warp [email protected]_id1,"bat_c01",62,119; areapercentheal "bat_c01",141,52,149,60,100,100; bg_warp [email protected]_id2,"bat_c01",137,64; end; OnTimer32000: mapannounce "bat_c01","Duelo! [1x1] começou!!",1,0xffff00; end; OnTimer300000: mapannounce "bat_c01","Duelo! [1x1] - A Batalha acabará em 30 segundos.",1,0xffff00; end; OnTimer330000: if( .Croix_Count > .Guillaume_Count ) donpcevent "KvM04_BG::OnCroixWin"; else if( .Croix_Count < .Guillaume_Count ) donpcevent "KvM04_BG::OnGuillaumeWin"; else { // Draw Game set [email protected], 3; set [email protected]_Victory, 3; stopnpctimer; sleep 2000; announce "Duelo! [1x1] - <" + [email protected]_GU$ + "> VS <" + [email protected]_CU$ + "> terminou em EMPATE.",0,0xffff00; donpcevent "KvM04_BG::OnStop"; } end; OnGuillaumeWin: set [email protected], 3; set [email protected]_Victory, 1; stopnpctimer; sleep 2000; announce "Duelo! [1x1] - <" + [email protected]_GU$ + "> foi o VENCEDOR! <" + [email protected]_CU$ + "> perdeu.",0,0xffff00; donpcevent "KvM04_BG::OnStop"; end; OnCroixWin: set [email protected], 3; set [email protected]_Victory, 2; stopnpctimer; sleep 2000; announce "Duelo! [1x1] - <" + [email protected]_CU$ + "> foi o VENCEDOR! <" + [email protected]_GU$ + "> perdeu.",0,0xffff00; donpcevent "KvM04_BG::OnStop"; end; OnStop: disablenpc "TherapistKvM04a"; disablenpc "TherapistKvM04b"; enablenpc "VintenarKvM04a"; enablenpc "VintenarKvM04b"; // Warp Teams bg_warp [email protected]_id1,"bat_c01",53,128; bg_warp [email protected]_id2,"bat_c01",146,55; donpcevent "KvM04_BG_Out::OnBegin"; end; OnReset: stopnpctimer; stopnpctimer "KvM04_BG_Out"; set .Croix_Count, 0; set .Guillaume_Count, 0; set .Croix_Score, 0; set .Guillaume_Score, 0; set [email protected]_GU$, ""; set [email protected]_CU$, ""; set [email protected]_Victory, 0; if( [email protected]_id1 ) { bg_destroy [email protected]_id1; set [email protected]_id1, 0; } if( [email protected]_id2 ) { bg_destroy [email protected]_id2; set [email protected]_id2, 0; } disablenpc "TherapistKvM04a"; disablenpc "TherapistKvM04b"; disablenpc "VintenarKvM04a"; disablenpc "VintenarKvM04b"; sleep 1000; mapwarp "bat_c01","prontera",155,181; sleep 2000; maprespawnguildid "bat_c01",0,3; // Just in case someone else bg_updatescore "bat_c01",0,0; sleep 2000; set [email protected], 0; donpcevent "KvM04_BG::OnReadyCheck"; // Maybe a game is ready to start end; } - script KvM04_BG_Out -1,{ end; OnBegin: initnpctimer; end; OnTimer3000: mapannounce "bat_c01","Duelo! [1x1] fechará em 2 minutos!",1,0xffff00; end; OnTimer90000: mapannounce "bat_c01","Duelo! [1x1] fechará em 30 segundos!",1,0xffff00; end; OnTimer110000: mapannounce "bat_c01","Duelo! [1x1] fechará em 10 segundos!",1,0xffff00; end; OnTimer120000: OnClock1600: donpcevent "KvM04_BG::OnReset"; end; } // Battleground Therapist // ********************************************************************* bat_c01,51,130,5 script Treinador::TherapistKvM04a 95,{ mes "[Treinador]"; mes "Apenas respire fundo e lute. Você conseguirá vencer!"; specialeffect2 312; close; } bat_c01,148,53,1 script Treinador::TherapistKvM04b 95,{ mes "[Treinador]"; mes "Apenas respire fundo e lute. Você conseguirá vencer!"; specialeffect2 312; close; } // Battleground rewards // ********************************************************************* bat_c01,51,130,5 script Guillaume Vintenar::VintenarKvM04a 419,{ if( [email protected]_Victory ) { if( [email protected]_Victory == 3 ) { bg_leave; warp "prontera",134,120; end; } else if( [email protected]_Victory == Bat_Team ) { // Victory bg_leave; warp "prontera",155,181; end; } else { // bg_leave; warp "prontera",155,181; end; } bg_leave; warp "prontera",155,181; end; } end; } bat_c01,148,53,1 script Croix Vintenar::VintenarKvM04b 415,{ if( [email protected]_Victory ) { if( [email protected]_Victory == 3 ) { bg_leave; warp "prontera",155,181; end; } else if( [email protected]_Victory == Bat_Team ) { // Victory bg_leave; warp "prontera",155,181; end; } else { // bg_leave; warp "prontera",155,181; end; } bg_leave; warp "prontera",155,181; end; } end; } // MapFlags // ********************************************************************* bat_c01 mapflag battleground 2 bat_c01 mapflag nomemo bat_c01 mapflag nosave SavePoint bat_c01 mapflag noteleport bat_c01 mapflag nowarp bat_c01 mapflag nowarpto bat_c01 mapflag noreturn bat_c01 mapflag nobranch bat_c01 mapflag nopenalty
  6. Hello, I have a question, I am a few hours checking these lines of code trying to understand what it is, ud-> canmove_tick + = 3 * speed / 5; // is this part the speed of animation? skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag); if(unit_walktoxy(src, dx, dy, 2) && ud) { //Increase can't walk delay to not alter your walk path ud->canmove_tick = tick; speed = status_get_speed(src); for (i = 0; i < ud->walkpath.path_len; i ++) { if(ud->walkpath.path[i]&1) ud->canmove_tick+=3*speed/5; else ud->canmove_tick+=speed; } } } break;
  7. I want you not to be allowed to create an account with the same use <?php error_reporting(0); include('connect.php'); $usuario = $_POST['user']; $senha = $_POST['pass']; $senha2 = $_POST['conf']; $gen = $_POST['genero']; $email = $_POST['mail']; if (isset($senha)){ //Verifica se já existe um email no banco de dados $cons = "SELECT email FROM login WHERE email='".$email."'"; $sql = mysql_query($cons); $res = mysql_fetch_array($sql); $verifica = $res['email']; if($veririca != ""){ // condição. se existir um email ja cadastrado, não pode proceguir echo "<script>alert('Desculpe mais me parece que este e-mail ja esta em uso!')</script>"; }else{ if($senha != $senha2){ // Confirmação de senha (validação) echo "<script>alert('Desculpe mais me parece que suas senhas estao incorretas!')</script>"; }else{ //Procedimento de cadastro $cad = "INSERT INTO login (userid,user_pass,sex,email) VALUES ('".$usuario."','".$senha."','".$gen."','".$email."')"; $c_cad = mysql_query($cad); if ($cad) { echo "<script>alert('Cadastro efetuado com sucesso!')</script>"; #echo "<meta http-equiv=\"refresh\" content=\"1; url:index.php\" />"; } } } }else{ #echo "<p style=\"color: #E40D6B; font-size: 12px; font-family: verdana,arial; font-weight: bold; text-align: center;\";>Preencha seus dados!</p>"; } ?>
  8. Hello, I would like to know if there is any npc that shows the ranking of the top damage of each class. example: Name: John Class: monk: damage: 7890000
  9. Hello, I wanted to change use an old emulator, Freya, but when I go to build the hundreds this error .. ./configure Checking for platform... Linux Checking whether build environment is sane... Checking whether make sets $(MAKE) ... yes Checking for gcc... ./configure: line 323: which: command not found ./configure: line 323: which: command not found ./configure: line 323: which: command not found ./configure: line 323: which: command not found ./configure: line 323: which: command not found ./configure: line 323: which: command not found not found -bash-3.2# line 323: fi if [ x$CC != x ]; then CCLIST="$CC $CCLIST" fi CC="" for foo in $CCLIST; do XCC=`which $foo` if [ x$XCC = x ]; then : else CC="$XCC" echo $CC break 2 fi done if [ x$CC = x ]; then if anyone can help me I will be very grateful gethub: https://github.com/flaviojs/freya
  10. Just solve. map/status.c // Parse equipment. for(i=0;i<EQI_MAX;i++) { to change // Parse equipment. for(i=0;i<EQI_MAX_BONUS;i++) {
  11. The problem is that the costumeitem items should not give attributes when they were appointed, but in my costomes the emulator are giving when they are transformed into costumeitem written excuse is that I am Brazilian and I'm using google translator
  12. Items that are being transformed into visual this taking the stataus and effects, I wonder how to solve it