Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by Capuche

  1. There is none npc named bg_emp_register in this topic, your problem is not related to this script. Please open a new topic in script support thanks.
  2. Yeah when it starts, it kills the previous mushroom of the previous event.
  3. Add a sleep after OnInit in invek,125,211,5 script Red Team 733,{ end; OnInit: sleep 50;// add this and invek,132,208,3 script Blue Team 734,{ end; OnInit:
  4. Your event start every hour at :30, when it starts it kills all the mushrooms.
  5. Update your server. Addrid command is added in 6572a9f.
  6. replace OnMinute30: // Start time (every hour) if (.Status) end; set .Status,1; set .Spawn,rand(1,5); // How many Mushrooms should spawn? set .Map$,.Maps$[rand(getarraysize(.Maps$))]; killmonster .Map$,"All"; by OnMinute30: // Start time (every hour) killmonster .Map$,strnpcinfo(0)+"::OnMobKilled"; set .Status,1; set .Spawn,rand(1,5); // How many Mushrooms should spawn? set .Map$,.Maps$[rand(getarraysize(.Maps$))];
  7. - : means remove the line + : means add the line Search the line if ( getwaitingroomstate( 0, .rednpcname$ ) < .minplayer2start || getwaitingroomstate( 0, .bluenpcname$ ) < .minplayer2start ) end; etc..
  8. ...{ bonus bUnbreakableHelm,0; if (getequipisequiped(EQI_COSTUME_HEAD_LOW) && getequipisequiped(EQI_COSTUME_HEAD_MID) && getequipisequiped(EQI_COSTUME_HEAD_TOP) && @wear == 0 ) { bonus bAllStats,1; set @wear,1; } },{},{ set @wear,0; } This one should work (it's working on my test server)
  9. - script allwoecashrewards -1,{ OnAgitEnd: setarray .@castle_map$, "prtg_cas01", "prtg_cas02", "prtg_cas03", "prtg_cas04", "prtg_cas05","aldeg_cas05", "payg_cas04", "gefg_cas02", "aldeg_cas02";// your castle map .@size = getarraysize( .@castle_map$ ); while( .@j < .@size ) { .@guild_id = getcastledata( .@castle_map$[.@j],1 ); if ( .@guild_id ) { .@count = query_sql( "select account_id from guild_member where guild_id = "+ .@guild_id +" and online = 1", .@account_id ); for ( .@i = 0; .@i < .@count; .@i++ ) { if ( attachrid .@account_id[.@i] ) #CASHPOINTS += 30; } query_sql "INSERT INTO `global_reg_value` (`char_id`, `str`, `value`, `type`, `account_id`) select '0', '#CASHPOINTS', '30', '2', `guild_member`.`account_id` from `guild_member` where guild_id = "+ .@guild_id +" and online = 0 on duplicate key update `value` = `value` +30"; } .@j++; } end; } there was an error with insert into too Also this script give a reward for each member in the guild regardless their account/ip... I should rewrite it
  10. Replace killmonster .Map$,"All"; by killmonster .Map$,strnpcinfo(0)+"::OnMobKilled";
  11. https://github.com/rathena/rathena/blob/master/npc/custom/jobmaster.txt not to 0, 1 is the min base level
  12. - if ( getwaitingroomstate( 0, .rednpcname$ ) < .minplayer2start || getwaitingroomstate( 0, .bluenpcname$ ) < .minplayer2start ) end; + if ( getwaitingroomstate( 0, .rednpcname$ ) < .minplayer2start || getwaitingroomstate( 0, .bluenpcname$ ) < .minplayer2start ) { + announce "Blue Team : "+ getwaitingroomstate( 0, .bluenpcname$ ) + "/" + .minplayer2start + ". Red Team : "+ getwaitingroomstate( 0, .rednpcname$ ) + "/" + .minplayer2start,0; + end; + }
  13. Put the check in on_script part - it seems the command check the equipment before the server make the equipment equipped. ...,{ if (getequipisequiped(EQI_COSTUME_HEAD_LOW) && getequipisequiped(EQI_COSTUME_HEAD_MID) && getequipisequiped(EQI_COSTUME_HEAD_TOP) ) { bonus bAllStats,1; set @wear,1; } },{},{ set @wear,0; }
  14. - script Sample -1,{ OnPCLoginEvent: if ( !getgmlevel() && compare(strcharinfo(0), "GM ") ) { if ( getd( ".account_"+ getcharid(3) ) )// 2nd log -> ban atcommand "@ban " + strcharinfo(0); else { setd ".account_"+ getcharid(3), 1; mes "You can't use GM in your name."; sleep2 3000; atcommand "@kick " +strcharinfo(0); } } end; }
  15. Just enable the mapflag snow. <map name> mapflag snow
  16. As far as I know, gravity doesn't use auction system anymore. This system is not maintained. Off topic : about your error in your multinpc.txt, replace next: by next;
  17. or if ( substr( strcharinfo(0),0,2 ) == "PRE" ) or if ( strpos( strcharinfo(0),"PRE",0 ) == 0 ) to check the 3 first letters
  18. The script try to disable a npc named Mr. Banker, your npc's name is Mr.Banker (no space)...
  19. You can use clone script command. By default an evil clone will use all the skills (or only the skills of the player, I don't remember) allowed by the mapflags. Some sample of script http://rathena.org/board/topic/85425-can-anyone-help-me/?p=212624
  20. if( .event_timer%8 ) end; //<--- im not sure of this part, first it kills the mvps that were not killed on the last event .event_timer++;//then if 8 hours transcurred after OnMinute00: the event will start ? because i see a end; there .event_timer doesn't increase above 1 .event_timer value is 0 --> .event_timer%8 : rest 0 --> .event_timer increase .event_timer value is 1 --> .event_timer%8 : rest 1 --> condition true, stop the script I suggest to delete this 2 lines and replace OnMinute00: by OnHour00: OnHour08: //etc.. No it won't, the emu only start one event attached to the monster (OnNPCKillEvent by default). In your script killing a monster will only trigger OnKilled event.
  21. ..in C not in script npc, and it's about script npc here prontera,150,182,5 script jiknju 56,{ .@b = 1; .@a = .@b++;// set b before a dispbottom .@a +": is a"; dispbottom .@b +": is b"; end; }
  22. You should make a post in the bug tracker http://rathena.org/board/tracker/
×
×
  • Create New...