Jump to content

Erba

Members
  • Posts

    550
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Erba

  1. kindly close this topic.. i just commented all the lines that is with connection with colors.. thank you!
  2. after joining that BG pvp all players job is changed to swordsman sir XD
  3. Help me on this sir and madam [Error]: npc_event: event not found [bg_emp_register::OnRedDead] [Error]: npc_event: event not found [bg_emp_register::OnBlueDead] and how to put a 30mins cooldown in this BG? thanks XD [Error]: skill_unit_move_sub: Reached limit of unit objects per cell!
  4. - script custom_bg#control -1,{ OnInit: set .minplayer2start, 4; // minimum player to start ... please do not set to 1 setarray .rewarditem, 7829, 10, // reward to the winning team 7829, 3; // reward to the losing team set .startingscore, 15; // score at start set .eventlasting, 20*60; // event last 20 minutes or the system abort itself set .red_cloth, 1; // color value from red clothing set .blue_cloth, 2; // color value from blue clothing set .grey_cloth, 3; // color value from grey clothing end; OnStart: if ( getwaitingroomstate( 0, .rednpcname$ ) < .minplayer2start || getwaitingroomstate( 0, .bluenpcname$ ) < .minplayer2start ) end; .red = waitingroom2bg( "guild_vs3", 13,50, strnpcinfo(0)+"::OnredQuit", strnpcinfo(0)+"::OnredDead", .rednpcname$ ); copyarray .team1aid, $@arenamembers, $@arenamembersnum; .team1count = .minplayer2start; .blue = waitingroom2bg( "guild_vs3", 86,50, strnpcinfo(0)+"::OnblueQuit", strnpcinfo(0)+"::OnblueDead", .bluenpcname$ ); copyarray .team2aid, $@arenamembers, $@arenamembersnum; .team2count = .minplayer2start; delwaitingroom .rednpcname$; delwaitingroom .bluenpcname$; bg_warp .red, "guild_vs3", 13,50; bg_warp .blue, "guild_vs3", 86,50; .score[1] = .score[2] =.startingscore; bg_updatescore "guild_vs3", .score[1], .score[2]; callsub L_setleader, 1; callsub L_setleader, 2; for ( .@i = 0; .@i < .minplayer2start; .@i++ ) { attachrid .team1aid[.@i]; @clotes_color = getlook( look_clothes_color ); setlook look_clothes_color, ( .leader_aid[1] == getcharid(3) )? .grey_cloth : .red_cloth; } for ( .@i = 0; .@i < .minplayer2start; .@i++ ) { attachrid .team2aid[.@i]; @clotes_color = getlook( look_clothes_color ); setlook look_clothes_color, ( .leader_aid[2] == getcharid(3) )? .grey_cloth : .blue_cloth; } sleep .eventlasting * 1000; if ( .score[1] > .score[2] ) { mapannounce "guild_vs3", "red side wins !", 0; callsub L_reward, 1, 0; callsub L_reward, 2, 2; } else if ( .score[1] < .score[2] ) { mapannounce "guild_vs3", "blue side wins !", 0; callsub L_reward, 2, 0; callsub L_reward, 1, 2; } else { mapannounce "guild_vs3", "Draw !", 0; callsub L_reward, 1, 2; callsub L_reward, 2, 2; } bg_warp .red, "prontera",152,178; bg_warp .blue, "prontera",154,178; bg_destroy .red; bg_destroy .blue; donpcevent .rednpcname$ +"::OnStart"; donpcevent .bluenpcname$ +"::OnStart"; .leader_aid[1] = .leader_aid[2] = 0; for ( .@i = 0; .@i < .team1count; .@i++ ) { attachrid .team1aid[.@i]; setlook look_clothes_color, @clotes_color; @clotes_color = 0; } for ( .@i = 0; .@i < .team2count; .@i++ ) { attachrid .team2aid[.@i]; setlook look_clothes_color, @clotes_color; @clotes_color = 0; } end; L_reward: for ( .@i = 0; .@i < getd(".team"+ getarg(0) +"count"); .@i++ ) getitem .rewarditem[ getarg(1) ], .rewarditem[ getarg(1) +1 ], getd(".team"+ getarg(0) +"aid["+ .@i +"]" ); return; OnredDead: callsub L_dead, 1; OnblueDead: callsub L_dead, 2; L_dead: if ( .leader_aid[ getarg(0) ] != getcharid(3) ) .score[ getarg(0) ]--; else { callsub L_setleader, getarg(0); .score[ getarg(0) ] -= 2; } bg_updatescore "guild_vs3", .score[1], .score[2]; if ( .score[ getarg(0) ] <= 0 ) awake strnpcinfo(0); sleep2 1250; percentheal 100,100; end; OnredQuit: callsub L_quit, 1, .red; OnblueQuit: callsub L_quit, 2, .blue; L_quit: percentheal 100, 100; while ( getd( ".team"+ getarg(0) +"aid["+ .@i +"]" ) != getcharid(3) && .@i < getd(".team"+ getarg(0) +"count") ) .@i++; deletearray getd( ".team"+ getarg(0) +"aid["+ .@i +"]" ), 1; setd ".team"+ getarg(0) +"count", getd(".team"+ getarg(0) +"count") -1; if ( .leader_aid[ getarg(0) ] == getcharid(3) ) callsub L_setleader, getarg(0); setlook look_clothes_color, @clotes_color; @clotes_color = 0; if ( bg_get_data( getarg(1), 0 ) > 1 ) end; .score[ getarg(0) ] = 0; awake strnpcinfo(0); end; L_setleader: while ( ( .@tmp = getd( ".team"+ getarg(0) +"aid["+ rand( getd(".team"+ getarg(0) +"count") ) +"]" ) ) == playerattached() ); .leader_aid[ getarg(0) ] = .@tmp; .@origin = playerattached(); attachrid .leader_aid[ getarg(0) ]; addtimer 1, strnpcinfo(0) +"::Onteam"+ getarg(0) +"leader"; attachrid .@origin; return; Onteam1leader: callsub L_lead, 1, 548; Onteam2leader: callsub L_lead, 2, 549; L_lead: while ( .leader_aid[ getarg(0) ] == getcharid(3) ) { specialeffect2 getarg(1); sleep2 1000; } end; } prontera,152,178,5 script red side 733,{ end; OnInit: set getvariableofnpc( .rednpcname$, "custom_bg#control" ), strnpcinfo(0); OnStart: waitingroom "Red Team", getvariableofnpc( .minplayer2start, "custom_bg#control" ) +1, "custom_bg#control::OnStart", getvariableofnpc( .minplayer2start, "custom_bg#control" ); end; } prontera,154,178,5 script blue side 734,{ end; OnInit: set getvariableofnpc( .bluenpcname$, "custom_bg#control" ), strnpcinfo(0); OnStart: waitingroom "Blue Team", getvariableofnpc( .minplayer2start, "custom_bg#control" ) +1, "custom_bg#control::OnStart", getvariableofnpc( .minplayer2start, "custom_bg#control" ); end; } guild_vs3 mapflag battleground 2 guild_vs3 mapflag nosave SavePoint guild_vs3 mapflag nowarp guild_vs3 mapflag nowarpto guild_vs3 mapflag noteleport guild_vs3 mapflag nomemo guild_vs3 mapflag nopenalty guild_vs3 mapflag nobranch guild_vs3 mapflag noicewall All Character is transformed in SWORDSMAN.. T_T then there it goes the errors bump needed badly
  5. how to make it to php mail sir?
  6. Help.. having problem with email verification also.. i already enabled POP in my Gmail account and this is my configuration 'RequireEmailConfirm' => true, 'RequireChangeConfirm' => false, 'EmailConfirmExpire' => 48, 'MailerFromAddress' => '[email protected]', 'MailerFromName' => 'KyrosRO', 'MailerUseSMTP' => true, 'MailerSMTPUseSSL' => true, 'MailerSMTPUseTLS' => false, 'MailerSMTPPort' => 465, 'MailerSMTPHosts' => 'ssl://smtp.gmail.com', 'MailerSMTPUsername' => '[email protected]',
  7. thanks but my scripting skills are poor especially when it comes to sql queries XD
  8. How to know if the script you are using is prone to SQL injection? what to look for if sql injection or script hack is in a script? need this questions because my server had undergone serious hacking crisis T_T
  9. okay okay sir.. last question is there an npc script limitation?
  10. i know how to do that @patskie.. im asking i there is a npc script limitation? because as i said in this thread that it doesnt load the newly added script unless i use an existing file
  11. im using r16797 and pre-re trunk/npc/scripts_custom.conf inside it i write it like this npc: npc/custom/MYOWNCUSTOM/SCRIPT.txt but it doesnt load even if i dont have any errors on it..but when i put the scripts inside a working script which looks like [2script in 1 text file] the npc loads
  12. does this still needs the src modification which was made by annie for bg?
  13. actually sir i did put it there.. but the thing is it doesnt load unless i reuse one of the existing text files.. i.e.: i have freebie.txt[working] i tried to add new script which is specialfreebie.txt > this doesnt load.. unless i add the script inside the freebie.txt which will look like 2 custom scripts in 1 text file
  14. Is there an custom npc script limitation? because as i use trunk/npc/custom folder to add custom npc scripts.. 1 of the latest npc script doesnt load but it shows no error but when i use one any of existing text files in the running npc scripts the npc which i am trying to add loads..
  15. i dont get it ? i cant see any full strip be cancelled by fcp
  16. Please help me with my problem with Slow grace skill.. 1. Slow grace affects everyone including the Guild members and party members 2. If the player dies and dies under the effect of slow grace, upon respawn he is still under the slow grace effect.. Problem no.1 is fixed please help me with problem no.2 thank you! bump!! bump!!
  17. i dont know how to modify it .. every time a player is under the strip status , FCP cant cancel Strip
  18. bump.. how to modify the src to make it cancel the strip status when players uses FCP to player who is under Fstrips effect?thanks im using r16797
  19. i need some idea because i am currently using r16797.. what is the most stable rathena version? and the most stable client to use with it?
  20. Erba

    H>HOURLY POINTS

    ill try it for a while.. and report it back if it is working! thank you for the help patskie and lionhardt @bump The script doesnt have any errors but do not give points to players whether he is active or not
  21. Erba

    H>HOURLY POINTS

    - script Hourly Active -1,{ OnUpdate: if( checkvending() == 0 && checkchatting() == 1 ){ set @Minute,@Minute + 1; if( @Minute % 30 == 0 ){ set #CASHPOINTS, #CASHPOINTS + 1; dispbottom "You've been Active for 30 minutes, +1 Cash point(s) in your Balance."; set @Thirty,@Thirty + 1; if( @Thirty == 2 ){ set @hour, @Hour + 1; set @Thirty,0; } if( @Hour % 7 == 0 ){ set #CASHPOINTS, #CASHPOINTS + 10; getitem 14232,4; getitem 25138,10; dispbottom "You've been Actively Online for 7 Hours, +10 Cash point(s) in your Balance."; } } } else if( !checkvending() && checkchatting() == 0 ){ set @aMinute,@aMinute + 1; if( @aMinute % 60 == 0 ){ set #CASHPOINTS, #CASHPOINTS + 2; dispbottom "You've Been AFK for 1 hour, +1 Cash point(s) in your Balance."; set @aHour,@aHour + 1; if( @aHour % 12 == 0 ){ set #CASHPOINTS, #CASHPOINTS + 10; dispbottom "You've Been AFK for 12 hours, +1 Cash point(s) in your Balance."; } } } end; OnPCLoginEvent: addtimer 60000,strnpcinfo(0)+"::OnUpdate"; end; } Sir did i make it right?
  22. Erba

    H>HOURLY POINTS

    - script Hourly Points -1,{ OnUpdate: if( !checkvending() ){ set @Minute,@Minute + 1; if( @Minute % 60 == 0 ){ set #CASHPOINTS, #CASHPOINTS + 1; dispbottom "Online for 1 Hours +1 Cash Points."; set @Hour,@Hour + 1; if( @Hour % 12 == 0 ){ set #CASHPOINTS, #CASHPOINTS + 10; getitem 14232,10; dispbottom "Online for 12 Hours +10 Cash Points and 10pcs of Yggdrasil Berry Box."; } } } OnPCLoginEvent: addtimer 60000,strnpcinfo(0)+"::OnUpdate"; end; } @lionhardt: this one sir but this script doenst work.. still gives vending players.. @patskie: i got this error:
×
×
  • Create New...