Jump to content

Patskie

Forum Moderator
  • Content Count

    1,624
  • Avg. Content Per Day

    1
  • Joined

  • Last visited

  • Days Won

    8

Patskie last won the day on April 25

Patskie had the most liked content!

Community Reputation

195 Excellent

About Patskie

  • Rank
    superpatskie
  • Birthday 09/22/1993

Profile Information

  • Gender
    Male
  • Location
    Philippines

Contact Methods

  • Discord
    superpatskie#0110

Recent Profile Visitors

107,424 profile views
  1. Inside your RO folder go a git pull and then re-compile your server
  2. You can check this out https://raw.githubusercontent.com/rathena/rathena/master/doc/whisper_sys.txt
  3. The function i created will loop over each character of the string and check if that character is a letter or a number. If there is a number then always return 1 else 0. You can return anything from a function you can leave it empty as well for any reason. I just use 0 and 1 because any !var means 0 and var means something else.
  4. Change this From && (drop_rate <= sd->state.autoloot || pc_isautolooting(sd, ditem->item_data.nameid)) To && (drop_rate >= sd->state.autoloot || pc_isautolooting(sd, ditem->item_data.nameid))
  5. Add mo yung custom map mo dito https://github.com/rathena/rathena/blob/master/npc/mapflag/town.txt
  6. prontera,150,150,6 script Sample 112,{ do { input [email protected]$; } while (callfunc("ValidateInput", [email protected]$)); mes "You pick " + [email protected]$; close; } function script ValidateInput { [email protected]$ = getarg(0, ""); [email protected] = getstrlen([email protected]$); for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) { if (charat([email protected]$, [email protected]) != " ") { if (!charisalpha([email protected]$, [email protected])) return 1; } } return 0; }
  7. Please see this link as a starting point and welcome to rAthena! https://github.com/rathena/rathena/wiki/Adding-a-Script
  8. Try below prontera,150,150,6 script Zeny Roulette 4_F_KAFRA1,{ function Roll; cutin "1s_1", 3; mes .npc$; mes "Hi " + strcharinfo(0) + ", So do you want to play zeny roulette?"; next; if (select("~ Yes:~ No") & 2) { mes .npc$; mes "Alright!"; close2; cutin "", 255; end; } mes .npc$; mes "Let's go!"; next; @level = 1; while(1) { switch(select("~ Play:~ Exit")) { case 1: [email protected]$ = Roll(@level); if ([email protected]$ == "NZ") { mes .npc$; mes "You need " + callfunc("F_InsertComma", .zeny_amt_need) + " in order to participate in the roulette."; [email protected] = 1; break; } if ([email protected]$ == "NA") { mes .npc$; mes "Seems not your lucky day " + strcharinfo(0); if (@level > 1) @level--; next; break; } [email protected] = inarray(.item_cutin$, [email protected]$); mes .npc$; mes "Congratulations! You won ^FF8000" + getitemname(.item_reward[[email protected]]) + "^000000!"; getitem .item_reward[[email protected]], 1; specialeffect 10; // Jackpot if ([email protected]$ == "7s_2") { announce strcharinfo(0) + " just won the jackpot prize " + getitemname(.item_reward[[email protected]]) + " at Zeny Roulette, get yours now!", 0; @level = 1; [email protected] = 1; break; } @level++; next; break; case 2: default: [email protected] = 1; break; } if ([email protected]) { [email protected] = 0; break; } } close2; cutin "", 255; end; function Roll { if (.zeny_required && .zeny_amt_need > Zeny) return "NZ"; Zeny -= .zeny_amt_need; [email protected] = getarg(0, 1); while(1) { [email protected] = 0; for ([email protected] = 1; [email protected] <= (10 - [email protected]); [email protected]++) { cutin [email protected] + "s_" + [email protected], 3; if (5 > rand(100)) { [email protected] = 1; [email protected]_cutin$ = [email protected] + "s_" + [email protected]; if ([email protected] == 1 || [email protected] == (10 - [email protected])) [email protected]_cutin$ = "NA"; break; } sleep2 100; } if ([email protected]) break; } return [email protected]_cutin$; } OnInit: .npc$ = "[^808080 " + strnpcinfo(1) + " ^000000]"; .zeny_required = 1; // 1 = yes / 0 = no .zeny_amt_need = 100000; // zeny amount needed setarray .item_cutin$[0], "1s_2", "1s_3", "1s_4", "1s_5", "1s_6", "1s_7", "1s_8", "2s_2", "2s_3", "2s_4", "2s_5", "2s_6", "2s_7", "3s_2", "3s_3", "3s_4", "3s_5", "3s_6", "4s_2", "4s_3", "4s_4", "4s_5", "5s_2", "5s_3", "5s_4", "6s_2", "6s_3", "7s_2"; setarray .item_reward[0], 501, 502, 503, 504, 505, 506, 507, 501, 502, 503, 504, 505, 506, 507, 501, 502, 503, 504, 505, 506, 507, 501, 502, 503, 504, 505, 506, 507; end; } You have to set the rewards properly setarray .item_cutin$[0], "1s_2", "1s_3", "1s_4", "1s_5", "1s_6", "1s_7", "1s_8", "2s_2", "2s_3", "2s_4", "2s_5", "2s_6", "2s_7", "3s_2", "3s_3", "3s_4", "3s_5", "3s_6", "4s_2", "4s_3", "4s_4", "4s_5", "5s_2", "5s_3", "5s_4", "6s_2", "6s_3", "7s_2"; setarray .item_reward[0], 501, 502, 503, 504, 505, 506, 507, 501, 502, 503, 504, 505, 506, 507, 501, 502, 503, 504, 505, 506, 507, 501, 502, 503, 504, 505, 506, 507;
  9. Comment this line and recompile your server
  10. I can see a good result in 1 search https://rathena.org/board/topic/95035-valkyrie-helm/
  11. If you have players already connected to the game then probably above warning goes in because people are trying to connect on your server with a different client (not the one you provided from the downloads).
  12. brasilis,253,355,5 script Deletador de personagem NÃO FALE 811,{ OnPCDieEvent: message strcharinfo(0),"Game Over"; atcommand "@dropall 0"+strcharinfo(0); addtimer 60000, strnpcinfo(3) + "::OnCharDelete"; end; OnCharDelete: if (Hp) end; set [email protected],getcharid(0); set [email protected], getarraysize( .char_delete$ ); for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) { query_sql("DELETE FROM `"+ .char_delete$[[email protected]] +"` WHERE `char_id` = '"+ [email protected] +"'"); } query_sql "DELETE FROM `party` WHERE `leader_char` = '"[email protected]+"'"; end; OnInit: setarray .char_delete$[0],"bonus_script","char","storage","cart_inventory","elemental","friends","char_reg_str","char_reg_num","guild","guild_member","homunculus","hotkey","inventory","memo","mercenary","mercenary_owner","pet","quest","sc_data","skill","skillcooldown"; end; This will delete the character after 1 minute when they die. But they can bypass the timer if they logout
×
×
  • Create New...

Important Information

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