-
Posts
109 -
Joined
-
Last visited
Yami's Achievements
-
Hi there, I've been trying to modify my lotti script into not have a default prize (If you lose you get this item). I just want a Lotti / Gacha script that will take the payment, then randomly select a reward (items that I set) with their respective chances. As my current lotti script goes (the one from rathena) when you roll and if you don't get any of the set rewards you will be rewarded with a DEFAULT prize. I don't want to get default prize, I just want to get the items that are set by how high the chance to get them. Just roll me all the items, highest chance to lowest chance. Thank you for the help This is the script // http://rathena.org/board/topic/83017-pro-lotti-girl-refine-master/ turbo_room,135,97,3 script Lotti Girl 720,{ mes "[Lotti Girl]"; mes "I'm Lotti! I'll exchange"; mes "Random Prizes for every"; mes "^ff000050,000 zeny^000000."; next; mes "[Lotti Girl]"; mes "Our Grand prize is:"; mes "^ff0000 +4 Refine Ticket^000000"; mes "Consolations are:"; mes "^ff0000 x1 Silver Coin^000000"; mes "^ff0000 x1 Bronze Coin^000000"; mes "^ff0000 x?? War Badges^000000"; mes "And many more!!"; if (Zeny < 50000) close; next; if(select("Let's Do This!!:No thanks...")==2) close; mes "[Lotti Girl]"; mes "Here we go..."; set Zeny, Zeny - 50000; set [email protected],5; //<%>,<ItemID>,<Amount> setarray [email protected][0],2,6456,1; setarray [email protected][0],3,675,1; setarray [email protected][0],4,673,1; setarray [email protected][0],5,7773,rand(1,2); setarray [email protected][0],11502,rand(1,3); set [email protected], rand(1,[email protected]); if (rand(1,100) > getd("[email protected]"[email protected]+"[0]")) { for(set [email protected],0; [email protected]<getarraysize([email protected]); set [email protected],[email protected]+2) { getitem [email protected][[email protected]], [email protected][[email protected]+1]; if([email protected][0]) setarray [email protected][0], [email protected][[email protected]], [email protected][[email protected]+1]; } } else{ for(set [email protected],1; [email protected]<getarraysize(getd("[email protected]"[email protected])); set [email protected],[email protected]+2) { getitem getd("[email protected]"[email protected]+"["[email protected]+"]"), getd("[email protected]"[email protected]+"["+([email protected]+1)+"]"); if ([email protected][0]) { set [email protected],[email protected]; setarray [email protected][0], getd("[email protected]"[email protected]+"["[email protected]+"]"), getd("[email protected]"[email protected]+"["+([email protected]+1)+"]"); break; } } } if(1<[email protected]&&[email protected]<=2) announce "Hey! "+strcharinfo(0)+" just received "+getitemname([email protected][0])+" x "[email protected][1]+" from Lotti Girl!",0; specialeffect2 248; close; }
-
Bumping this request Okay I found this piece of script in herc forums which is basically almost identical to what I need. But the script is incomplete, and I can't make it to work properly. So far I've managed it to check for Knight Classes in a guild, when inside WOE castle. But the script is kicking out every one of them even before hitting the target limit. Can someone help me fix this script? Please - script ckeckguildjob -1,{ { OnPCLoadMapEvent: getguildmember(getcharid(0),2); set [email protected][0],[email protected][0],[email protected]; set [email protected], [email protected]; for (set [email protected], 0; [email protected] < [email protected]; set [email protected], [email protected] + 1) attachrid [email protected][[email protected]]; set [email protected][[email protected]], 4008;// Check Job from other current jobs for (set [email protected], 0; [email protected] < getarraysize([email protected]); set [email protected], [email protected] + 1) if (Class == [email protected][[email protected]]) { set [email protected], [email protected] + 1; if ([email protected] > 1) // Too many knights made it limit of 1 for testing purposes but will be 8 dispbottom "There can only be 8 Knight per guild members inside a castle during woe."; warp "SavePoint",0,0; set [email protected], 0; } } OnInit: setarray .castles$[0], "prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05", "payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05", "gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05", "aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05", "arug_cas01","arug_cas02","arug_cas03","arug_cas04","arug_cas05", "schg_cas01","schg_cas02","schg_cas03","schg_cas04","schg_cas05"; for ( [email protected] = 0; [email protected] < 30; [email protected]++ ) setmapflag .castles$[[email protected]], mf_loadevent; end; }
-
Hey there everyone! I can't seem to find any script regarding this request, but I know it exists for I've seen it in a couple servers that I've played recently. I'm looking for a script that Limits a job class' specific count per guild inside WOE castles. In example, Only 5 Knight class are allowed inside the castle per guild, If a guild has 6 online knights inside the castle from ECALL, OR a 6th knight enters the castle the whole guild will be warped out to their savepoint. As long as they go pass the 5 limit for whatever job that has it, the whole guild should be warped out of the castle. Thank you! Any information will be helpful. Edit: Okay I found this piece of script in herc forums which is basically almost identical to what I need. But the script is incomplete, and I can't make it to work properly. So far I've managed it to check for Knight Classes in a guild, when inside WOE castle. But the script is kicking out every one of them even before hitting the target limit. Can someone help me fix this script? Please. - script ckeckguildjob -1,{ { OnPCLoadMapEvent: getguildmember(getcharid(0),2); set [email protected][0],[email protected][0],[email protected]; set [email protected], [email protected]; for (set [email protected], 0; [email protected] < [email protected]; set [email protected], [email protected] + 1) attachrid [email protected][[email protected]]; set [email protected][[email protected]], 4008;// Check Job from other current jobs for (set [email protected], 0; [email protected] < getarraysize([email protected]); set [email protected], [email protected] + 1) if (Class == [email protected][[email protected]]) { set [email protected], [email protected] + 1; if ([email protected] > 1) // Too many knights made it limit of 1 for testing purposes but will be 8 dispbottom "There can only be 8 Knight per guild members inside a castle during woe."; warp "SavePoint",0,0; set [email protected], 0; } } OnInit: setarray .castles$[0], "prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05", "payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05", "gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05", "aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05", "arug_cas01","arug_cas02","arug_cas03","arug_cas04","arug_cas05", "schg_cas01","schg_cas02","schg_cas03","schg_cas04","schg_cas05"; for ( [email protected] = 0; [email protected] < 30; [email protected]++ ) setmapflag .castles$[[email protected]], mf_loadevent; end; }
-
Haha! All good! I did not understand that myself until recently. Thanks for your help it's working as intended now.
-
Oh! I will try this right now! Thank you @Skorm. I'll update this thread
-
Thanks @Skorm I will try this script in a little bit!
-
Hi there, I have this heavily modified PVP warper script which I added a Party vs Party feature. But I need help to only warp party members if they are on town map. Here's the party warp script: if (is_party_leader() == true) { if(getpartyleader(getcharid(1),2) == getcharid(0)) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) { if ( isloggedin( [email protected][[email protected]], [email protected][[email protected]] ) ) { attachrid [email protected][[email protected]]; [email protected]_id = getcharid(1); warp "pvp_y_1-2",0,0; warpparty "Leader",0,0,[email protected]_id; } } } }// If leader close Can someone help me add a restriction to only warp members that are in town map.
-
Thanks I will discuss this with my partner. Still hoping someone could help with my original idea.
-
Hey thanks for the suggestion, but this would imply that player won't be able to body relocation anymore once trapped right? I still want them to be able to reloc but only to an extent.
-
I'm sorry but I have next to no clue how to do this, src is not really my strong point :<
-
Is it possible for ankle snare to remove Monk/Champ Critical Explosion Status when player steps on trap (Ankle Snare)? This is to prevent spamming body relocation on top of traps during WOE. In a sense that, they would have to re-cast critical explosion to be able to use body relocation with no sphere usage after stepping into a trap. If so, can someone please help me to edit my trap effect. Server is pre-renewal.
-
Hi there, I'm having this issue when I manually use Volcanic Ash and Lava Slide on the ground, I get an error saying "There is no target in attack range vicinity. Please use 'ALT + RIGHT CLICK' to command homunculus to attacks a target." I remember you should be able to cast this on the ground even without a target. How to Fix this? Settings on skill_db is set to target ground, so I do not understand why I won't work. 8041,7,6,2,3,0x2,0,5,1,no,0,0,1,weapon,0,0x0, MH_LAVA_SLIDE,Lava Slide 8043,7,6,2,0,0x1,0,5,1,no,0,0,3,none,0,0x0, MH_VOLCANIC_ASH,Volcanic Ash
-
Monster Drops script getitem random not working
Yami replied to Yami's question in Scripting Support
Script worked as intended! Thank you very much! -
Monster Drops script getitem random not working
Yami replied to Yami's question in Scripting Support
Thank you @jurelmetal, will try this as soon as I can. -
Monster Drops script getitem random not working
Yami replied to Yami's question in Scripting Support
I think I know the issue, I did some testing myself. I believe it comes from the MVP drops line, since I added more items to the array, I think I get an error when it tries to trigger 2nd or 3rd item drop. I've only been getting the Bronze Coin (673,5,5,10). Anyone know how I can add more items without getting any error? Please?