Jump to content

kalabasa

Members
  • Posts

    371
  • Joined

  • Last visited

Everything posted by kalabasa

  1. Im not expert to these but i think here your problem was on the npc file itself? it says 0 Bytes? meaning its an empty file thats why it wont load.
  2. try to look at this https://github.com/rathena/rathena/pull/5267/commits/f2e69dd079f93fd77e5dc21c93fb72980e76a3b8
  3. got it let me just check if any other will occur
  4. im using this one. by Capuche https://github.com/Atemo/scripts_customs/blob/master/olds_scripts/clean_poring_race.txt // Capuche cleaning Base on the poring race by Zell_ff8, xianz, Neko, for fun prontera,139,184,5 script Poring Race 882,{ if( .access_Prace == 0 ) { mes "[Poring Race Staff]"; mes "Poring Race has ended."; close; } mes "[Poring Race Staff]"; mes "Do you want to participate on Poring Race?"; if( select( "Yes","No" ) -1 ) { next; mes "[Poring Race Staff]"; mes "See you again next time!"; close; } if( .access_Prace == 0 ) { next; mes "[Poring Race Staff]"; mes "..."; mes "..."; mes "Cheater!!~~"; close; } close2; @prace_winner$ = ""; warp "p_track01",52,41; end; // OnInit: OnMinute20: if( gettime(3)%2 ) end; set .access_Prace, 1; announce "Poring Race is now open!",0,0xFFAB54; setnpctimer 100000,"Bidder#prace0"; startnpctimer "Bidder#prace0"; end; OnPraceEnd: set .access_Prace, 0; announce "Poring Race is over!",0,0xFFAB54; end; } p_track01,58,41,3 script Bidder#prace0 877,{ function checkevent; mes "[Bidder]"; if( getstrlen( @prace_winner$ ) ) { mes "You have choose ^00bb00"+ @prace_winner$ +"^000000"; close; } else if ( checkevent() || .start ) { mes "There is a race in progress..."; close; } else if( !getvariableofnpc( .access_Prace,"Poring Race" ) ) { mes "There is no race."; close; } mes "Choose the poring you want to bet:"; mes "It will cost "+ .zeny_req +" Zeny."; [email protected] = select( .menu_$ ); if( [email protected] == 7 ) { next; mes "[Bidder]"; mes "Goodbye."; close; } [email protected]$ = .monst_$[ [email protected] -1 ]; if ( checkevent() ) { next; mes "[Bidder]"; mes "..."; mes "..."; mes "Cheater!!~~"; close; } else if( Zeny < .zeny_req ) { next; mes "[Bidder]"; mes "You don't have enough Zeny."; close; } Zeny -= .zeny_req; @prace_winner$ = [email protected]$; .prace_bidders[ .prace_bets ] = getcharid(3); .prace_bets++; next; mes "[Bidder]"; mes "I have "+ .prace_bets +" bets."; initnpctimer; npctalk "I got "+ strcharinfo(0) +" bet!"; close; OnTimer60000: npctalk "I got "+ .prace_bets +" bets. Anyone else?"; end; OnTimer80000: npctalk "The race will start soon. Last chance."; end; OnTimer90000: stopnpctimer; .start = 1; mapannounce "p_track01","Porings, on your marks...",1,0xFFAB54; sleep 2500; for( [email protected] = 3; [email protected] > 0; [email protected] ) { mapannounce "p_track01","..."+ [email protected] +"...",1,0xFFAB54; sleep 1000; } donpcevent strnpcinfo(0) +"::OnStartRace"; sleep 1000; mapannounce "p_track01","Gooo!!!",1,0xFFAB54; end; OnTimer320000: mapwarp "p_track01","prontera",142,170; donpcevent "Poring Race::OnPraceEnd"; .prace_winner$ = ""; .start = .prace_bets = 0; donpcevent strnpcinfo(0) +"::OnReturnRace"; end; OnStartRace: callsub L_label, "OnRace"; OnStopRace: callsub L_label, "OnStop"; OnReturnRace: callsub L_label, "OnReturn"; L_label: donpcevent "Metaling#prace3::"+ getarg(0); donpcevent "Poring#prace1::"+ getarg(0); donpcevent "Poporing#prace6::"+ getarg(0); donpcevent "Angeling#prace2::"+ getarg(0); donpcevent "Santa Poring#prace5::"+ getarg(0); donpcevent "Deviling#prace4::"+ getarg(0); if( getarg(0) == "OnStop" && .prace_winner$ != "" ) callsub L_WinRace; end; L_WinRace: mapannounce "p_track01", "The winner is "+ .prace_winner$,1,0xFFAB54; donpcevent strnpcinfo(0) +"::OnChequeo"; sleep 3000; donpcevent strnpcinfo(0) +"::OnReturnRace"; sleep 10000; mapwarp "p_track01","prontera",142,170; donpcevent "Poring Race::OnPraceEnd"; .prace_winner$ = ""; .start = .prace_bets = 0; end; OnChequeo: for( [email protected] = 0 ; [email protected] < getarraysize( .prace_bidders ); [email protected]++ ) { if( attachrid( .prace_bidders[[email protected]] ) && getstrlen( @prace_winner$ ) ) { dispbottom "The winner is "+ .prace_winner$ +" and you have bet for "+ @prace_winner$ +"."; if( @prace_winner$ == .prace_winner$ ) { dispbottom "You have won!"; mapannounce "p_track01"," Congratulations! "+ strcharinfo(0) +" has won!",1,0xFFAB54; getitem .item_gained, .item_num_gain; emotion 21,1; } else { dispbottom "You have lost."; emotion 28,1; } @prace_winner$ = ""; } } deletearray .prace_bidders; end; OnInit: .zeny_req = 3500; .item_gained = 7199; .item_num_gain = 2; setarray .monst_$,"Poring","Angeling","Metaling","Deviling","Santa Poring","Poporing","None"; .menu_$ = implode( .monst_$, ":" ); end; function checkevent { 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, "Santa Poring#prace5"; getmapxy [email protected]$, [email protected], [email protected], 1, "Poporing#prace6"; [email protected] = ( [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] ) != 58 * 6; return [email protected]; } } //----------------------------------- // Racer NPC's //----------------------------------- - script pori_race -1,{ OnRace: initnpctimer; end; OnStop: stopnpctimer; end; OnReturn: sleep 1000; while( strnpcinfo(1) != .monst$[ [email protected] ] ) [email protected]++; movenpc strnpcinfo(3), 58, .walk_t[[email protected]]; end; OnTimer1100: getmapxy [email protected]$,[email protected],[email protected],1, strnpcinfo(3); if( rand(100) < .prace_random ) npcwalkto [email protected], [email protected]; [email protected] = rand( .prace_random2 ); if ( [email protected] -1 == 29 ) { while( strnpcinfo(1) != .monst$[ [email protected] ] ) [email protected]++; set getvariableofnpc( .prace_winner$, "Bidder#prace0" ), .monst$[ [email protected] ]; emotion 29; donpcevent "Bidder#prace0::OnStopRace"; end; } stopnpctimer; setnpctimer [email protected]; startnpctimer; end; OnInit: deletearray .walk_t; deletearray .monst$; setarray .walk_t, 38, 36, 34, 32, 30, 28; setarray .monst$, "Poring", "Angeling", "Metaling", "Deviling", "Santa Poring", "Poporing"; .prace_random = 70; .prace_random2 = 600; end; } p_track01,58,38,2 duplicate(pori_race) Poring#prace1 1002 p_track01,58,36,2 duplicate(pori_race) Angeling#prace2 1096 p_track01,58,34,2 duplicate(pori_race) Metaling#prace3 1613 p_track01,58,32,2 duplicate(pori_race) Deviling#prace4 1582 p_track01,58,30,2 duplicate(pori_race) Santa Poring#prace5 1062 p_track01,58,28,2 duplicate(pori_race) Poporing#prace6 1031 p_track01,78,42,0 warp p_track002 1,3,prontera,142,170 p_track01 mapflag nobranch p_track01 mapflag noicewall p_track01 mapflag nomemo p_track01 mapflag noreturn p_track01 mapflag noteleport p_track01 mapflag nowarpto p_track01 mapflag nowarp p_track01 mapflag pvp off p_track01 mapflag nosave NPC would announce the race is open then afterwards it will eventually end at some time. after clicking the bidder i got error from mapserv poring to Poporing error buildin_getmapxy: Player with map id '0' is not found. buildin_getmapxy: Player with nick 'Poring#prace1' is not found.
  5. i followed the guide from here/ https://herc.ws/wiki/Custom_NPC after changing files from npc.hpp you need to recompile jobname.lub [jobtbl.JT_kakashi] = "kakashi", npcidentity.lub JT_kakashi = 10500, Npc.hpp JT_kakashi = 10500, find #define MAX_NPC_CLASS2_END NPC_RANGE3_END change to #define MAX_NPC_CLASS2_END 10900 GRF Side data\sprite\npc\ kakashi.act kakashi.spr finally on script side prontera,143,143,4 script Kakashi 10500,{
  6. Yeah seems perfectly working for me i just want to remove the delay when being hit by monsters and when using skills. the delay will only apply lets say when being hit by players.
  7. i think you can check by using @version in game
  8. i found this and still working https://github.com/cydh/rathena-wiki/blob/master/%40go_delay_when_hit.md can someone remove the delay when being hit by monsters and when after using any kind of skills
  9. not sure with php im i thought you were talking about source modifications(src)
  10. if you made changes to those files and got error while compiling it that will not work
  11. if ( getmonsterinfo( killedrid, MOB_MVPEXP ) ) { getmapxy([email protected]$,[email protected],[email protected],BL_PC); monster [email protected]$,rand([email protected],[email protected]),rand([email protected],[email protected]),"--ja--",1324,1; } // add mvp & mini boss mob id's here setarray [email protected]_list[0], 1312, 1087,1086,1511; also only the monster that is available that are in the array list here i can't figure it out can someone do a quick fix
  12. i added on mysql workbench. no error but it does not work. i have no idea how to put it on src.
  13. do they have the same value? `account_id` int(11) unsigned NOT NULL default '0',
  14. - script guild_announce -1,{ OnWhisperGlobal: [email protected]_id = getcharid(2); if ( getguildmasterid( [email protected]_id ) != getcharid(0) ) end; if ( @accountid_member == 0 ) @total_guild_member = query_sql( "select `account_id`, `char_id` from `guild_member` where `guild_id` = "+ [email protected]_id, @accountid_member, @charid_member ); [email protected]$ = @whispervar0$; [email protected]$ = strcharinfo(0); [email protected] = getcharid(3); while( [email protected] < @total_guild_member ) { if ( isloggedin( @accountid_member[[email protected]], @charid_member[[email protected]] ) ) { attachrid @accountid_member[[email protected]]; announce "[ "+ [email protected]$ +" ]: "+ [email protected]$, bc_self; attachrid [email protected]; } [email protected]++; } }
  15. if (countitem(.vip_item[[email protected]]) > 0) delitem .vip_item[[email protected]],1; vip_time ( .vip_day[[email protected]] * 1440 ); mes .npc$; mes "You are now ^FF0000VIP^000000 for "+.vip_day[[email protected]]+" Day(s)!"; close; this part makes the character vip on whole account.
  16. setarray .Points$[0], "#CASHPOINTS", "Cash Points", "#ACTIVITYPOINTS", "Cash Points"; Yeah, I need mutiple of it. it only read cashpoints when i set. it i need like questitem1 = requires 1cash point,1activity points, etc etc.
  17. prontera,155,180,5 script Random 98,{ mes .npc_name$; mes "Hello, do you want to play ?"; next; if( select( "Play !", "More Informations", "Leave" ) == 3 ) { mes .npc_name$; mes "Bye!~"; close; } else if( @menu == 2 ) { while( getd(".p"+ [email protected] ) ) { mes .npc_name$; mes "Item required: ^FFCC00"+ getitemname( getd(".p"+ [email protected] ) ) +"^000000"; mes "Chance to gain something: ^CC0000"+ getd(".p"+ [email protected] +"[1]" ) +"%^000000"; mes "Possible gains:"; for( [email protected] = 3; [email protected] < getarraysize( getd(".p"+ [email protected] ) ); [email protected] += 3 ) mes "^0000FFx"+ getd(".p"+ [email protected] +"["+ [email protected] +"]" ) +"^000000 "+ getitemname( getd(".p"+ [email protected] +"["+ ([email protected] -1) +"]" ) ) +" (^CC0000"+ getd(".p"+ [email protected] +"["+ ([email protected] +1) +"]" ) +"%^000000)"; [email protected]++; next; } } mes .npc_name$; mes "Which item do you want to use ?"; next; for( [email protected] = 0; getd(".p"+ [email protected] ); [email protected]++ ) if( countitem( getd(".p"+ [email protected] ) ) ) { [email protected] = getarraysize( [email protected]$ ); [email protected]$[ [email protected] ] = getitemname( getd(".p"+ [email protected] ) ); [email protected][ [email protected] ] = [email protected]; } [email protected] = [email protected][ select( implode( [email protected]$, ":" ) ) -1 ]; mes .npc_name$; while (1) { mes "Here we go..."; delitem getd(".p"+ [email protected] ), 1; if( rand(100) > getd(".p"+ [email protected] +"[1]" ) )// lose mes "You got nothing"; else { [email protected] = rand( getd(".totalchance"+ [email protected] ) ); [email protected] = 1; while ( ( [email protected] = [email protected] - getd( ".p"+ [email protected] +"["+ (1+ 3 * [email protected]) +"]" ) ) >= 0 ) [email protected]++; getitem getd( ".p"+ [email protected] +"["+ (1+ 3*[email protected] -2) +"]" ), getd( ".p"+ [email protected] +"["+( 1+3*[email protected] -1 )+"]" ); mes "You got ^FF00CC"+ getd( ".p"+ [email protected] +"["+( 1+3*[email protected] -1 )+"]" ) +" "+ getitemname( getd( ".p"+ [email protected] +"["+ (1+ 3*[email protected] -2) +"]" ) ) +"^000000"; } mes " "; mes "wanna try again ?"; next; if ( select( "Yes", "No" ) == 2 ) close; mes .npc_name$; if ( countitem( getd(".p"+ [email protected] ) ) < 1 ) { mes "it seems you have ran out of "+ getitemname( getd(".p"+ [email protected] ) ); close; } } close; OnInit: // (item ID need) (chance), (reward 1) (number of reward 1) (chance to gain), (reward 2) (number of reward 2) (chance to gain)... setarray .p0, 671,50, 2462,1,20, 1161,1,30, 5394,1,50; // gold coin setarray .p1, 7227,20, 2462,1,10, 2541,1,10, 1161,1,10, 13517,1,70; while ( getd(".p"+ [email protected] ) ) { for( [email protected] = 4; [email protected] < getarraysize( getd(".p"+ [email protected] ) ); [email protected] += 3 ) setd ".totalchance"+ [email protected], getd(".totalchance"+ [email protected] ) + getd(".p"+ [email protected] +"["+ [email protected] +"]" ); [email protected]++; } .npc_name$ = "[ "+ strnpcinfo(1) +"]"; end; } Required Items are Gold Coin (671) and tcg (7227) if none of this on the user inventory gives error [Warning]:script:implode: array length = 0 [Error]: buildin_delitem: failed to delete 1 items(AID=20000000) item_id=671
  18. okay. let me play around thanks
  19. Well i can't tell which is bad. seems good to me. can you recommend then
  20. Yes, it is working. been torturing my self i cant get working on the goldroom i am using https://github.com/deadlybrothers/script/blob/master/goldroom.txt
  21. i search some off gold room timer scripts. they were functioning but there's a little problem the delay's are always applies after the character dies(not sure if also disconnected) i search i deep more (lol) and i see this
  22. i guess those weapons has incorrect weapon sub types ex https://github.com/rathena/rathena/blob/0d8118ceda8b223539be0443a7c5c7e3554832f7/db/pre-re/item_db_equip.yml#L95
×
×
  • Create New...

Important Information

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