Jump to content

karazu

Members
  • Content Count

    1115
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by karazu

  1. Same thing Mr. Dastgir Pojee Everytime i click the NPC>Join>I will just say complete. And statuses will still be announce like Not Enough Player. Go!!!! (event though the NPC already announce that not enough player) Draw!!
  2. This is a Rathena Script "2012" No error in MAP DB Related Topics http://rathena.org/board/topic/88644-what-is-the-error-all-about/ (solve no error on map DB) http://rathena.org/board/topic/88636-onclock-command/#entry227658 (solve no error on map DB) Theirs a problem probably because this is a rAthena script year ago. NOTE: I am using Hercules. This is the Script //Author-Script Goddameit My forum : http://bit.ly/MDuQ9F //Author-Map TrojanWorm//Version 2012-10-31//Don't re-release in anywhere and anyway//////////////////////////////////////////////////////////////////////////endless_war mapflag battleground 2endless_war,218,86,0 script #BattleGroundwarpA2 100,{ end;OnInit: waitingroom "Join Team A(Click)",2,"#BattleGroundwarpA2::OnJoin",1; end;OnJoin: if(!$@bg_id_a) set $@bg_id_a,waitingroom2bg("endless_war",205,85,"",""); else waitingroom2bg_single($@bg_id_a,"endless_war",205,85,"#BattleGroundwarpA2"); warpwaitingpc "endless_war",205,85; end;}endless_war,40,86,0 script #BattleGroundwarpB2 100,{ end;OnInit: waitingroom "Join Team B(Click)",2,"#BattleGroundwarpB2::OnJoin",1; end;OnJoin: if(!$@bg_id_ set $@bg_id_b,waitingroom2bg("endless_war",53,85,"",""); else waitingroom2bg_single($@bg_id_b,"endless_war",53,85,"#BattleGroundwarpB2"); warpwaitingpc "endless_war",53,85; end;}endless_war,165,86,0 script #BattleGroundwarpA1 45,2,2,{ warp "endless_war",161,86; end;}endless_war,90,86,0 script #BattleGroundwarpB1 45,2,2,{ warp "endless_war",94,86; end;}prontera,150,180,4 script Battle Ground 100,{ if(.status==2) { mes "Game is running."; close; } if(.status==1) { if(.playernm>=128) { mes "Sorry, full"; close; } select("Join"); if(!.playerid[1]) { //callsub OnEndd; initnpctimer; } set .playernm,.playernm+1; set .playerid[.playernm],getcharid(0); mes "Complete"; close; } end;OnMinute00:OnMinute15:OnMinute30:OnMinute45: callsub OnActive; end;OnActive: callsub OnEndd; set .status,1; Announce "[Battle Ground]:Someone active the game! Go to prontera,150,180 and join us!",0; end;OnTimer60000:if(.point[1]>.point[2]){Announce "[Battle Ground]:Team A Win!",0;getitem $@bg_id_a,605,1;}else if(.point[2]>.point[1]){Announce "[Battle Ground]:Team B Win!",0;getitem $@bg_id_b,605,1;}else{Announce "[Battle Ground]:Draw!",0;getitem $@bg_id_a,605,1;getitem $@bg_id_b,605,1;} callsub OnEnab2; end;OnTimer90000: set .status,2; Announce "[Battle Ground]:Go!",0; bg_monster $@bg_id_a,"endless_war",128,120,"A",1907,"Battle Ground::OnAdestory"; bg_monster $@bg_id_b,"endless_war",127,46,"B",1907,"Battle Ground::OnBdestory"; callsub OnEnab1; end;OnTimer190000: if(.point[1]>.point[2]) { Announce "[Battle Ground]:Team A Win!",0; getitem $@bg_id_a,605,1; }else if(.point[2]>.point[1]) { Announce "[Battle Ground]:Team B Win!",0; getitem $@bg_id_b,605,1; }else { Announce "[Battle Ground]:Draw!",0; getitem $@bg_id_a,605,1; getitem $@bg_id_b,605,1; } sleep2 3000; callsub OnEndd; end;OnBdestory: set .point[1],.point[1]+5; set .point[2],.point[2]-3; bg_updatescore "endless_war",.point[1],.point[2]; detachrid; sleep2 10000; bg_monster $@bg_id_b,"endless_war",127,46,"B",1907,"Battle Ground::OnBdestory"; end;OnAdestory: set .point[2],.point[2]+5; set .point[1],.point[1]-3; bg_updatescore "endless_war",.point[1],.point[2]; detachrid; sleep2 10000; bg_monster $@bg_id_a,"endless_war",128,120,"A",1907,"Battle Ground::OnAdestory"; end;OnEndd: set .status,0; bg_destroy $@bg_id_a; bg_destroy $@bg_id_b; set $@bg_id_a,0; set $@bg_id_b,0; setarray .point[1],0,0; killmonsterall "endless_war"; bg_updatescore "endless_war",.point[1],.point[2]; deletearray .playerid[0],128; mapwarp "endless_war","prontera",150,180; callsub OnDisa; return;OnEnab1: enablenpc "#BattleGroundwarpA1"; enablenpc "#BattleGroundwarpB1"; return;OnEnab2: enablenpc "#BattleGroundwarpA2"; enablenpc "#BattleGroundwarpB2"; return;OnDisa: disablenpc "#BattleGroundwarpA1"; disablenpc "#BattleGroundwarpB1"; disablenpc "#BattleGroundwarpA2"; disablenpc "#BattleGroundwarpB2"; return;OnInit: sleep2 10000; setwall "endless_war",218,87,1,1,0,"BattleGroundwarpA21"; setwall "endless_war",219,87,1,1,0,"BattleGroundwarpA22"; setwall "endless_war",219,86,1,1,0,"BattleGroundwarpA23"; setwall "endless_war",219,85,1,1,0,"BattleGroundwarpA24"; setwall "endless_war",218,85,1,1,0,"BattleGroundwarpA25"; setwall "endless_war",217,85,1,1,0,"BattleGroundwarpA26"; setwall "endless_war",217,86,1,1,0,"BattleGroundwarpA27"; setwall "endless_war",217,87,1,1,0,"BattleGroundwarpA28"; setwall "endless_war",40,87,1,1,0,"BattleGroundwarpB21"; setwall "endless_war",41,87,1,1,0,"BattleGroundwarpB22"; setwall "endless_war",41,86,1,1,0,"BattleGroundwarpB23"; setwall "endless_war",41,85,1,1,0,"BattleGroundwarpB24"; setwall "endless_war",40,85,1,1,0,"BattleGroundwarpB25"; setwall "endless_war",39,85,1,1,0,"BattleGroundwarpB26"; setwall "endless_war",39,86,1,1,0,"BattleGroundwarpB27"; setwall "endless_war",39,87,1,1,0,"BattleGroundwarpB28"; callsub OnEndd; end;OnPCKillEvent: if(strcharinfo(3)=="endless_war" && $@bg_id_a && $@bg_id_ { if(getcharid(4) == $@bg_id_a) { set .point[1],.point[1]+1; }else set .point[2],.point[2]+1; bg_updatescore "endless_war",.point[1],.point[2]; } end;} This is the problem You can click it. Choose Join but after that It will re direct you to Complete. And it will continue to announce the statuses
  3. please help if u can in this new problem http://rathena.org/board/topic/88645-custom-battle-ground-by-goddammit-not-properly-working/
  4. still exist [Error]: script error on npc/custom/MYNPC/CustomBattle.txt line 85 parse_simpleexpr: unexpected character 80 : end; 81 : OnTimer60000: 82 : if(.point[1]>.point[2]) 83 : { 84 : Announce "[Battle Ground]:Team A Win!",0;* 85 : getitem $@bg_id_a,'<'605>,<1>; 86 : }else if(.point[2]>.point[1]) 87 : { 88 : Announce "[Battle Ground]:Team B Win!",0; 89 : getitem $@bg_id_b,<605>,<1>; 90 : }else
  5. Hello can you tell me about this error? [Error]:script error on npc/custom/MYNPC/CustomBattle.txt line 109 parse_simpleexpr: unexpected character 104 : end; 105 : OnTimer190000: 106 : if(.point[1]>.point[2]) 107 : { 108 : Announce "[Battle Ground]:Team A Win!",0;* 109 : getitem $@bg_id_a,'<'item id>,<qty>; 110 : }else if(.point[2]>.point[1]) 111 : { 112 : Announce "[Battle Ground]:Team B Win!",0; 113 : getitem $@bg_id_b,<item id>,<qty>; 114 : }else[Info]: Done loading '14800' NPCs:
  6. karazu

    OnClock command

    Thank you very much. end;OnMinute00:OnMinute30: callsub OnActive; end;OnActive: callsub OnEndd; set .status,1; Announce "[Battle Ground]:Someone active the game! Go to prontera,150,180 and join us!",0; end;OnTimer60000: if(.playernm<=32) {
  7. karazu

    OnClock command

    Is this every 3 hours? OnMinute00: if ( ( gettime(3) % 3 ) == 0 ) // start the event end;
  8. karazu

    OnClock command

    Hello instead of typing on NPC script OnClock0100: OnClock0300: OnClock0500: OnClock0700: OnClock0900: OnClock1100: how to make it shorter that the NPC will just activate every hour or every 30 mins?
  9. No error in the map DB but i cannot click the NPC.
  10. I triend to add it by my self and i got error T_T I hope somebody will help me
  11. Hercules is now WPE FREE that is better than harmony
  12. currently using 2013. and I am satisfied
×
×
  • Create New...

Important Information

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