behemothcze

Members
  • Content Count

    49
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

Community Reputation

0 Neutral

About behemothcze

  • Rank
    Drops

Profile Information

  • Gender
    Male
  • Location
    manila
  • Server
    Beta

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. behemothcze

    New Loki

    Grand Opening March 29,2019
  2. i tried this one but its only working on first enchant and reset enchant is not working anyone can fix this thanks
  3. i try the official but it needs 2018 packetver. #ifndef PACKETVER /// Do NOT edit this line! To set your client version, please do this instead: /// In Windows: Add this line in your src\custom\defines_pre.hpp file: #define PACKETVER YYYYMMDD /// In Linux: The same as above or run the following command: ./configure --enable-packetver=YYYYMMDD #define PACKETVER 20170614 #endif #ifndef PACKETVER_RE /// From this point on only kRO RE clients are supported #if PACKETVER > 20151104 #define PACKETVER_RE #endif i use @Stolao daily rewards and try to mod the script but it became a mess xD //===== EinherjarRO Scripts ================================== //= Requested //===== By: ================================================== //= Stolao //===== Current Version: ===================================== //= 2.1C //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= A reward system for players who play more frequently //===== Todo ================================================= //= Make Logging out then it continue count //===== Additional Comments: ================================= //= 2.00 Origional Make //= 2.01 Fixed Logic Bug //= 2.02 Fixed Year Multiplier //= 2.03 Added an IP check //= 2.04 Split Rewards up //= 2.05 Move ip check to Daily reward collection //= 2.06 Added ability to see next day via commands/relogging //= 2.07 Added Delay //= 2.08 Moved Delay to none VIP only //= 2.09 Removed some useless lines //= 2.0A Removed Menus due to bugs //= 2.0B Fixed VIP Cutin //= 2.0C Added it showing previos day cutin //= 2.0D Added a for loop //= 2.0E Fixed Ramined logged in time calculation (visual bug) //= 2.0F Added a F_InsertPlural to "more minute" //= 2.10 Added a Mac Check //= 2.11 Changed the IP check to [Sader1992] version //= 2.12 Enable Bound Type //= 2.13 Added 'collectreward', 'dailyreward', 'collectdaily' Commands //= 2.14 Added 'nextreward' Command //= 2.15 Added Daily Buffs //= 2.16 Added Exp Rewards //= 2.17 Removed Reards for Autotraders //= 2.18 Move Buffs to Daily so VIP wont trigger twice //= 2.19 Optimized Slightly //= 2.1A Fixed a bug with VIP getting bonus rewards in normal rewards //= 2.1B Fixed some documentaion //= 2.1C Fixed extra '[' //===== Contact Info: ======================================== //= [Stolao] //= Email: [email protected] //============================================================ - script LOGIN 111,{ OnPCLoginEvent: if([email protected]) @logintime = gettime(DT_YEAR) * 60 * 24 * 365 + gettime(DT_DAYOFYEAR) * 60 * 24 + gettime(DT_HOUR) * 60 + gettime(DT_MINUTE); OnLoginCmnd: [email protected] = gettime(DT_YEAR) * 12 * 31 + gettime(DT_MONTH) * 31 + gettime(DT_DAYOFMONTH); if(.Reset && [email protected] > #LastDailyReward + 1) #DRewardCon = 0; if(.Reset && [email protected] > #LastVIPReward + 1) #VIPRewardCon = 0; [email protected] = getarraysize(.VIPRewards$); [email protected] = getarraysize(.Rewards$); if(#DRewardCon >= [email protected] && #VIPRewardCon >= [email protected]){ #LastDailyReward = [email protected]; #LastVIPReward = [email protected]; end; } sleep2 1000; for([email protected] = 0; [email protected] < 2; [email protected]++){ if([email protected]){ if(!vip_status(VIP_STATUS_ACTIVE) && .VIPRewards$[#VIPRewardCon + 1] != ""){ //message strcharinfo(0),"[Daily Rewards]: Become a VIP for more rewards."; continue; } else if(#VIPRewardCon >= [email protected]){ message strcharinfo(0),"[Daily Rewards]: No more VIP rewards remaining this month."; continue; } else if([email protected] <= #LastVIPReward){ message strcharinfo(0),"[Daily Rewards]: VIP Rewards already collected today"; continue; } } else { if(#DRewardCon >= [email protected]){ message strcharinfo(0),"[Daily Rewards]: No more rewards remaining this month."; continue; } else if([email protected] <= #LastDailyReward){ message strcharinfo(0),"[Daily Rewards]: Rewards already collected today."; continue; } } if([email protected]) explode([email protected]$,.VIPRewards$[#VIPRewardCon + 1],","); else { if(.IPCheck){ query_sql("SELECT account_id FROM `login` WHERE last_ip = '"+getcharip()+"'", [email protected]); [email protected] = getarraysize([email protected]); for([email protected]=0; [email protected] < [email protected]; [email protected]++){ query_sql("SELECT `value` FROM `acc_reg_num` WHERE `account_id` = '"[email protected][[email protected]]+"' AND `key` = '#LastDailyReward'",[email protected]); if([email protected] <= [email protected]){ message strcharinfo(0),"[Daily Rewards]: Rewards are limited to 1 per IP sorry."; continue; } } } if(.MacCheck){ query_sql("SELECT last_unique_id FROM `login` WHERE account_id = "+getcharid(3)+"", [email protected]_unique_id$); query_sql("SELECT account_id FROM `login` WHERE last_unique_id = '"[email protected]_unique_id$+"'", [email protected]); [email protected] = getarraysize([email protected]); for([email protected]=0; [email protected] < [email protected]; [email protected]++){ query_sql("SELECT `value` FROM `acc_reg_num` WHERE `account_id` = '"[email protected][[email protected]]+"' AND `key` = '#LastDailyReward'",[email protected]); if([email protected] <= [email protected]){ message strcharinfo(0),"[Daily Rewards]: Rewards are limited to 1 per computer sorry."; continue; } } } if(.Rest){ [email protected] = gettime(DT_YEAR) * 60 * 24 * 365 + gettime(DT_DAYOFYEAR) * 60 * 24 + gettime(DT_HOUR) * 60 + gettime(DT_MINUTE); if([email protected] < @logintime + .Rest){ [email protected] = @logintime + .Rest - [email protected]; message strcharinfo(0),"[Daily Rewards]: to collect reward you must remain logged in for "+callfunc("F_InsertPlural",[email protected],"more minute")+"."; continue; } } deletearray [email protected]$[0],getarraysize([email protected]$); [email protected] = #DRewardCon + 1; explode([email protected]$,.Rewards$[[email protected]],","); } if(checkvending() & 2 && .Mode & 256){ message strcharinfo(0),"[Daily Rewards]: Venders cannot recive rewards."; end; } [email protected] = getarraysize([email protected]$); deletearray [email protected][0],getarraysize([email protected]); deletearray [email protected][0],getarraysize([email protected]); deletearray [email protected][0],getarraysize([email protected]); for([email protected] = y = 0; [email protected] < [email protected]; [email protected]++) [email protected][[email protected]] = atoi([email protected]$[[email protected]]); if(.Mode & 1 && ([email protected][4] > 0 || [email protected][4] > 0)){ [email protected] = getarraysize([email protected]); for([email protected] = 4; [email protected] <= [email protected] - 1 ; [email protected] += 2){ [email protected][[email protected]] = [email protected][[email protected]]; [email protected][[email protected]] = [email protected][[email protected] + 1]; [email protected]++; } if(checkweight2([email protected],[email protected])){ for([email protected] = 0; [email protected] < [email protected]; [email protected]++){ if(.Mode & 128) getitembound [email protected][[email protected]], [email protected][[email protected]], .Bound_Mode; else getitem [email protected][[email protected]], [email protected][[email protected]]; } } else { message strcharinfo(0),"[Daily Rewards]: You cannot carry the prizes, please use storage and relog."; continue; } } if(.Mode & 2 && ([email protected][1])){ #Loyalty += [email protected][1]; message strcharinfo(0),"[Daily Rewards]: Recieved "+ [email protected][1] +" "+.Points$; } if(.Mode & 4 && ([email protected][0])){ zeny += [email protected][0]; message strcharinfo(0),"[Daily Rewards]: Recieved "+ [email protected][0] +"z"; } if(.Mode & 8 && ([email protected][3] || [email protected][4])) getexp [email protected][3], [email protected][4]; if([email protected]){ if(.Mode & 32) cutin .VIPCutins$[#VIPRewardCon],4; #VIPRewardCon++; #LastVIPReward = [email protected]; sleep2 1000; if(.Mode & 64) cutin .VIPCutins$[#VIPRewardCon],4; message strcharinfo(0),"[Daily Rewards]: You have collected your VIP reward, for "+callfunc("F_InsertPlural",#VIPRewardCon,"day")+" this month."; } else { if(.Mode & 16){ [email protected] = getarraysize(.BuffInfo); for([email protected] = 0; [email protected] < [email protected]; [email protected] += 4){ if([email protected] == .BuffInfo[[email protected] + 1]) sc_start .BuffInfo[[email protected]], .BuffInfo[[email protected] + 2] * 60000, .BuffInfo[[email protected] + 3]; } } if(.Mode & 32) cutin .Cutins$[#DRewardCon],4; #DRewardCon++; #LastDailyReward = [email protected]; sleep2 1000; if(.Mode & 64) cutin .Cutins$[#DRewardCon],4; message strcharinfo(0),"[Daily Rewards]: You have collected your daily reward, for "+callfunc("F_InsertPlural",#DRewardCon,"day")+" this month."; } if(.Mode & 32 || .Mode & 64){ sleep2 15000; cutin "",255; } } end; OnNextCmnd: [email protected] = gettime(DT_YEAR) * 60 * 24 * 365 + gettime(DT_DAYOFYEAR) * 60 * 24 + gettime(DT_HOUR) * 60 + gettime(DT_MINUTE); if([email protected] >= @logintime + .Rest){ message strcharinfo(0),"[Daily Rewards]: your next reward is available."; } else { [email protected] = gettime(DT_YEAR) * 12 * 31 + gettime(DT_MONTH) * 31 + gettime(DT_DAYOFMONTH); if([email protected] <= #LastDailyReward) message strcharinfo(0),"[Daily Rewards]: Your next reward will be aviable tomorrow."; else { [email protected] = ([email protected] >= @logintime + .Rest) / 60 / 24; [email protected] = (([email protected] >= @logintime + .Rest) / 60) % 24; [email protected] = ([email protected] >= @logintime + .Rest) % 60; message strcharinfo(0),"[Daily Rewards]: You have "+ (([email protected]) ? [email protected] +" Days " : "") + (([email protected]) ? [email protected] +" Hours " : "") + (([email protected]) ? [email protected] +" Minutes " : "") +"till your next reward."; } if(.Mode & 32 || .Mode & 64){ if([email protected] >= getarraysize(.Rewards$)) [email protected] = 0; else [email protected] = #DRewardCon + 1; cutin .Cutins$[[email protected]],4; } } end; OnHour00: if(gettime(DT_DAYOFMONTH) == 1){ query_sql("DELETE FROM `acc_reg_num` WHERE `key` = '#DRewardCon' OR `key` = '#VIPRewardCon' OR `key` = '#LastVIPReward' OR `key` = '#LastDailyReward'"); addrid(0); #DRewardCon = #VIPRewardCon = #LastVIPReward = #LastDailyReward = 0; } end; OnInit: // Basic Settings // 1: Item | 2: Points | 4: Zeny | 8: Exp // 16: Gain Buffs // 32: Show Cutins | 64: Show Next Day Cutin // 128: Item Rewards Bound // 256: No Rewards for Autotraders // (a bit value, e.g. 3 = Items & Points from Multi) .Mode = 1|2|4|16|32|64|128|256; // Item Binding Mode // Bound_Account : Account Bound item // Bound_Guild : Guild Bound item // Bound_Party : Party Bound item // Bound_Char : Character Bound item .Bound_Mode = Bound_Account; // To disable the command '@loginreward' comment the next lines // * Needs extra commands for typos //bindatcmd("relog","LOGIN::OnLoginCmnd",0,99); bindatcmd("collectreward",strnpcinfo(3)+"::OnLoginCmnd",0,99); //bindatcmd("dailyreward",strnpcinfo(3)+"::OnLoginCmnd",0,99); //bindatcmd("collectdaily",strnpcinfo(3)+"::OnLoginCmnd",0,99); bindatcmd("nextreward",strnpcinfo(3)+"::OnNextCmnd",0,99); // Reset days back to 0 on a skipped day. // Toggle // [0] = Off // [1] = On .Reset = 0; // .Rest // Delay after login to collect rewards // In Minutes .Rest = 60; // Point Name .Points$ = "Loyalty Points"; // Ip check to prevent multi accounts // Toggle // [0] = Off // [1] = On .IPCheck = 0; // Consecutive Days Buff // Each buff contains 4 variables // <Type>,<Days>,<Duration>,<Rate>, // Buff 1 // <Type>,<Days>,<Duration>,<Rate>, // Buff 2 // ...; // // Example: 188,7,45,3 // -On the 7th day logged in Player gains +3 Str for 45 mins // // Type is 188, which references which SC_ to use, SC_INCSTR in this example // -For a full list of SC_ visit the db/const.txt // Days is days buff is applied, in this example 7, so every 7th day, 14,21,28.... // Duration is buff duration is Minuits, in this example 45 mins // Rate is buff val1, in this example player gains 3 Str setarray .BuffInfo ,260,2,360,1 // Life Insurance for 360 on 2nd Day ,198,3,120,10 // +10% Hp for 120 Mins on 3rd Day ,260,4,360,1 // Life Insurance for 360 on 4th Day ,196,5,120,25 // +25 Flee for 120 Mins on 5th Day ,198,6,120,10 // +10% Hp for 120 Mins on 6th Day ,257,7,240,50 // +50% Exp for 240 Mins on 7th Day ,260,8,360,1 // Life Insurance for 360 on 8th Day ,198,9,120,10 // +10% Hp for 120 Mins on 9th Day ,196,10,120,25 // +25 Flee for 120 Mins on 10th Day ,198,12,120,10 // +10% Hp for 120 Mins on 12th Day ,257,14,240,50 // +50% Exp for 240 Mins on 14th Day ,196,15,120,25 // +25 Flee for 120 Mins on 15th Day ,260,16,360,1 // Life Insurance for 360 on 16th Day ,198,18,120,10 // +10% Hp for 120 Mins on 18th Day ,196,20,120,25 // +25 Flee for 120 Mins on 20th Day ,257,21,240,50 // +50% Exp for 240 Mins on 21st Day ,260,22,360,1 // Life Insurance for 360 on 22nd Day ,198,24,120,10 // +10% Hp for 120 Mins on 24th Day ,196,25,120,25 // +25 Flee for 120 Mins on 25th Day ,260,26,360,1 // Life Insurance for 360 on 26th Day ,198,27,120,10 // +10% Hp for 120 Mins on 27th Day ,257,28,240,50 // +50% Exp for 240 Mins on 28th Day ,196,30,120,25; // +25 Flee for 120 Mins on 30th Day // Daily Prize items: // "<Zeny>,<Points>,<BaseExp>,<JobExp>,<itemID-1>,<amount-1>,<itemID-2>,<amount-2>...etc", // Day 1 // "<Zeny>,<Points>,<BaseExp>,<JobExp>,<itemID-1>,<amount-1>,<itemID-2>,<amount-2>...etc" // Day 2 // ...; // Total length of any days string must be 255 or shorter setarray .Rewards$[1], "0,0,0,0,12257,25", // Day 1: 25 Cold Medicine "0,0,0,0,7621,2", // Day 2: 2 token "0,0,0,0,12103,2", // Day 3: 2 bloody branch "0,0,0,0,12214,2", // Day 4: 2 convex mirror "0,0,0,0,12210,2", // Day 5: 2 bubble gum "0,0,0,0,12257,50", // Day 6: 50 cold medecine "0,0,0,0,6417,10", // Day 7: 10 silvervine "0,0,0,0,12211,5", // Day 8: 5 kafra card "0,0,0,0,12214,3", // Day 9: 3 convex mirror "0,0,0,0,7621,3", // Day 10: 3 token "0,0,0,0,12257,75", // Day 11: 75 cold medicine "0,0,0,0,12212,10", // Day 12: 10 G Fly "0,0,0,0,12103,3", // Day 13: 3 Bloody branch "0,0,0,0,7776,3", // Day 14: 3 gym pass "0,0,0,0,12103,5", // Day 15: 5 bloody branch "0,0,0,0,12257,100", // Day 16: 100 cold medicine "0,0,0,0,12210,3", // Day 17: 3 bubble gum "0,0,0,0,7621,5", // Day 18: 5 token "0,0,0,0,12257,150", // Day 19: 150 cold medicine "0,0,0,0,12214,5", // Day 20: 5 convex mirror "0,0,0,0,6417,20", // Day 21: 20 silvervine "0,0,0,0,12210,5", // Day 22: 5 bubble gum "0,0,0,0,12211,10", // Day 23: 10 kafra card "0,0,0,0,12257,200", // Day 24: 200 cold medicine "0,0,0,0,12103,10", // Day 25: 10 blood branch "0,0,0,0,6488,500", // Day 26: 500 invest ticket "0,0,0,0,7619,25", // Day 27: 25 oridecon "0,0,0,0,7620,25", // Day 28: 25 enrich eluminium "0,0,0,0,7620,500", // Day 29: war badge 500 "0,0,0,0,7620,3", // Day 30: shadow box 3 "0,0,0,0,7620,1"; // Day 31: 1 MCA // VIP Prize items: // "<Zeny>,<Points>,<BaseExp>,<JobExp>,<itemID-1>,<amount-1>,<itemID-2>,<amount-2>...etc", // Day 1 // "<Zeny>,<Points>,<BaseExp>,<JobExp>,<itemID-1>,<amount-1>,<itemID-2>,<amount-2>...etc" // Day 2 // ...; // Total length of any days string must be 255 or shorter // // Note VIPs Collect both VIP and Normal Player rewards setarray .VIPRewards$[1], "0,0,0,0,12257,25", // Day 1: 25 Cold Medicine "0,0,0,0,7621,2", // Day 2: 2 token "0,0,0,0,12103,2", // Day 3: 2 bloody branch "0,0,0,0,12214,2", // Day 4: 2 convex mirror "0,0,0,0,12210,2", // Day 5: 2 bubble gum "0,0,0,0,12257,50", // Day 6: 50 cold medecine "0,0,0,0,6417,10", // Day 7: 10 silvervine "0,0,0,0,12211,5", // Day 8: 5 kafra card "0,0,0,0,12214,3", // Day 9: 3 convex mirror "0,0,0,0,7621,3", // Day 10: 3 token "0,0,0,0,12257,75", // Day 11: 75 cold medicine "0,0,0,0,12212,10", // Day 12: 10 G Fly "0,0,0,0,12103,3", // Day 13: 3 Bloody branch "0,0,0,0,7776,3", // Day 14: 3 gym pass "0,0,0,0,12103,5", // Day 15: 5 bloody branch "0,0,0,0,12257,100", // Day 16: 100 cold medicine "0,0,0,0,12210,3", // Day 17: 3 bubble gum "0,0,0,0,7621,5", // Day 18: 5 token "0,0,0,0,12257,150", // Day 19: 150 cold medicine "0,0,0,0,12214,5", // Day 20: 5 convex mirror "0,0,0,0,6417,20", // Day 21: 20 silvervine "0,0,0,0,12210,5", // Day 22: 5 bubble gum "0,0,0,0,12211,10", // Day 23: 10 kafra card "0,0,0,0,12257,200", // Day 24: 200 cold medicine "0,0,0,0,12103,10", // Day 25: 10 blood branch "0,0,0,0,6488,500", // Day 26: 500 invest ticket "0,0,0,0,7619,25", // Day 27: 25 oridecon "0,0,0,0,7620,25", // Day 28: 25 enrich eluminium "0,0,0,0,7620,500", // Day 29: war badge 500 "0,0,0,0,7620,3", // Day 30: shadow box 3 "0,0,0,0,7620,1"; // Day 31: 1 MCA // Cutin Array // Shows a cutin before collecting for each date // Start at 0 if showing next day setarray .Cutins$, "day1", "day2", "day3", "day4", "day5", "day6", "day7", "day8", "day9", "day10", "day11", "day12", "day13", "day14", "day15", "day16", "day17", "day18", "day19", "day20", "day21", "day22", "day23", "day24", "day25", "day26", "day27", "day28", "day29", "day30", "day31"; // Cutin Array // Shows a cutin on collecting for each date setarray .VIPCutins$, "day1", "day2", "day3", "day4", "day5", "day6", "day7", "day8", "day9", "day10", "day11", "day12", "day13", "day14", "day15", "day16", "day17", "day18", "day19", "day20", "day21", "day22", "day23", "day24", "day25", "day26", "day27", "day28", "day29", "day30", "day31"; end;
  4. setnpctimer 180100; // Reseting the timer back to after the registration time has passed startnpctimer; end;
  5. follow this guide on how to add custom items .
  6. i try to search and use some several scripts lying around but i think it its still need some modification . i already make my own cutins (31days) so i hope someone who have and could share the same i need . - without npc and that will pop in your first log in - with commands for checking the chart and time to get the rewards - limited to 1 ip to stop abuse - @afk vendors can`t get the rewards and also count the time event get dc and log in again thanks in advance and sorry for my bad english .
  7. .pointPerVictory = 100; // Points gained per victory hi sir @pajodex im using this script but i dont know why the the game dont end after you reach the points required to win. for what i understand in this is if you reach 100 total of team points the game will end, or does it actually ends after the set of time of 5/10/15 mnts regardless of the score ?
  8. i already tried that one but too many error , i think its not compatible with rathena
  9. can anyone share their battlegrounds that have commands like these @joinbg: queue [email protected]: queue [email protected]: sends a message to your [email protected]: change team [email protected]: kick an AFK [email protected]: enable/disable display bg announces
  10. i think bg_1.ebm is error/broken cant convert it in ebm converter.
  11. sry to post here can`t reply on your post about :


    Slot Machine With Random Reward and Running at Spesified OnClock 1.2

     

    just askin if the soundeffect is working in this script  thanks

  12. sad maybe i`ll just use the other script thanks senpai ruru
  13. I like this script since it have sound effect than other slot machine script out there who is easy to configure but then no sounds effect =D im using this script , i dont know much to configure setarrays i try diff ways but its not working hope someone can help TIA im using the TSM or triple slot machine /* ============================================================= /* Slot Machine - Triple Slot Machine /* ============================================================= /* Version: v0.7 /* v0.1 - Original Script Created. /* v0.2 - Added Option for Triple Slot Machine with animations. /* v0.3 - Added support for item pricing &/or zeny pricing. /* v0.4 - Cleaned up script variables for easy editing. /* v0.5 - Tested out some new scripting methods with IF(THEN). /* v0.6 - Added option to change slot machine modes ingame. /* v0.7 - Added optional sound effects to slot machines. - NOTE /* ============================================================= /* Description /* ============================================================= /* This script will allow users to spend zeny &/or an item for a /* chance to win a prize from the slot machine. Currently there /* are 2 versions. First is a Single Slot Machine, where only 1 /* slot is rolled. Second is the Triple Slot machine, where 3 /* slots are rolled. For either version, SUCCESS must be the /* only thing displayed in order to win. /* ============================================================= /* NOTE - If using soundeffects you must add the ".wav" files /* provided in the ".rar" file to your: data/wav folder located /* in either your: ( Ragnarok folder ) OR ( .grf file ) /* ============================================================= /* Created By: GmOcean /* ===========================================================*/ veil,119,159,4 script SlotMachine::1slot 563,{ if( getgmlevel() == 99 ) { mes "Welcome Administrator.","What would you like to do?"; menu "Play Game",-,"Change Slot Machine Mode",iMode; next; } switch( getd(".mode"+strnpcinfo(3)+"") ){ case 0: // Single Slot machine mode. mes "Do you want to play a game?"; if( !.payment ) { mes "It costs: "+ .ssm_payment_message$[0] +" to play."; } else if ( .payment == 1 ) { mes "It costs: "+ .ssm_payment_message$[1] +" to play."; } else if ( .payment == 2 ) { mes "It costs: "+ .ssm_payment_message$[0] +" & "+ .payment_message$[1] +" to play."; } if( select("YES:NO") == 2 || Zeny < .ssm_payment[0] && ( !.payment || .payment == 2 ) || countitem(.ssm_payment[1]) < .ssm_payment[2] && .payment ){ close; } while( @menu == 1 ){ if( !.payment || .payment == 2 ) { Zeny -= .ssm_payment[0]; } if( .payment ) { delitem( .ssm_payment[1], .ssm_payment[2] ); } if( .soundeffects ) { soundeffect "se_cash_provider.wav",0; } [email protected] = rand(1,100); if( [email protected] < atoi(.ssm_animate$[0]) ){ [email protected] = 1; } else { [email protected] = 2; } [email protected] = 1; while( [email protected] < atoi(.ssm_animate$[[email protected]]) ) { cutin .ssm_animate$[3] + [email protected],4; sleep2 ( ( atoi(.ssm_animate$[4]) * 1000 ) / atoi(.ssm_animate$[[email protected]]) ); [email protected]++; } if( [email protected] == 1 ){ cutin .ssm_animate$[3] + atoi(.ssm_animate$[[email protected]]),4; dispbottom "Failed"; } else { cutin .ssm_animate$[3] + atoi(.ssm_animate$[[email protected]]),4; if( !.prize || .prize == 2 ) { Zeny += .ssm_prize[0]; } if( .prize ) { getitem .ssm_prize[1], .ssm_prize[2]; } if( .soundeffects ){ soundeffect "slot_pay_coin.wav",0; } } if( select("Another Round:I'm done") == 2 || Zeny < .ssm_payment[0] && ( !.payment || .payment == 2 ) || countitem(.ssm_payment[1]) < .ssm_payment[2] && .payment ){ cutin "",255; close; } } end; case 1: // Triple Slot machine mode. mes "Do you want to play a game?"; if( !.payment ) { mes "It costs: "+ .tsm_payment_message$[0] +" to play."; } else if ( .payment == 1 ) { mes "It costs: "+ .tsm_payment_message$[1] +" to play."; } else if ( .payment == 2 ) { mes "It costs: "+ .tsm_payment_message$[0] +" & "+ .tsm_payment_message$[1] +" to play."; } if( select("YES:NO") == 2 || Zeny < .tsm_payment[0] && ( !.payment || .payment == 2 ) || countitem(.tsm_payment[1]) < .tsm_payment[2] && .payment ){ close; } while( @menu == 1 ){ if( !.payment || .payment == 2 ) { Zeny -= .tsm_payment[0]; } if( .payment ) { delitem( .tsm_payment[1], .tsm_payment[2] ); } if( .soundeffects ) { soundeffect "se_cash_provider.wav",0; } // Slot 1 = 100% Chance for success. (Because I didn't make a fail animation for it. [email protected] = rand(1,100); //Rolls dice for Slot 2 [email protected] = rand(1,100); //Rolls dice for Slot 3 if( [email protected] <= atoi(.tsm_animate$[0]) && [email protected] <= atoi(.tsm_animate$[1]) ){ [email protected] = 8; } else if( [email protected] <= atoi(.tsm_animate$[0]) && [email protected] > atoi(.tsm_animate$[1]) ){ [email protected] = 6; } else if( [email protected] > atoi(.tsm_animate$[0]) && [email protected] <= atoi(.tsm_animate$[1]) ){ [email protected] = 4; } else { [email protected] = 2; } [email protected] = 1; while( [email protected] < atoi(.tsm_animate$[[email protected]+1]) ) { cutin .tsm_animate$[[email protected]] + [email protected],4; sleep2 ( ( atoi(.tsm_animate$[10]) * 1000 ) / atoi(.tsm_animate$[[email protected]+1]) ); [email protected]++; } cutin .tsm_animate$[[email protected]] + atoi(.tsm_animate$[[email protected]+1]),4; if( [email protected] == 2 ){ if( !.prize || .prize == 2 ) { Zeny += .tsm_prize[0]; } if( .prize ) { getitem .tsm_prize[1], .tsm_prize[2]; } if( .soundeffects ){ soundeffect "slot_pay_coin.wav",1; } } else { dispbottom "Failed"; } if( select("Another Round:I'm done") == 2 || Zeny < .tsm_payment[0] && ( !.payment || .payment == 2 ) || countitem(.tsm_payment[1]) < .tsm_payment[2] && .payment ){ cutin "",255; close; } } end; } OnSingleSlot: setd ".mode"+strnpcinfo(3)+"",0; end; OnTripleSlot: setd ".mode"+strnpcinfo(3)+"",1; end; iMode: next; mes "Which did you want to do?"; menu "Change THIS machine's mode:Change ALL machine's mode",-; if( @menu == 1 ) { next; mes "What mode would you like this machine to have?"; menu "Single Slot Machine Mode:Triple Slot Machine Mode",-; if( @menu == 1 ) { setd ".mode"+strnpcinfo(3)+"",0; } else { setd ".mode"+strnpcinfo(3)+"",1; } close; } else { next; mes "What mode would you like to change all slot machines to?"; menu "Single Slot Machine Mode:Triple Slot Machine Mode",-; if( @menu == 1 ) { donpcevent "::OnSingleSlot"; } else { donpcevent "::OnTripleSlot"; } close; } OnInit: // 0 = Disabled, 1 = Enabled. .soundeffects = 1; //[ 0 = Single Slot Machine Mode ]_[ 1 = Triple Slot Machine Mode ] setd ".mode"+strnpcinfo(3)+"",1; //[0] = Fail Rate //[1] = Fail (Do not change) //[2] = Success (Do not change) //[3] = File Name (Do not change) //[4] = Animation Time (Do not change, for best results :D) setarray .ssm_animate$[0],"30","29","33","slot_","3"; //[0] = Fail Rate "Slot 2" //[1] = Fail Rate "Slot 3" //[2] = SSS (Do not change) //[3] = SSS_Count (Do not change) //[4] = SSF (Do not change) //[5] = SSF_Count (Do not change) //[6] = SFS (Do not change) //[7] = SFS_Count (Do not change) //[8] = SFF (Do not change) //[9] = SFF_Count (Do not change) //[10] = Animation Time (Do not change, for best results :D) setarray .tsm_animate$[0],"30","30","SSS_","41","SSF_","37","SFS_","41","SFF_","45","3"; // Prize Settings // Prize Type // 0 = Zeny, 1 = Item, 2 = Zeny&Item .prize = 1; // [0] = Zeny, [1] = Item ID, [2] = Item Amount; setarray .ssm_prize[0],125,501,10; setarray .tsm_prize[0],450,501,30; // Payment Settings // Payment Type // 0 = Zeny, 1 = Item, 2 = Zeny&Item .payment = 0; // [0] = Zeny, [1] = Item ID, [2] = Item Amount; setarray .ssm_payment[0],100,501,1; // Single Slot Machine Payment Price setarray .tsm_payment[0],500000,501,3; // Triple Slot Machine Payment Price // DO NOT CHANGE BELOW // Payment Text Syntax setarray .ssm_payment_message$[0],""+ .ssm_payment[0] +" zeny",""+ getitemname(.ssm_payment[1]) +" x"+ .ssm_payment[2] +""; setarray .tsm_payment_message$[0],""+ .tsm_payment[0] +" zeny",""+ getitemname(.tsm_payment[1]) +" x"+ .tsm_payment[2] +""; end; } //Duplicates veil,115,159,4 duplicate(1slot) SlotMachine#2slot 563 veil,123,159,4 duplicate(1slot) SlotMachine#3slot 563 i already tried to edit the setarrays like these. // Prize Settings // Prize Type // 0 = Zeny, 1 = Item, 2 = Zeny&Item .prize = 1; // [0] = Zeny, [1] = Item ID, [2] = Item Amount; setarray .ssm_prize[0],125,501,10; setarray .tsm_prize[0],450,501,30,1,502,40,1,503,50; // Payment Settings // Payment Type // 0 = Zeny, 1 = Item, 2 = Zeny&Item .payment = 0; // [0] = Zeny, [1] = Item ID, [2] = Item Amount; setarray .ssm_payment[0],100,501,1; // Single Slot Machine Payment Price setarray .tsm_payment[0],500000,501,3; // Triple Slot Machine Payment Price but its seems the only reward can get is the apple 30pcs (501,30) hope someone can help thanks...