Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by Capuche

  1. prontera,150,180,5 script excahnger 56,{ if ( countitem(7828) )// valor getitem 522, countitem(7828); else if ( countitem(7829) )// bravery getitem 522, countitem(7829); end; }
  2. You have an unkwnow pc bonus (I guess it's a wrong typo) Sample : Good one bonus2 bAddRace,RC_DemiHuman,20; Bad one (bAace unknown) - it will throw [Warning]: pc_bonus2: unknown type 0 7 20! (RC_DemiHuman constant = 7) bonus2 bAace,RC_DemiHuman,20;
  3. https://github.com/rathena/rathena/blob/master/src/map/skill.c#L15727 Change the expression
  4. getitemname(getd(".Tier"+ .@e +"["+ .@i +"]")) or getitemname( getelementofarray( getd(".Tier"+ .@e), .@i ) )
  5. Use OnPCDieEvent to get the account id of the player dead + getpartyleader command to check if he is the leader of his party + getpartymember and isloggedin commands to send a message to the members onlines
  6. I think he wants to delete the value in 1 column lol Use update sql command and set the default value (google please)
  7. Use isbegin_quest or checkquest command to check if the player start the quest (read the docs for more infos)
  8. prontera,150,150,5 script jopijip 75,{ setarray .@table$, "zenylog", "picklog"; .@s = select( "truncate zenylog", "truncate picklog" ) -1; query_logsql "truncate table `"+ .@table$[.@s] +"`"; mes "you truncate table "+ .@table$[.@s]; close; }
  9. It's working, you just need to relog or equip something to update yours stats bonus
  10. I made it yesterday, untested. Just to give my version prontera,155,169,5 script rstat 56,{ if ( countitem( 607 ) < .num_req ) { dispbottom "I need "+ .num_req +" "+ getitemname( 607 ) +" to gamble."; end; } else if ( select( "Gamble", "Leave" ) -1 ) end; delitem 607,1; .@r = rand( .min_stat,.max_stat ); if ( .@r < stat_bonus ) { dispbottom "you only get "+ .@r +", your previous bonus were "+ stat_bonus; end; } dispbottom "your new bonus stat are "+ .@r +". Equip something to see your news stats"; stat_bonus = .@r; end; OnPCStatCalcEvent: bonus bAllStats, stat_bonus; end; OnInit: .num_req = 1; // number item 607 required to gamble .min_stat = 1; // min allstats .max_stat = 200; // max end; }
  11. add a duration on the clone
  12. It doesn't work because npcshopdelitem was here to delete the default item in the shop, then npcshopadditem added the cards in the shop. You need to put npcshopdelitem after npcshopadditem .@nb = query_sql( "SELECT `"+ .@item_db$ +"`.`id` FROM `"+ .@item_db$ +"` RIGHT JOIN `"+ .@mob_db$ +"` ON `"+ .@item_db$ +"`.`id` = `"+ .@mob_db$ +"`.`dropcardid` WHERE ~(`MODE`) & 32 AND `type` = 6 AND LEFT( `name_japanese`, 1 ) = '"+ .alphabet$[.@i] +"' GROUP BY `name_japanese` ORDER BY `name_japanese` LIMIT 128;", .@id ); for ( .@j = 0; .@j < .@nb; .@j++ ) npcshopadditem "card_mob#"+ .alphabet$[.@i], .@id[.@j], 1000000; npcshopdelitem "card_mob#"+ .alphabet$[.@i],501,4055,4035,4058; }
  13. Should be fix in 0cdc85cd4de640ad083d9f35a96629a3d0240dce please make a bug report next time
  14. prontera,150,160,5 script clone 74,{ mes "want to clone someone?"; mes "the player to clone must be online"; next; if ( select( "No", "yes" ) == 1 ) close; mes "select a player"; .@total = query_sql( "select name, char_id from `char` where online = 1 order by name asc limit 128", .@name$, .@char_id ); .@s = select( implode( .@name$, ":" ) ) -1; if ( getcharid( 0,.@name$[.@s] ) == 0 ) { mes "this player is not online anymore"; close; } getmapxy .@map$, .@x, .@y, 0; clone .@map$, .@x, .@y,strnpcinfo(0)+"::OnMobDead",.@char_id[.@s]; close; OnMobDead: }
  15. Yes it's possible
  16. This ? https://github.com/rathena/rathena/blob/master/doc/script_commands.txt and the wiki
  17. menu "Yes, I have those SHITS!!",-,"No, I'm starting to gather it"; where is the label for "No, I'm starting to gather it" ?
  18. mes "Available Amount : "+ValueConvert( getd(#DONATIONPOINTS) )+"^000000"; You make thing too hard. To display the value of #DONATIONPOINTS, it's.. well.. mes "Available Amount : "+ #DONATIONPOINTS +"^000000"; Also you miss a step in your script. player input amount you check the input (.@amount == 0) check if the player have the amount of eKoin - you forgot this part etc..
  19. prontera,153,193,6 script Job Master 123,{ function Job_Menu; function A_An; mes "[Job Master]"; if (Class > Job_Thief) { mes "No more jobs are available."; close; } set .cost_2nd, 150000; // cost to pass 2nd job set to 200000
  20. Maybe because of this issue? https://github.com/rathena/rathena/commit/0544f8fde8c2ae1b57fccf2c392ec931a7d2ad15 Update your version
  21. https://github.com/rathena/rathena/blob/master/conf/battle/misc.conf#L12 use mapflag town
  22. bonus2 ..., 0, 30; ... is an unknown type, like in your warning. It could be a custom bonus you made, a wrong typo..
  23. Nb. you have an unknown bonus, like Warning]: pc_bonus2: unknown type 0 0 30! ---> bonus2 bMyCustombonus, 0, 30;
  24. You mean.. ONLY a novice can use the job changer maybe ? if (Class > 0) {
×
×
  • Create New...