Jump to content

powkda

Members
  • Posts

    78
  • Joined

  • Last visited

Everything posted by powkda

  1. It worked, thank you very much taking advantage of the momentum, I'm having problems with sleep 2 only in the logs, the npv works normal, but I want to fix it. I already changed sleep2 for sleep but there was another error: sleep 1000; for(set [email protected],0;[email protected]<getarraysize([email protected]_participantes$);set [email protected],[email protected]+1){ sleep2 1000; if(getmapusers("poring_w01") == 1){goto Vencer;} attachrid(getcharid(3,[email protected]_participantes$[[email protected]])); if( strcharinfo(3) == [email protected]$[0] ){ set [email protected],522+rand(1,14); specialeffect2 [email protected], strcharinfo(0); if( [email protected] == 531 ){ deletearray [email protected]_participantes$[[email protected]], 1; percentheal -99,-99; sleep2 1500; warp "SavePoint",0,0; [Error]: buildin_warp: fatal error ! player not attached! [Debug]: Function: warp (3 parameters): [Debug]: Data: string value="SavePoint" [Debug]: Data: number value=0 [Debug]: Data: number value=0 [Debug]: Source (NPC): Tarot Event (invisible/not on a map) want me to post the full npc?
  2. one of the npc that i tried to use and gave the error //= Corrida Poring //===== Mapflags: ============================================= p_track02 mapflag nobranch p_track02 mapflag noicewall p_track02 mapflag nomemo p_track02 mapflag noreturn p_track02 mapflag noteleport p_track02 mapflag nowarpto p_track02 mapflag nowarp p_track02 mapflag pvp off p_track02 mapflag nosave //====== Teleporte: ============================================ prontera,147,175,6 script Poring Race#prace0 4_F_SON,{ if($prace_gate == 0){ mes "[Warper]"; mes "Desculpe, mas a Corrida dos Porings está fechada."; close; } mes "[Warper]"; mes "Olá "+strcharinfo(0)+", você quer ir"; mes "para a Corrida dos Porings?"; if(select("Sim, claro.:Não, obrigado.") == 2) close; close2; warp "p_track02",55,41; end; } //====== Warps: ================================================ hugel,45,57,0 warp p_track001 2,2,p_track02,75,42 p_track02,78,42,0 warp p_track002 1,3,hugel,48,60 //====== Checker: ============================================== p_track02,44,41,0 script Checker#prace0 -1,{ end; OnChequeo: set [email protected]_prize, 607; // ID do prêmio para quem vencer. set [email protected]_prize_quantity, 100; // Quantidade do prêmio. set $prace_gate,0; for(set [email protected],0; [email protected] < (getarraysize($prace_bidders)); set [email protected], [email protected] + 1){ if(attachrid($prace_bidders[[email protected]])){ if (@prace_playing!=1) end; set @z, rand(150000,400000); dispbottom "O vencedor é o "+$prace_winner$+" e você apostou em "[email protected]_winner$+"."; if (@prace_winner$==$prace_winner$ && @prace_winner$!=""){ dispbottom "Você venceu! Prêmio: 1 "+getitemname(@id); mapannounce "p_track02"," Parabéns! "+strcharinfo(0)+" venceu!",1,0xFFAB54; getitem [email protected]_prize,1; emotion 21,1; warp "prontera",150,170; } else { dispbottom "Você perdeu."; emotion 28,1; warp "prontera",150,170; } set @prace_winner$,"";set @prace_playing,0; } //else { announce [email protected]+" || "+$prace_bidders[[email protected]],bc_all; } //debug } for(set [email protected],0; [email protected] < (getarraysize($prace_bidders)); set [email protected], [email protected] + 1) set $prace_bidders[[email protected]],0; } - script Timers#prace0 -1,{ OnClock0000: callsub OnCalll; OnClock0200: callsub OnCalll; OnClock0400: callsub OnCalll; OnClock0600: callsub OnCalll; OnClock0800: callsub OnCalll; OnClock1000: callsub OnCalll; OnClock1200: callsub OnCalll; OnClock1400: callsub OnCalll; OnClock1600: callsub OnCalll; OnClock1800: callsub OnCalll; OnClock2000: callsub OnCalll; OnClock1318: callsub OnCalll; OnCalll: set $prace_gate,1; announce "A 'Corrida dos Porings' irá começar em breve, façam suas apostas!",bc_all|bc_yellow; end; } //====== Principal: ============================================ p_track02,61,42,5 script Bidder#prace0 4_M_05,{ set [email protected]_zeny,100000; // Preço para apostar. if ($prace_random < 1) callsub OnInit; if (@prace_playing==1) callsub AlreadyPlaying; if($prace_gate == 0){ mes "[Bidder]"; mes "Uma corrida está em andamento..."; close; } getmapxy([email protected]$,[email protected],[email protected],1,"Poring#prace1"); getmapxy([email protected]$,[email protected],[email protected],1,"Angeling#prace2"); getmapxy([email protected]$,[email protected],[email protected],1,"Metaling#prace3"); getmapxy([email protected]$,[email protected],[email protected],1,"Deviling#prace4"); getmapxy([email protected]$,[email protected],[email protected],1,"Poring Noel#prace5"); getmapxy([email protected]$,[email protected],[email protected],1,"Poporing#prace6"); if ([email protected] != 58 || [email protected] != 58 || [email protected] != 58 || [email protected] != 58 || [email protected] != 58 || [email protected] != 58){ mes "[Bidder]"; mes "Uma corrida está em andamento..."; close; } mes "[Bidder]"; mes "Escolha o poring em que deseja apostar:";mes "Irá custar "[email protected]_zeny+" Zeny.";next; switch(select("Poring","Angeling","Metaling","Deviling","Poring Noel","Poporing")){ case 1: callfunc "OnBid","Poring"; case 2: callfunc "OnBid","Angeling"; case 3: callfunc "OnBid","Metaling"; case 4: callfunc "OnBid","Deviling"; case 5: callfunc "OnBid","Poring Noel"; case 6: callfunc "OnBid","Poporing"; } OnReady: set $prace_bets,$prace_bets+1; set $prace_bidders[$prace_bets],getcharid(3); set @prace_playing,1; mes "[Bidder]"; mes "Eu tenho "+$prace_bets+" apostas."; setnpctimer 60000; startnpctimer; npctalk strcharinfo(0)+" fez sua aposta!"; close; Start1: setnpctimer 0; startnpctimer; end; AlreadyPlaying: mes "[Bidder]"; mes "Você apostou em ^00bb00"[email protected]_winner$+"^000000."; close; StartRace: donpcevent "Metaling#prace3::OnRace"; donpcevent "Poring#prace1::OnRace"; donpcevent "Poporing#prace6::OnRace"; donpcevent "Angeling#prace2::OnRace"; donpcevent "Poring Noel#prace5::OnRace"; donpcevent "Deviling#prace4::OnRace"; end; OnStopRace: donpcevent "Poring#prace1::OnStop"; donpcevent "Angeling#prace2::OnStop"; donpcevent "Metaling#prace3::OnStop"; donpcevent "Deviling#prace4::OnStop"; donpcevent "Poring Noel#prace5::OnStop"; donpcevent "Poporing#prace6::OnStop"; if ($prace_winner$!="") callsub WinRace; end; ReturnRace: donpcevent "Poring#prace1::OnReturn"; donpcevent "Angeling#prace2::OnReturn"; donpcevent "Metaling#prace3::OnReturn"; donpcevent "Deviling#prace4::OnReturn"; donpcevent "Poring Noel#prace5::OnReturn"; donpcevent "Poporing#prace6::OnReturn"; end; WinRace: set $prace_gate,0; mapannounce "p_track02","O vencedor é o "+$prace_winner$+".",1,0xFFAB54; donpcevent "Checker#prace0::OnChequeo"; setnpctimer 30000;startnpctimer; end; OnInit: set $prace_random,70; set $prace_random2,600; set $prace_winner$,""; set $prace_bets,0; set $prace_bidders,0; end; OnTimer500: mapannounce "p_track02","Porings, em suas marcas...",1,0xFFAB54; end; OnTimer3000: mapannounce "p_track02","...3...",1,0xFFAB54; end; OnTimer4000: mapannounce "p_track02","...2...",1,0xFFAB54; end; OnTimer5000: mapannounce "p_track02","...1...",1,0xFFAB54; callsub StartRace; end; OnTimer6000: stopnpctimer; mapannounce "p_track02","Gooo!!!",1,0xFFAB54; end; OnTimer35000: set $prace_winner$,""; set $prace_bets,0; stopnpctimer; callsub ReturnRace; OnTimer90000: npctalk "Eu tenho "+$prace_bets+" aposta(s). Alguém mais?"; end; OnTimer110000: npctalk "A corrida irá começar em breve. Última chance."; end; OnTimer120000: callsub Start1; } //====== Função Apostar: ======================================= function script OnBid { getmapxy([email protected]$,[email protected],[email protected],1,"Poring#prace1"); getmapxy([email protected]$,[email protected],[email protected],1,"Angeling#prace2"); getmapxy([email protected]$,[email protected],[email protected],1,"Metaling#prace3"); getmapxy([email protected]$,[email protected],[email protected],1,"Deviling#prace4"); getmapxy([email protected]$,[email protected],[email protected],1,"Poring Noel#prace5"); getmapxy([email protected]$,[email protected],[email protected],1,"Poporing#prace6"); if ([email protected] == 58 || [email protected] == 58 || [email protected] == 58 || [email protected] == 58 || [email protected] == 58 || [email protected] == 58){ if (Zeny < [email protected]_zeny) { callsub OnZeny; } else { set Zeny,[email protected]_zeny; } set @prace_winner$,getarg(0); callsub OnReady; } mes "[Bidder]"; mes "Uma corrida está em andamento..."; close; OnZeny: set @prace_winner$,""; mes "[Bidder]"; mes "Você não tem Zeny suficiente."; close; OnReady: set $prace_bets,$prace_bets+1; set $prace_bidders[$prace_bets],getcharid(3); set @prace_playing,1; mes "[Bidder]"; mes "Eu tenho "+$prace_bets+" apostas."; setnpctimer 60000; startnpctimer; npctalk strcharinfo(0)+" fez sua aposta!"; close; } //====== Monstros: ============================================== p_track02,58,38,2 script Poring#prace1 PORING,{ end; OnRace: initnpctimer; startnpctimer; end; OnStop: stopnpctimer; end; OnReturn: npcwalkto 58,38; end; OnTimer1100: getmapxy([email protected]$,[email protected],[email protected],1,"Poring#prace1"); if(rand(100) < $prace_random) npcwalkto [email protected],[email protected]; setnpctimer rand($prace_random2); startnpctimer; if (([email protected]) == 29) { set $prace_winner$,"Poring"; emotion 29; donpcevent "Bidder#prace0::OnStopRace"; } } p_track02,58,36,2 script Angeling#prace2 ANGELING,{ end; OnRace: initnpctimer; startnpctimer; end; OnStop: stopnpctimer; end; OnReturn: npcwalkto 58,36; end; OnTimer1100: getmapxy([email protected]$,[email protected],[email protected],1,"Angeling#prace2"); if(rand(100) < $prace_random) npcwalkto [email protected],[email protected]; setnpctimer rand($prace_random2); startnpctimer; if (([email protected]) == 29) { set $prace_winner$,"Angeling"; emotion 29; donpcevent "Bidder#prace0::OnStopRace"; } } p_track02,58,34,2 script Metaling#prace3 METALING,{ end; OnRace: initnpctimer; startnpctimer; end; OnStop: stopnpctimer; end; OnReturn: npcwalkto 58,34; end; OnTimer1100: getmapxy([email protected]$,[email protected],[email protected],1,"Metaling#prace3"); if(rand(100) < $prace_random) npcwalkto [email protected],[email protected]; setnpctimer rand($prace_random2); startnpctimer; if (([email protected]) == 29) { set $prace_winner$,"Metaling"; emotion 29; donpcevent "Bidder#prace0::OnStopRace"; } } p_track02,58,32,2 script Deviling#prace4 DEVILING,{ end; OnRace: initnpctimer; startnpctimer; end; OnStop: stopnpctimer; end; OnReturn: npcwalkto 58,32; end; OnTimer1100: getmapxy([email protected]$,[email protected],[email protected],1,"Deviling#prace4"); if(rand(100) < $prace_random) npcwalkto [email protected],[email protected]; setnpctimer rand($prace_random2); startnpctimer; if (([email protected]) == 29) { set $prace_winner$,"Deviling"; emotion 29; donpcevent "Bidder#prace0::OnStopRace"; } } p_track02,58,30,2 script Poring Noel#prace5 PORING_,{ end; OnRace: initnpctimer; startnpctimer; end; OnStop: stopnpctimer; end; OnReturn: npcwalkto 58,30; end; OnTimer1100: getmapxy([email protected]$,[email protected],[email protected],1,"Poring Noel#prace5"); if(rand(100) < $prace_random) npcwalkto [email protected],[email protected]; setnpctimer rand($prace_random2); startnpctimer; if (([email protected]) == 29) { set $prace_winner$,"Poring Noel"; emotion 29; donpcevent "Bidder#prace0::OnStopRace"; } } p_track02,58,28,2 script Poporing#prace6 POPORING,{ end; OnRace: initnpctimer; startnpctimer; end; OnStop: stopnpctimer; end; OnReturn: npcwalkto 58,28; end; OnTimer1100: getmapxy([email protected]$,[email protected],[email protected],1,"Poporing#prace6"); if(rand(100) < $prace_random) npcwalkto [email protected],[email protected]; setnpctimer rand($prace_random2); startnpctimer; if (([email protected]) == 29) { set $prace_winner$,"Poporing"; emotion 29; donpcevent "Bidder#prace0::OnStopRace"; } }
  3. Você viu se o clã tem a habilidade que permite bater?
  4. hello, I'm having a problem with the poring race event, it all comes down to the event that goes to the npc to place the bet, he already has a race in progress, and in the log the following error: [Error]: buildin_getmapxy: Player with nick 'Poring#prace1' is not found. [Error]: buildin_getmapxy: Player with map id '0' is not found. [Error]: buildin_getmapxy: Player with nick 'Angeling#prace2' is not found. [Error]: buildin_getmapxy: Player with map id '0' is not found. [Error]: buildin_getmapxy: Player with nick 'Metaling#prace3' is not found. [Error]: buildin_getmapxy: Player with map id '0' is not found. [Error]: buildin_getmapxy: Player with nick 'Deviling#prace4' is not found. [Error]: buildin_getmapxy: Player with map id '0' is not found. [Error]: buildin_getmapxy: Player with nick 'Poring Noel#prace5' is not found. [Error]: buildin_getmapxy: Player with map id '0' is not found. [Error]: buildin_getmapxy: Player with nick 'Poporing#prace6' is not found. [Error]: buildin_getmapxy: Player with map id '0' is not found. can someone help me?
  5. prontera,132,189,7 script ConfigA -1,{ OnNPCKillEvent: set [email protected],20327; set [email protected],3041; if(killedrid == [email protected]) { if(getequipid(EQI_HAND_L) == [email protected] || getequipid(EQI_HAND_R) == [email protected]) { if(rand(1,100) <= 40) { if(getequipid(2) == [email protected]) delequip(2); message strcharinfo(0),"your "+getitemname([email protected])+" break!!"; if(getequipid(4) == [email protected]) delequip(4); message strcharinfo(0),"your "+getitemname([email protected])+" break!!"; } } } if(getequipid(EQI_HAND_L) == [email protected] || getequipid(EQI_HAND_R) == [email protected]) if(killedrid == 3041) { if(rand(1,100) <= 5){ getitem 20326,1; } if(rand(1,100) <= 20){ getitem 20325,1; } } } Equipped weapon not being deleted, message but not delete
  6. I did like his then and modified the line you sited, now apparently it's 100% Taking advantage of that would be to put a global for when the item was refined +8 +9 and +10 saying: Player X has refined the item to +8, and so on.
  7. it worked but I couldn't translate it. Perfect, thank you so much for your help When I select the equipment goes to this message, before changing would not ... if(!getequipisequiped(@part)) { mes .npcname$; mes "Você não está vestindo nada lá que eu possa refinar."; emotion e_an; close; }
  8. It does not appear which item is equipped, and when you select the item that has no equipment.
  9. That would be the full npc I'm using.
  10. Good evening, when selecting which item to refine in npc custom doesn't appear the right accessory in the options, what can it be? No error in mapserv setarray [email protected]$[1], "Acessório E","Sapato","Capa","Cabeça abaixo","Cabeça meio","Cabeça acima","Corpo","Mão direita","Mão esquerda","Acessório D"; set [email protected]$, ""; for([email protected] = 1; [email protected] <= 10; [email protected]++) { if(getequipisequiped([email protected])) { set [email protected]$, [email protected]$ + [email protected]$[[email protected]] + " - " + "[" + getequipname([email protected]) + "]"; [email protected] = 1; } set [email protected]$, [email protected]$ + ":"; }
  11. How to add the command to show how much time is left to win 1 point example: @ presence (You are online 47 minutes ago)
  12. powkda

    Erods-Fusion Help

    // --- SQL // These are the SQL database settings for ERODS-FUSION. Please note: // * The old 1.16 ERODS database will NOT work // * Your eAthena SQL item/mob database will NOT work 'sql' => array ( 'server' => 'localhost', 'database' => 'database', 'user' => 'user_db', 'password' => 'password_user', 'port' => '3306', 'charset' => 'utf8', ),
  13. powkda

    Erods-Fusion Help

    Rune-Asgard =========== Database online baseada na ERODS FUSION 1.3 criada e distribuída livremente pelo OutOfCuriosity. this one here
  14. powkda

    Erods-Fusion Help

    that same, only hosted
  15. Good morning, I'm having the following problem with the Erods-Fusion database: Manipulador de Erro The MySQL extension php_mysql isn't loaded. It's neccesary to properly install this in order to run ERODS-FUSION. Does anyone know how to help me?
  16. Good Morning, I installed FluxCP and I get the following error: uh oh what happened? This error happens when I add a new column in the sql login table Can anyone tell me how to get rid of this error?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.