Jump to content

Yami

Members
  • Posts

    109
  • Joined

  • Last visited

Everything posted by Yami

  1. 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; }
  2. 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; }
  3. 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; }
  4. Yami

    PVP Party Warp

    Haha! All good! I did not understand that myself until recently. Thanks for your help it's working as intended now.
  5. Yami

    PVP Party Warp

    Oh! I will try this right now! Thank you @Skorm. I'll update this thread
  6. Yami

    PVP Party Warp

    Thanks @Skorm I will try this script in a little bit!
  7. 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.
  8. Thanks I will discuss this with my partner. Still hoping someone could help with my original idea.
  9. 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.
  10. I'm sorry but I have next to no clue how to do this, src is not really my strong point :<
  11. 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.
  12. 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
  13. Script worked as intended! Thank you very much!
  14. Thank you @jurelmetal, will try this as soon as I can.
  15. 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?
  16. @jurelmetal I'm getting this error on my Map server. Do you know why? Here's my updated script: - script Monster_Drop -1,{ OnNPCKillEvent: //if(getgmlevel()>50) end; // MVP DROP if ( getmonsterinfo( killedrid, 22 ) ) { set #daily_mvp,#daily_mvp + 1; for ( [email protected] = 0; [email protected] < getarraysize( .items ); [email protected] += 3 ) { if ( rand( 100 ) < .items[ [email protected] + 2 ] ) { getitem .items[[email protected]], rand(.items[[email protected] + 1], .items[[email protected] + 2]); // Use the numbers as arguments to the call to rand(a, b) //announce strcharinfo(0)+" got "+getitemname( .items[ [email protected] ] )+" x"+.items[ [email protected] + 1 ]+" from "+getmonsterinfo(killedrid, 0)+"!!",bc_all,0xFFFFFF; } } } // NORMAL MOB DROPS else { for ( [email protected] = 0; [email protected] < getarraysize( .mobitem ); [email protected] += 3 ) { if ( rand( 100 ) < .mobitem[ [email protected] + 2 ] ) { getitem .mobitem[[email protected]], rand(.mobitem[[email protected] + 1], .mobitem[[email protected] + 2]); // Use the numbers as arguments to the call to rand(a, b) } } } end; OnInit: // Random amount 6240,rand(1,3),1, // MVP ITEMS <item id>,<amount>,<chance> //setarray .items[0],673,5,10,675,1,1,7859,20,5; setarray .items[0],673,5,5,10,675,1,1,1,7859,10,20,10; // MOB ITEMS <item id>,<amount>,<chance> //setarray .mobitem[0],7859,rand(1,10),5; setarray .mobitem[0],7859,1,5,5; // sets 1 as the minimum amount and 10 as the max end; } // END OF SCRIPT
  17. @jurelmetal does this still follow the drop chance?
  18. Aight, will try this as soon as I can. Thank you
  19. Should I change my code into this @jurelmetal? What about when I add more Items? Or just have it on a fixed amount because I probably wont randomize the amount of all the items the I put as drops. I'm not entirely sure, but the old script works back then, with all the rand(1,123) on the code, but now it's not working.
  20. Hi there, I've been using this script in the past and just tried to use it again. But it seems some of the scripts are not working as they did before, mainly the getitem random amount is not working. It will only give a fixed amount even set at random. Can someone check it out please? Here's the script: - script Monster_Drop -1,{ OnNPCKillEvent: //if(getgmlevel()>50) end; // MVP DROP if ( getmonsterinfo( killedrid, 22 ) ) { set #daily_mvp,#daily_mvp + 1; for ( [email protected] = 0; [email protected] < getarraysize( .items ); [email protected] += 3 ) { if ( rand( 100 ) < .items[ [email protected] + 2 ] ) { getitem .items[ [email protected] ], .items[ [email protected] + 1 ]; //announce strcharinfo(0)+" got "+getitemname( .items[ [email protected] ] )+" x"+.items[ [email protected] + 1 ]+" from "+getmonsterinfo(killedrid, 0)+"!!",bc_all,0xFFFFFF; } } } // NORMAL MOB DROPS else { for ( [email protected] = 0; [email protected] < getarraysize( .mobitem ); [email protected] += 3 ) { if ( rand( 100 ) < .mobitem[ [email protected] + 2 ] ) { getitem .mobitem[ [email protected] ], .mobitem[ [email protected] + 1 ]; } } } end; OnInit: // Random amount 6240,rand(1,3),1, // MVP ITEMS <item id>,<amount>,<chance> setarray .items[0],673,5,10, 675,1,1, 7859,20,5; // MOB ITEMS <item id>,<amount>,<chance> setarray .mobitem[0],7859,rand(1,10),5; //7859,5,1; end; } // END OF SCRIPT Looking forward to getting the script work as intended again. Thank you!
  21. Thank you @Emistry. Script worked, I just had to change the effect into something else but it works! Thank you much!
  22. @Emistry, Hi sorry for the ping. But one more thing, Can we add an effect on the NPC when someone is inside any of the PVP rooms? Like the woe_controller script that makes the npc glow when WOE is active. Something like that. I looked at that script and got this part, but I'm not sure how to integrate it with this pvp script. Can help please? Something like this, but when players are inside any of the rooms instead of when WOE is active. OnAgitStart: while(agitcheck()) { specialeffect EF_BEGINSPELL6; sleep 425; } end; Edit: This is to make players know that people are inside PVP room since we removed the "Entered PVP Room" announcement.
  23. Tried the changes but the limit doesn't seem to work? I tried changing it to 1/1 to test it, then warp another character. And it still warped inside. @Patskie any idea why bro? Thank you Emistry, will try this as soon as I can. Thank you @Emistry. Script worked perfectly! Thank you much!
  24. Hi, I need a little help for my PVP warper script. I added couple more maps and they have different room player limits. I would like to have them not able to warp on the map when limit is reached. I have a limit working right now, but it's for ALL of them, I want it to be Map specific please. Here's the script im using: - script PVP Warper#01::pvp 946,{ set [email protected]_1,getmapusers("guild_vs1"); set [email protected]_2,getmapusers("guild_vs3"); set [email protected]_3,getmapusers("pvp_n_8-1"); set [email protected]_4,getmapusers("pvp_y_1-1"); while(1) { switch(select("Epsilon Arena [ "[email protected]_1+" / 15 ]:Square Arena [ "[email protected]_2+" / 20 ]:Sandwich Arena [ "[email protected]_3+" / 30 ]:Prontera Arena [ "[email protected]_4+" / 60 ]")) { case 1: callsub S_CheckPVPRoom,@mapcount_1,"guild_vs1"; break; case 2: callsub S_CheckPVPRoom,@mapcount_2,"guild_vs3"; break; case 3: callsub S_CheckPVPRoom,@mapcount_3,"pvp_n_8-1"; break; case 4: callsub S_CheckPVPRoom,@mapcount_4,"pvp_y_1-1"; break; } } S_CheckPVPRoom: if (getarg(0) >= 25) { mes "[PVP Warper]"; mes "This map is currently full."; next; return; } else { warp getarg(1),0,0; //if(getarg(1) == pvp_y_1-2) announce ""+strcharinfo(0)+" has Entered Izlude Arena",bc_all,0xFF0000; //if(getarg(1) == guild_vs3) announce ""+strcharinfo(0)+" has Entered Square Arena",bc_all,0xFF0000; //announce ""+strcharinfo(0)+" has Entered the PVP Arena",bc_all,0xFF0000; end; } As you can see on the script, I had 1st Map to be 15/15max, 2nd 20/20max, 3rd 30/30max and 4th 60/60max. But my script only works for 25/25 in general. Thank you in advance!
×
×
  • Create New...

Important Information

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