Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. the server itself already take care of saving all the value in the background ....
  2. .@party_id = getcharid(1); getpartymember .@party_id, 1; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "poring_w03" ) set Flower,7; } } detachrid; sleep 5000; warpparty "prontera", 152, 150, .@party_id, "poring_w03"; end;
  3. you might be missing the ".extra" map files too. resave the map using browedit to regenerate this file
  4. remove both line since its not used in the source mod that u created.
  5. @Haziel erm just a small request if you dont mind... I am not sure is it just me having this issue, the encoding for the filename are messed up everytime I download the file. So I have to manually search for each files in original data.grf and rename it to the correct korean language filename. So, my suggestion to fix this would be upload these files as a small GRF file, with korean encoding. GRF Editor > Setting > General > Display Encoding > Korean (949) Thank you.
  6. your error come from npc/pre-re/mobs/fields/prontera.txt make sure the custom new changes you add into the files are in correct format... check all the spacing and tab especially.
  7. if ( !countitem( getd( ".pet"+ .@pet_class[.@s] ) ) ) { you need to use countitem2
  8. - script pvp_point -1,{ OnInit: bindatcmd "pvppoints",strnpcinfo(3)+"::OnAtcommand"; end; OnMinute: if ( gettime(3) % 3 == 0 ) { .pvp_point_rate = 5; } else { .pvp_point_rate = 1; } announce "PVP Point Rate = "+.pvp_point_rate+"x", bc_all; end; OnAtcommand: dispbottom "[ PvP Points ] : Total "+PvPPoints+" Point(s)"; end; OnPCKillEvent: if ( killedrid != getcharid(3) ) { PvPPoints += ( 1 * .pvp_point_rate ); dispbottom "[ PvP Points ] +"+( 1 * .pvp_point_rate )+". Total "+PvPPoints+" Point(s)"; } end; }
  9. prontera,155,181,5 script Random Item 4_F_KAFRA1,{ if ( #COOLDOWN > gettimetick(2) ) { mes "Come back again after 24 hours."; } else { if ( rand(100) < 50 ) { setarray .@item, 501,502,503,504,505; setarray .@amount, 10,20,30,40,50; .@index = rand( getarraysize( .@item ) ); getitem .@item[.@index],.@amount[.@index]; mes "Gained "+.@amount[.@index]+"x "+getitemname( .@item[.@index] )+"."; } else { mes "Failed to get any items."; } #COOLDOWN = gettimetick(2) + ( 24 * 3600 ); } close; } Please clearly describe what you want and how it should work in the first post, and not keep demand for new changes when one already posted a solution prior to your original post request.
  10. I believe your condition checking is wrong. if( strcharinfo(3) != "1@tower") end; else if( strcharinfo(3) != "2@tower") end; else if( strcharinfo(3) != "3@tower") end; else if( strcharinfo(3) != "4@tower") end; else if( strcharinfo(3) != "5@tower") end; your char cant be found acorss all 5 maps at the same time. you can use this if you want to disable it from trigger in endless tower map. if ( !compare( strcharinfo(3), "@tower" ) ) { // bot script }
  11. if I recall correct, you should be able to warp into the instance map as long as you specified the instance map name correctly. Example if the player instance map name is "001@tower", you have to use @warp "001@tower" to warp into the instance map. or use @goto <charname> should be still work.
  12. callsub( L_Link, <SC_Status>, <Required_Jellopy> ); prontera,155,181,5 script sample 4_F_KAFRA1,{ switch ( basejob ) { case Job_Alchemist: callsub( L_Link, 445, 12345 ) break; case Job_Monk: callsub( L_Link, 447, 12345 ); break; case Job_Star_Gladiator: callsub( L_Link, 448, 12345 ); break; case Job_Sage: callsub( L_Link, 449, 12345 ); break; case Job_Crusader: callsub( L_Link, 450, 12345 ); break; case Job_SuperNovice: callsub( L_Link, 451, 12345 ); break; case Job_Knight: callsub( L_Link, 452, 12345 ); break; case Job_Wizard: callsub( L_Link, 453, 12345 ); break; case Job_Priest: callsub( L_Link, 454, 12345 ); break; case Job_Bard: case Job_Dancer: callsub( L_Link, 455, 12345 ); break; case Job_Rogue: callsub( L_Link, 456, 12345 ); break; case Job_Assassin: callsub( L_Link, 457, 12345 ); break; case Job_Blacksmith: callsub( L_Link, 458, 12345 ); break; case Job_Hunter: callsub( L_Link, 460, 12345 ); break; case Job_Soul_Linker: callsub( L_Link, 461, 12345 ); break; default: if ( upper == 1 && baselevel < 70 ) { callsub( L_Link, 494, 12345 ); break; } break; } end; L_Link: .@spirit = getarg( 0,0 ); .@amount = getarg( 1,0 ); if ( .@spirit > 0 ) { if ( .@amount > 0 ) { if ( countitem( 909 ) < .@amount ) return; delitem 909,.@amount; } sc_start4 sc_spirit, 300000, 5, .@spirit,0,0; skilleffect .@spirit, 5; } return; }
  13. something like this ? create hundred/thousand of cutin images and show it in-game ... he use software to convert video into images.
  14. - script atcmd_woe_storage -1,{ OnInit: OnAgitEnd: OnAgitEnd2: OnAgitEnd3: unbindatcmd("storage"); end; OnAgitStart: OnAgitStart2: OnAgitStart3: bindatcmd("storage","woe_storage::OnAtcommand",0,99); end; OnAtcommand: openstorage; end; }
  15. doc/script_commands.txt#L5416-L5427 Example: https://pastebin.com/dZx4Xjw0
  16. add the missing script command setunitdata(). refer the previous post.
  17. Emistry

    Item Setup

    change item type to card type in item_db
  18. change the text encoding .... they are supposed to be in actual korean characters.
  19. duplicate IP check .... or make your item/ TCG into non-transferable item.
  20. mapcache doesnt add any data into it based on the resnametable .... they are both different files =='' what you added to resnametable you need to add into mapcache for it to work....
  21. prontera,155,181,5 script Random Item 4_F_KAFRA1,{ if ( #COOLDOWN > gettimetick(2) ) { mes "Come back again after 24 hours."; } else { if ( rand(100) < 50 ) { .@item = F_Rand( 501,502,503,504,505 ); getitem .@item,1; mes "Gained "+getitemname( .@item )+"."; } else { mes "Failed to get any items."; } #COOLDOWN = gettimetick(2) + ( 24 * 3600 ); } close; }
  22. https://pastebin.com/BFqnbP1q
  23. i think you can try something like this. prontera,155,181,5 script RebirthNPC 4_F_KAFRA1,{ doevent "rebirth_main::OnTalk"; } - script rebirth_main -1,{ OnTalk: if ( BaseLevel < 175 || JobLevel < 60 ) { mes "You need to be level 175/60."; } else { jobchange Job_Novice; resetlvl 1; REBIRTH_COUNT++; } close; OnPCStatCalcEvent: if ( REBIRTH_COUNT ) { bonus2 bExpAddRace, RC_All, ( REBIRTH_COUNT * -2 ); } end; }
×
×
  • Create New...