-
Posts
763 -
Joined
-
Last visited
-
Days Won
20
crazyarashi last won the day on January 20
crazyarashi had the most liked content!
About crazyarashi

Profile Information
-
Location
Nagoya
-
Server
Rathena
- Github: crazy-arashi
- Discord: crazyarashi#3854
Mood
- Currently Feeling Ill
crazyarashi's Achievements
-
unexpected type for argrument 1 expected string . PVP script
crazyarashi replied to Takuyakii's question in Scripting Support
//This lines if (.msg_die) message [email protected], "You have been killed by "+ [email protected]$; if (.msg_kill) message [email protected], "You just killed "+ [email protected]$; to if (.msg_die) message [email protected]$, "You have been killed by "+ [email protected]$; if (.msg_kill) message [email protected]$, "You just killed "+ [email protected]$; -
[ON] and [OFF] using switch(select
crazyarashi replied to Gidz Cross's question in Scripting Support
switch(select("MENU 1","MENU 2",(case == 1 ? "ON" : "OFF"))){ case 1: //CODE case 2: //CODE case 3: case = (case == 1 ? 0 : 1); } Use ternary operator -
//callfunc("RENAME_ME",501,50,30,502,5,20,503,10,30); //ITEM ID, AMOUNT, WEIGHT function script RENAME_ME { for([email protected] = 0; [email protected] < getargcount(); [email protected] += 3){ [email protected][[email protected]/3] = getarg([email protected]); [email protected][[email protected]/3] = getarg([email protected]+1); [email protected] += getarg([email protected]+2); for([email protected] = 0; [email protected] < getarg([email protected]+2); [email protected]++) [email protected][getarraysize([email protected])] = getarg([email protected]); } [email protected] = [email protected][rand([email protected])]; getitem [email protected],[email protected][inarray([email protected],[email protected])]; return; }
-
Crazyarashi Script Collection [3/13/2021]
crazyarashi replied to crazyarashi's topic in Script Collections
There seems to be people around here capitalizing over my scripts, do not be a victim of those people. March 13, 2021 Update : Added 17.1 Illusion - Custom -
payon,139,226,5 script Potion Converter 749,{ for([email protected] = 0; [email protected] < .size; [email protected] += 5) [email protected]$ += .trade[[email protected]+1] + " x " + getitemname(.trade[[email protected]]) + " for " + .trade[[email protected]+3] + " x " + getitemname(.trade[[email protected]+2]) + ":"; [email protected] = (select([email protected]$) - 1) * 5; [email protected] = countitem(.trade[[email protected]]) / .trade[[email protected]+1]; mes "Max Amount available for trade : " + [email protected]; next; input [email protected]; [email protected] = min([email protected],[email protected]); if([email protected] > [email protected] || [email protected] == 0){ mes "Amount cannot be 0 or greater than the max tradeable amount."; end; } mes "You have selected " + .trade[[email protected]+1] + " x " + getitemname(.trade[[email protected]]) + " for " + .trade[[email protected]+3] + " x " + getitemname(.trade[[email protected]+2]) + "?"; mes "This has " + .trade[[email protected]+4] + "% success rate."; mes "Amount : " + [email protected]; mes "Note: everything you trade will be character bound potion."; next; if(select("Cancel:Trade") == 1) end; [email protected] = countitem(.trade[[email protected]+1]) * [email protected]; if(countitem(.trade[[email protected]]) < [email protected]){ mes "You don't have enough item for trade."; end; } delitem .trade[[email protected]],.trade[[email protected]+1] * [email protected]; for([email protected] = 0; [email protected] < [email protected]; [email protected]++){ if(.trade[[email protected]+4] < rand(1,100)) continue; [email protected]++; } mes "Successfully converted amount : " + [email protected]; getitem .trade[[email protected]+2],[email protected] * .trade[[email protected]+3]; end; OnInit: // < ITEM FOR TRADE >, < AMOUNT >, < ITEM TRADED >, < AMOUNT >, < SUCCESS RATE >.. setarray .trade, 11503,2,32018,1,100; .size = getarraysize(.trade); end; }
-
OnInit: // 1 = item reward // 2 = variable/cashpoints reward // If you want to set item and variable/cashpoints rewards, do 1|2. // If you only want 1, just choose between 1 or 2 $event_options = 1|2; setarray $event_item_reward, 501, 10, 502, 5; setarray $event_var$,"EVENTVARIABLE1","EVENTVARIABLE2"; setarray $event_var_name$,"Custom Points 1","EVENT VARIABLE2"; setarray $event_var_gain,1,3; $event_item_arr = getarraysize($event_item_reward); if ( $event_options&1 ) { for ( [email protected] = 0; [email protected] < $event_item_arr; [email protected] += 2 ) getitem $event_item_reward[[email protected]], $event_item_reward[[email protected]+1]; } if ( $event_options&2 ) { for([email protected] = 0; [email protected] < getarraysize($event_var$); [email protected]++){ [email protected] = getd("#" + $event_var$[[email protected]]) + $event_var_gain[[email protected]]; setd getd("#" + $event_var$[[email protected]]),[email protected]; dispbottom "You gained "+$event_var_gain[[email protected]]+" "+$event_var_name$[[email protected]]+". You now have "+getd("#" + $event_var$[[email protected]])+" "+$event_var_name$[[email protected]]+"."; }
-
- script npc_example -1,{ OnCommand: //Add event on the start of your npc mes "I'm the Example."; end; OnInit: bindatcmd "npc1",strnpcinfo(3) + "::OnCommand"; end; }
-
Changed it. Thanks Akkarin ^^
-
View File Compendium Compendium - A levelable battle pass inspired majority of games out there. Feature : Easy customizable settings. Three types of selectable daily quest. Daily quest requirements are randomized. Daily quest count resets everyday. Compendium resets on the first day of the month. Rewards are sent via mail. '@compendium' command to access the compendium Settings : Adding a reward on the compendium Rewards : "Level | Reward ID, Amount, Reward ID, Amount,... ==| Level order doesn't matter but 'duplicates' will bug out the script. setarray .compendium_reward$, "1|501:10,502:20", "10|501:20,502:30", "5|501:100,502:500"; Adding a monster/item/mvp to hunt or collect Just add the ID on the following line. setarray .mvp_list setarray .hunt_list setarray .gather_list Changing EXP given on the quest types. .gathering_exp = 50; .hunt_exp = 50; .mvp_hunt_exp = 100; Submitter crazyarashi Submitted 12/09/2020 Category Utilities Video Content Author crazyarashi
-
Version 1.1.0
489 downloads
Compendium - A levelable battle pass inspired majority of games out there. Feature : Easy customizable settings. Three types of selectable daily quest. Daily quest requirements are randomized. Daily quest count resets everyday. Compendium resets on the first day of the month. Rewards are sent via mail. '@compendium' command to access the compendium Settings : Adding a reward on the compendium Rewards : "Level | Reward ID, Amount, Reward ID, Amount,... ==| Level order doesn't matter but 'duplicates' will bug out the script. setarray .compendium_reward$, "1|501:10,502:20", "10|501:20,502:30", "5|501:100,502:500"; Adding a monster/item/mvp to hunt or collect Just add the ID on the following line. setarray .mvp_list setarray .hunt_list setarray .gather_list Changing EXP given on the quest types. .gathering_exp = 50; .hunt_exp = 50; .mvp_hunt_exp = 100;Free -
View File Equipment Recycle NPC A recycle NPC that uses the shop interface. Changing the rewards .reward_id = 501; .reward_point$ = "#KAFRAPOINT"; Adding a recyclable equipment. /* *=============================================================================| * [email protected] = Refine | [email protected] = Bonus =| * list_add("<Equip ID>,<Value>{,<Starting [email protected] for [email protected]>,[email protected]:[email protected]:[email protected]:..."); =| *=============================================================================| * Cotton_Shirt w/ +8 Starting [email protected] bonus =| * [email protected] = 8 : 1 Bonus Item/Point =| * [email protected] = 9 : 5 Bonus Item/Point =| * [email protected] >= 10 : 7 Bonus Item/Point. =| *=============================================================================| * list_add(2301,8,"1:5:7"); =| ==============================================================================| */ function list_create { //= Remove samples and add here. list_add(2301,10,8,"1:5:7"); //Cotton_Shirt list_add(1201,10,7,"1:2:3:4:5"); //Knife list_add(2504,5); //Muffler_ return; } Submitter crazyarashi Submitted 12/07/2020 Category Utilities Video Content Author crazyarashi
-
Version 1.1.0
440 downloads
A recycle NPC that uses the shop interface. Changing the rewards .reward_id = 501; .reward_point$ = "#KAFRAPOINT"; Adding a recyclable equipment. /* *=============================================================================| * [email protected] = Refine | [email protected] = Bonus =| * list_add("<Equip ID>,<Value>{,<Starting [email protected] for [email protected]>,[email protected]:[email protected]:[email protected]:..."); =| *=============================================================================| * Cotton_Shirt w/ +8 Starting [email protected] bonus =| * [email protected] = 8 : 1 Bonus Item/Point =| * [email protected] = 9 : 5 Bonus Item/Point =| * [email protected] >= 10 : 7 Bonus Item/Point. =| *=============================================================================| * list_add(2301,8,"1:5:7"); =| ==============================================================================| */ function list_create { //= Remove samples and add here. list_add(2301,10,8,"1:5:7"); //Cotton_Shirt list_add(1201,10,7,"1:2:3:4:5"); //Knife list_add(2504,5); //Muffler_ return; }Free -
Looking for an Invasion Scriptwith mob selection
crazyarashi replied to Rivers's question in Script Requests
- script invasion -1,{ OnInit: setarray .map$,"prontera","izlude"; function add_set; function create_set; create_set(); end; OnMinute00: function start_set; start_set(); end; OnMobDead: if(!mobcount(.current_map$,strnpcinfo(0) + "::OnMobDead")){ OnTimer900000: function end_set; end_set(); } end; //= Add your new set here. function create_set { //= add_set("Mob ID:Mob Amount{:Min amount:Max amount},....."); If min/max amount is added mob amount will be ignored. add_set("1001:50,1002:20:70:100"); add_set("1005:50:10:20,1001:20"); } function add_set { .set$[getarraysize(.set$)] = getarg(0); return; } function start_set { .current_map$ = .map$[rand(getarraysize(.map$))]; killmonster .current_map$,strnpcinfo(0) + "::OnMobDead"; explode([email protected]$,.set$[rand(getarraysize(.set$))],","); for([email protected] = 0; [email protected] < getarraysize([email protected]$); [email protected]++){ explode([email protected]$,[email protected]$[[email protected]],":"); if(getarraysize([email protected]$) > 2){ if(atoi([email protected]$[3]) == 0) [email protected] = atoi([email protected]$[1]); else [email protected] = rand(atoi([email protected]$[2]),atoi([email protected]$[3])); } else [email protected] = atoi([email protected]$[1]); monster .current_map$,0,0,"--ja--",atoi([email protected]$[0]),[email protected],strnpcinfo(0) + "::OnMobDead"; deletearray [email protected]$[0],getarraysize([email protected]$); } announce "Invasion : Invasion has started in " + .current_map$ + ".",bc_blue; initnpctimer; end; } function end_set { announce "Invasion : All monster has been killed.",bc_blue; killmonster .current_map$,strnpcinfo(0) + "::OnMobDead"; end; } } -
View File Instance @cd/@cooldown Command A simple command for managing instance cooldowns or any other quest that you feel like adding. Adding new quest/instance should be simple enough for everyone. Submitter crazyarashi Submitted 12/06/2020 Category Utilities Video Content Author crazyarashi
- 1 reply
-
- 1
-
-