Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by Capuche

  1. http://rathena.org/board/topic/74782-make-new-box-like-old-blue-box/?p=158975 or Groupranditem to make a new box
  2. Capuche

    Compiling Error

    Did you make some source mod ? if so, check them or post them. If not make a bug report
  3. On WS you have more chance to refine your weapon depending on your job level. If you want to raise the chance of success change the chance of refine in source folder for WS or raise your job level or edit the db_refine.txt table in db folder
  4. You can use this source mod http://rathena.org/board/topic/80841-bnocoma/?p=191509
  5. To use pre-re instead of renewal status point cost formula replace in pc.c for ( ; low < high; low++ ) #ifdef RENEWAL // renewal status point cost formula sp += (low < 100) ? (2 + (low - 1) / 10) : (16 + 4 * ((low - 100) / 5)); #else sp += ( 1 + (low + 9) / 10 ); #endif by for ( ; low < high; low++ ) sp += ( 1 + (low + 9) / 10 ); and recompile
  6. - script jinonoo -1,{ OnSun0100:// sunday at 01 am pvpon "prontera";// pvpon at prontera sleep 3600000;// 3600 secs of delay pvpoff "prontera";// pvp off end; }
  7. @afk is a custom command. Can you show us the script?
  8. - script ijnoo -1,{ OnWhisperGlobal: deletearray .aid, .size_aid; deletearray .cid, .size_aid; deletearray .name$, .size_aid; .size_aid = 0; .@myaid = playerattached(); addrid(1);// attach all player on your map to the script if ( .size_aid < 128 && playerattached() != .@myaid ) { .aid[ .size_aid ] = playerattached(); .cid[ .size_aid ] = getcharid(0); .name$[ .size_aid ] = strcharinfo(0); .size_aid++; } if ( playerattached() != .@myaid ) end; while( .@i < .size_aid ) { .@menu$ = .@menu$ + .name$[.@i] +":"; .@i++; } mes "Select a player you want to give a reward."; next; .@s = select( .@menu$ ) -1; callsub L_check, .@s; mes "Item id"; input .@atoi_id; if ( getiteminfo( .@atoi_id,0 ) == -1 ) { mes "This item doesn't exist"; close; } mes "amount?"; input .@amount; if ( .@amount < 1 ) { mes "You can't send "+ .@amount +" item."; close; } next; mes "Give a ^ff0000"+ getitemname( .@atoi_id ) +" ("+ .@atoi_id +")^000000 x"+ .@amount +" to "+ .name$[.@s] +" ?"; next; if ( select( "Yes", "No" ) == 2 ) close; callsub L_check, .@s; getitem .@atoi_id, .@amount, .aid[.@s]; mes "The player get the reward."; close; L_check: .@s = getarg(0); if ( !isloggedin( .aid[.@s], .cid[.@s] ) ) { mes "this player is not online."; close; } else if ( !getmapxy( .@map$, .@x, .@y, 0, .name$[.@s] ) && .@map$ != strcharinfo(3) ) { mes "this player is no more on the same map of you."; close; } return; } whisper the npc ijnoo to give a reward to a player on your map
  9. It's better to check if the item id exist and if the amount > 0 also about getitem the values must be integer values A sample - script trial -1,{ OnInit: bindatcmd "test",strnpcinfo(3)+"::OnAtcommand"; end; OnAtcommand: if ( .@atcmd_numparameters != 2 ) { message .@myname$, "Usage: "+ .@atcmd_command$ +" <item id> <amount>"; end; } .atoi_id = atoi( .@atcmd_parameters$[0] ); .atoi_amount = atoi( .@atcmd_parameters$[1] ); .@myname$ = strcharinfo(0); if ( getiteminfo( .atoi_id,0 ) == -1 ) { message .@myname$, "Requesting to send an non-existing item ("+ .atoi_id +"). "+ .@atcmd_command$ +" failed."; end; } else if ( .atoi_amount < 1 ) { message .@myname$, "You can't send "+ .atoi_amount +" item. "+ .@atcmd_command$ +" failed."; end; } addrid(1); getitem .atoi_id, .atoi_amount; end; } getiteminfo + atoi EDIT : fix an error
  10. trunk/npc/custom/jobmaster.txt set .ThirdClass,1; // Enable third classes? (1: yes / 0: no) put to 0 if (Class == Job_Ninja) setarray .@exp[0],.@j1,70; if (.@exp[0] && .ThirdClass) { change to if (Class == Job_Ninja) setarray .@exp[0],.@j1,70; if (Class == Job_Ninja) {
  11. pc.c set the src id of the killer in killerrid, not the class pc_setparam(sd, SP_KILLERRID, src?src->id:0); src is a mob, the id is >= 110000000 src is a player, id >= 2000000 killerrid > 3000000 is a mob if you don't have 1000000 account id, no? 2/ I agree
  12. This script doesn't use sql query to retrieve the rebirth count in the table. It use a character variable to get/save the value. The sql part is optionnal, it allows you to check the name, ip, count etc.. easily if you need. It's Paulinds's request (first post)
  13. If you use sql for mob, you can use a query to retrieve the mob id by script OnPCDieEvent: if( killerrid > 3000000 ) { .@re$ = checkre(0) ? "_re" : "" ; query_sql "select `ID` from `mob_db"+ .@re$ +"` where `kName` = '"+ rid2name( killerrid ) +"'", .@mob_id; } end; it's better by source mod though
  14. Maybe replace next; OnInit: waitingroom "PvP Ladder",0; } break; } } } by next; } break; } } OnInit: waitingroom "PvP Ladder",0; }
  15. num_rebirth (character variable) already count the number of rebirth Is that you mean?
  16. About the Mystical card album, replace getrandgroupitem(IG_MagicCardAlbum),1; by set .@item, groupranditem(IG_MagicCardAlbum); getitem .@item,1; announce "[ Mystical Card Album ]:"+ strcharinfo(0) +" get a "+ getitemname( .@item ),0; like that 12246,Magic_Card_Album,Mystical Card Album,2,10000,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ set .@item, groupranditem(IG_MagicCardAlbum); getitem .@item,1; announce "[ Mystical Card Album ]:"+ strcharinfo(0) +" get a "+ getitemname( .@item ),0; },{},{}
  17. Try the mapflag pvp_noguild
  18. Your mod will return the class of a mob.. I don't get you request. Do you want the class (ie 1002 for poring) or the unique id (gid) of a mob ? OnNPCKillEvent return the class of a mob in killedrid.
  19. if ( num_rebirth < .change_reward ) StatusPoint = StatusPoint + .num_status * num_rebirth; else getItemReward(); replace by if ( num_rebirth < .change_reward ) StatusPoint = StatusPoint + .num_status * num_rebirth; #CASHPOINTS = #CASHPOINTS + 50;
  20. Then add a mapannounce saying Go after the loop.
  21. The bonus on Script type disappear when you unequip an equippable item (an example, you loose the skill you get with Skill command when you unequip the item). So it doesn't
  22. should add a deltimer to avoid multiple instance warp "pvpmap",x,y; + deltimer strnpcinfo(0)+"::OnTimerCheck"; addtimer 30000,strnpcinfo(0)+"::OnTimerCheck";
  23. this? http://rathena.org/board/topic/82366-increase-max-weight/?p=197833
  24. // permanent monster prontera,0,0,0,0 monster Baphomet 1039,1,7200000,600000,"monster_points::OnMobDead1" prontera,0,0,0,0 monster Tao Gunka 1583,1,18000000,600000,"monster_points::OnMobDead2" // etc.. - script monster_points -1,{ OnMobDead1:// bapho .@points = 50; #monster_points = #monster_points + .@points ;// give points to the killer dispbottom "you got "+ .@points +" points. Total: "+ #monster_points +" points.";// display the points end; OnMobDead2:// tao .@points = 20; #monster_points = #monster_points + .@points ; dispbottom "you got "+ .@points +" points. Total: "+ #monster_points +" points."; end; } // etc..
×
×
  • Create New...