Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/12/20 in all areas

  1. 1% per refine { .@r = getRefine(); bonus2 bSkillAtk, "CR_ACIDDEMOSTRATION", .@r; } 1% per 2 refines { .@r = getRefine(); bonus2 bSkillAtk, "CR_ACIDDEMOSTRATION", .@r/2; } if i remember correctly 3/2 in rathena is equal to 1 because it gets the integer value, so on odd number refines it will get a previous bonus. if u going to use the refine number more than one time use a variable ?
    1 point
  2. try this - script war_pay -1,{ OnInit: bindatcmd "warp",strnpcinfo(3)+"::OnWarpCommand"; end; OnWarpCommand: if(.@atcmd_numparameters != 1 && .@atcmd_numparameters != 3){ dispbottom "@warp Failed."; dispbottom "@warp <map_name> <x> <y>"; dispbottom "@warp <map_name>,<x>,<y>"; end; } .@command$ = strtolower(.@atcmd_parameters$[0]); .@x = atoi(.@atcmd_parameters$[1]); .@y = atoi(.@atcmd_parameters$[2]); if(.@atcmd_numparameters == 1){ if(compare(.@command$,",")){ explode(.@info$, .@command$, ","); .@command$ = .@info$[0]; .@x = atoi(.@info$[1]); .@y = atoi(.@info$[2]); } } dispbottom "It cost you 1,000 zeny to warp."; if ( Zeny > 1000 ){ set Zeny, Zeny - 1000; warp .@command$,.@x,.@y; end; } dispbottom "Can't warp you. You don't have zeny."; end; }
    1 point
  3. Look the content in the spoiler in my first post here. There has a solution with an example how to use it... You'll need change the range of rand from '100' to '10000'. Rate (1 = 0.01%, 10 = 0.10%, 100 = 1.00%, 1000 = 10.00%, 10000 = 100.00%) And change the 'if' from: if (.chance >= 1 && .chance <= 5){ To: if (rand(10000) < .chance){ And change the value of variable '.chance' to the rate you want: From: set .chance, rand(100); To: set .chance, 500; // 500 = 5.00%
    1 point
  4. You can only use integer values when creating scripts so you have to adjust your rand() to achieve 0.5% chance if (rand(1000) < 5) means 0.5% if (rand(1000) < 1) means 0.1% if (rand(1000) < 10) means 1%
    1 point
  5. update to latest rathena or see this PR which already merged : https://github.com/rathena/rathena/pull/4919/commits
    1 point
  6. mes "Congratulation! Here is your Reward."; announce strcharinfo(0) + " Finish a quest",bc_all;
    1 point
  7. U should use the command like this: @mute 5 lieon The time is in minutes as far as i know..
    1 point
  8. you can use addrid(0); then cutin the image when the event starts. however. if someone used refresh or teleport. the cutin will just be removed anyway. not a good idea.. although you can use addtimer to prompt the cutin everysecond. but still. not recommended.
    1 point
  9. can someone updated this using pet_db.yml
    1 point
  10. Version 1.0.0

    2020 downloads

    PSD + NPC Daily_Reward_System_EP5 THK Stolao for script http://upaste.me/0c71347644b016213
    Free
    1 point
×
×
  • Create New...