Jump to content

Search the Community

Showing results for 'lotti'.

  • Search By Author

Content Type


Forums

  • Announcements
    • Rules & Guidelines
    • Community News
    • Development News
    • Ragnarok News
    • Community Crowdfunding
  • Support & Releases
    • General
    • Scripting
    • Database
    • Source
    • Graphic Enhancements
    • Web
    • Client-side
    • Third Party
    • Projects
  • Discussion & Suggestions
    • Database Discussion
    • Script Discussion
    • Source Discussion
    • Renewal Discussion
    • Archives
  • Community
    • rAthena General
    • Arts & Writings
    • Off Topic
  • International Forums
    • Filipino Support
    • German Support
    • Indonesian/Malaysian Support
    • Portuguese Support
    • Russian Support (Русский)
    • Spanish Support

Categories

  • Server Resources
    • Server Managers/Editors
    • Scripts
    • Source Modifications
  • Web Resources
    • General Website Templates
    • Forum Templates
    • FluxCP Themes
    • FluxCP Addons
    • Other Web/CP Scripts
  • Graphics Resources
    • Sprites & Palettes
    • Maps & 3D Resources
    • Other Graphics
  • Client Resources
    • GRF Files
    • Client Tools
    • Spriting & Paletting Tools
    • Texture & Mapping Tools
    • Editors
    • Patchers

Categories

  • Low Rate
  • Mid Rate
  • High Rate
  • Super High Rate

Categories

  • Records Test
  • Complete Installation Guides
  • Client Guides
    • Data Folder
  • MySQL Guides
  • Database Guides
  • Map Guides

Categories

  • rAthena Forums
  • rAthena Development
  • FluxCP Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


Server


Github


Discord


Interests


Website URL


Yahoo


Skype

  1. Hi All, Seeking for your assistance on how to add maximum number of player can enter on the bossnia. let's say maximum of 20 player can only enter the room. and also how to change the required ticket to enter into the room, instead of bossnia ticket i will change is to lotti ticket. please see below script that i used. //===== rAthena Script ======================================= //= Bossnia Warp NPCs //===== By: ================================================== //= Masao //===== Current Version: ===================================== //= 1.2 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= Bossnia MVP event. //===== Additional Comments: ================================= //= 1.0 Converted from the official script. //= 1.1 Optimized. [Euphy] //= 1.2 Moved spawns and warps (by Masao) to this file. [Euphy] //============================================================ // Entrance NPCs //============================================================ prontera,132,125,4 script Bossnia Staff#1 908,{ mes "[Riss]"; mes "Hello?"; mes "I found some beautiful places"; mes "while I travelled all over the world."; mes "I am an adventurer."; mes "Haha~"; next; mes "[Riss]"; mes "What? My name is..."; mes "'Bossnia Staff'?? No no..."; mes "Well, my name is not so important."; mes "Sometimes you should be generous."; mes "No time for considering that kind of small stuff"; mes "when you have to concentrate on more important things."; next; mes "[Riss]"; mes "Hum... anyway I want to say... something.."; mes "While I was travelling through some places,"; mes "I found a really fearful place."; next; mes "[Riss]"; mes "Most of the time when you come to a place,"; mes "there is one strong and fearful monster."; mes "Isn't it?"; next; mes "[Riss]"; mes "But... but... in there..."; mes "There are lots of fearful and strong monsters in there..."; mes "That was really frightful."; next; mes "[Riss]"; mes "If I had reacted a bit later... a few seconds..."; mes "I might have been killed."; next; mes "[Riss]"; mes "What?"; mes "You want to go in there?"; mes "Oh~ Boy~ you didn't get me."; mes "In there......."; next; mes "[Riss]"; mes "Uh... you already know?"; mes "Although you know the place, you want to go in..."; mes "Good, I will send you there."; mes "But after you went there, don't hold"; mes "a grudge against me. Also it costs 5,000 zeny."; next; if (Zeny > 4999) { mes "[Riss]"; mes "Would you really like to take the challenge?"; mes "Ok, just choose the course."; next; set .@i, select("First","Second","Third","Fourth"); mes "[Riss]"; mes "Take care, boy~"; mes "Don't hold a grudge against me."; close2; set Zeny, Zeny - 5000; warp "bossnia_0"+.@i,rand(202,204),rand(202,204); end; } mes "[Riss]"; mes "You don't have enough money..."; mes "Come back when you have at least 5,000 zeny."; close; } geffen,124,169,4 duplicate(Bossnia Staff#1) Bossnia Staff#2 908 payon,165,150,4 duplicate(Bossnia Staff#1) Bossnia Staff#3 908 morocc,142,100,4 duplicate(Bossnia Staff#1) Bossnia Staff#4 908 lighthalzen,203,140,4 duplicate(Bossnia Staff#1) Bossnia Staff#5 908 rachel,132,144,4 duplicate(Bossnia Staff#1) Bossnia Staff#6 908 // Warp Portals //============================================================ bossnia_01,204,204,0 warp bossnia01 1,1,prontera,155,180 bossnia_02,204,204,0 warp bossnia02 1,1,prontera,155,180 bossnia_03,204,204,0 warp bossnia03 1,1,prontera,155,180 bossnia_04,204,204,0 warp bossnia04 1,1,prontera,155,180 // Monster Spawns //============================================================ //---------------------------------------------------------------------------- // bossnia_01 - Bossnia //---------------------------------------------------------------------------- bossnia_01,0,0,0,0 monster Garm 1252,5,7200000,0,1 bossnia_01,0,0,0,0 monster Gloom Under Night 1768,2,7200000,0,1 bossnia_01,0,0,0,0 monster Dark Lord 1272,3,7200000,0,1 bossnia_01,0,0,0,0 monster Doppelganger 1046,10,7200000,0,1 bossnia_01,0,0,0,0 monster Dracula 1389,5,1800000,0,1 bossnia_01,0,0,0,0 monster Drake 1112,10,1800000,0,1 bossnia_01,0,0,0,0 monster Detale 1719,2,7200000,0,1 bossnia_01,0,0,0,0 monster Maya 1147,10,1800000,0,1 bossnia_01,0,0,0,0 monster Mistress 1059,1,1800000,0,1 bossnia_01,0,0,0,0 monster Baphomet 1039,10,1800000,0,1 bossnia_01,0,0,0,0 monster Egnigem Cenia 1658,10,1800000,0,1 bossnia_01,0,0,0,0 monster Amon Ra 1511,1,1800000,0,1 bossnia_01,0,0,0,0 monster Atroce 1785,10,1800000,0,1 bossnia_01,0,0,0,0 monster Vesper 1685,2,7200000,0,1 bossnia_01,0,0,0,0 monster Eddga 1115,1,1800000,0,1 bossnia_01,0,0,0,0 monster Osiris 1038,10,7200000,0,1 bossnia_01,0,0,0,0 monster Orc Lord 1190,10,7200000,0,1 bossnia_01,0,0,0,0 monster Orc Hero 1087,2,1800000,0,1 bossnia_01,0,0,0,0 monster Samurai Specter 1492,1,3600000,0,1 bossnia_01,0,0,0,0 monster Moonlight Flower 1150,1,3600000,0,1 bossnia_01,0,0,0,0 monster Lord of the Dead 1373,1,3600000,0,1 bossnia_01,0,0,0,0 monster Ktullanux 1779,2,7200000,0,1 bossnia_01,0,0,0,0 monster Kiel D-01 1734,2,7200000,0,1 bossnia_01,0,0,0,0 monster Thanatos Phantom 1708,2,7200000,0,1 bossnia_01,0,0,0,0 monster Lady Tanee 1688,1,3600000,0,1 bossnia_01,0,0,0,0 monster Tao Gunka 1583,1,3600000,0,1 bossnia_01,0,0,0,0 monster Turtle General 1312,10,7200000,0,1 bossnia_01,0,0,0,0 monster Pharaoh 1157,2,3600000,0,1 bossnia_01,0,0,0,0 monster Stormy Knight 1251,2,3600000,0,1 bossnia_01,0,0,0,0 monster Falling Bishop 1871,5,7200000,0,1 bossnia_01,0,0,0,0 monster Phreeoni 1159,10,7200000,0,1 bossnia_01,0,0,0,0 monster Golden Thief Bug 1086,10,3600000,0,1 bossnia_01,0,0,0,0 monster Evil Snake Lord 1418,10,7200000,0,1 bossnia_01,0,0,0,0 monster RSX-0806 1623,5,7200000,0,1 bossnia_01,0,0,0,0 monster Assassin Cross Eremes 1647,1,0,0,1 bossnia_01,137,118,1,1 monster Whitesmith Howard 1648,1,0,0,1 bossnia_01,122,195,1,1 monster Beelzebub 1873,1,0,0,1 bossnia_01,45,118,1,1 monster Beelzebub 1873,1,0,0,1 bossnia_01,196,122,1,1 monster Valkyrie Randgris 1751,1,0,0,1 bossnia_01,142,61,1,1 monster Ifrit 1832,1,0,0,1 //---------------------------------------------------------------------------- // bossnia_02 - Bossnia //---------------------------------------------------------------------------- bossnia_02,0,0,0,0 monster Garm 1252,5,7200000,0,1 bossnia_02,0,0,0,0 monster Gloom Under Night 1768,2,7200000,0,1 bossnia_02,0,0,0,0 monster Dark Lord 1272,3,7200000,0,1 bossnia_02,0,0,0,0 monster Doppelganger 1046,10,7200000,0,1 bossnia_02,0,0,0,0 monster Dracula 1389,5,1800000,0,1 bossnia_02,0,0,0,0 monster Drake 1112,10,1800000,0,1 bossnia_02,0,0,0,0 monster Detale 1719,2,7200000,0,1 bossnia_02,0,0,0,0 monster Maya 1147,10,1800000,0,1 bossnia_02,0,0,0,0 monster Mistress 1059,1,1800000,0,1 bossnia_02,0,0,0,0 monster Baphomet 1039,10,1800000,0,1 bossnia_02,0,0,0,0 monster Egnigem Cenia 1658,10,1800000,0,1 bossnia_02,0,0,0,0 monster Amon Ra 1511,1,1800000,0,1 bossnia_02,0,0,0,0 monster Atroce 1785,10,1800000,0,1 bossnia_02,0,0,0,0 monster Vesper 1685,2,7200000,0,1 bossnia_02,0,0,0,0 monster Eddga 1115,1,1800000,0,1 bossnia_02,0,0,0,0 monster Osiris 1038,10,7200000,0,1 bossnia_02,0,0,0,0 monster Orc Lord 1190,10,7200000,0,1 bossnia_02,0,0,0,0 monster Orc Hero 1087,2,1800000,0,1 bossnia_02,0,0,0,0 monster Samurai Specter 1492,1,3600000,0,1 bossnia_02,0,0,0,0 monster Moonlight Flower 1150,1,3600000,0,1 bossnia_02,0,0,0,0 monster Lord of the Dead 1373,1,3600000,0,1 bossnia_02,0,0,0,0 monster Ktullanux 1779,2,7200000,0,1 bossnia_02,0,0,0,0 monster Kiel D-01 1734,2,7200000,0,1 bossnia_02,0,0,0,0 monster Thanatos Phantom 1708,2,7200000,0,1 bossnia_02,0,0,0,0 monster Lady Tanee 1688,1,3600000,0,1 bossnia_02,0,0,0,0 monster Tao Gunka 1583,1,3600000,0,1 bossnia_02,0,0,0,0 monster Turtle General 1312,10,7200000,0,1 bossnia_02,0,0,0,0 monster Pharaoh 1157,2,3600000,0,1 bossnia_02,0,0,0,0 monster Stormy Knight 1251,2,3600000,0,1 bossnia_02,0,0,0,0 monster Falling Bishop 1871,5,7200000,0,1 bossnia_02,0,0,0,0 monster Phreeoni 1159,10,7200000,0,1 bossnia_02,0,0,0,0 monster Golden Thief Bug 1086,10,3600000,0,1 bossnia_02,0,0,0,0 monster Evil Snake Lord 1418,10,7200000,0,1 bossnia_02,0,0,0,0 monster RSX-0806 1623,5,7200000,0,1 bossnia_02,0,0,0,0 monster Assassin Cross Eremes 1647,1,0,0,1 bossnia_02,137,118,1,1 monster Whitesmith Howard 1648,1,0,0,1 bossnia_02,122,195,1,1 monster Beelzebub 1873,1,0,0,1 bossnia_02,45,118,1,1 monster Beelzebub 1873,1,0,0,1 bossnia_02,196,122,1,1 monster Valkyrie Randgris 1751,1,0,0,1 bossnia_02,142,61,1,1 monster Ifrit 1832,1,0,0,1 //---------------------------------------------------------------------------- // bossnia_03 - Bossnia //---------------------------------------------------------------------------- bossnia_03,0,0,0,0 monster Garm 1252,5,7200000,0,1 bossnia_03,0,0,0,0 monster Gloom Under Night 1768,2,7200000,0,1 bossnia_03,0,0,0,0 monster Dark Lord 1272,3,7200000,0,1 bossnia_03,0,0,0,0 monster Doppelganger 1046,10,7200000,0,1 bossnia_03,0,0,0,0 monster Dracula 1389,5,1800000,0,1 bossnia_03,0,0,0,0 monster Drake 1112,10,1800000,0,1 bossnia_03,0,0,0,0 monster Detale 1719,2,7200000,0,1 bossnia_03,0,0,0,0 monster Maya 1147,10,1800000,0,1 bossnia_03,0,0,0,0 monster Mistress 1059,1,1800000,0,1 bossnia_03,0,0,0,0 monster Baphomet 1039,10,1800000,0,1 bossnia_03,0,0,0,0 monster Egnigem Cenia 1658,10,1800000,0,1 bossnia_03,0,0,0,0 monster Amon Ra 1511,1,1800000,0,1 bossnia_03,0,0,0,0 monster Atroce 1785,10,1800000,0,1 bossnia_03,0,0,0,0 monster Vesper 1685,2,7200000,0,1 bossnia_03,0,0,0,0 monster Eddga 1115,1,1800000,0,1 bossnia_03,0,0,0,0 monster Osiris 1038,10,7200000,0,1 bossnia_03,0,0,0,0 monster Orc Lord 1190,10,7200000,0,1 bossnia_03,0,0,0,0 monster Orc Hero 1087,2,1800000,0,1 bossnia_03,0,0,0,0 monster Samurai Specter 1492,1,3600000,0,1 bossnia_03,0,0,0,0 monster Moonlight Flower 1150,1,3600000,0,1 bossnia_03,0,0,0,0 monster Lord of the Dead 1373,1,3600000,0,1 bossnia_03,0,0,0,0 monster Ktullanux 1779,2,7200000,0,1 bossnia_03,0,0,0,0 monster Kiel D-01 1734,2,7200000,0,1 bossnia_03,0,0,0,0 monster Thanatos Phantom 1708,2,7200000,0,1 bossnia_03,0,0,0,0 monster Lady Tanee 1688,1,3600000,0,1 bossnia_03,0,0,0,0 monster Tao Gunka 1583,1,3600000,0,1 bossnia_03,0,0,0,0 monster Turtle General 1312,10,7200000,0,1 bossnia_03,0,0,0,0 monster Pharaoh 1157,2,3600000,0,1 bossnia_03,0,0,0,0 monster Stormy Knight 1251,2,3600000,0,1 bossnia_03,0,0,0,0 monster Falling Bishop 1871,5,7200000,0,1 bossnia_03,0,0,0,0 monster Phreeoni 1159,10,7200000,0,1 bossnia_03,0,0,0,0 monster Golden Thief Bug 1086,10,3600000,0,1 bossnia_03,0,0,0,0 monster Evil Snake Lord 1418,10,7200000,0,1 bossnia_03,0,0,0,0 monster RSX-0806 1623,5,7200000,0,1 bossnia_03,0,0,0,0 monster Assassin Cross Eremes 1647,1,0,0,1 bossnia_03,137,118,1,1 monster Whitesmith Howard 1648,1,0,0,1 bossnia_03,122,195,1,1 monster Beelzebub 1873,1,0,0,1 bossnia_03,45,118,1,1 monster Beelzebub 1873,1,0,0,1 bossnia_03,196,122,1,1 monster Valkyrie Randgris 1751,1,0,0,1 bossnia_03,142,61,1,1 monster Ifrit 1832,1,0,0,1 //---------------------------------------------------------------------------- // bossnia_04 - Bossnia //---------------------------------------------------------------------------- bossnia_04,0,0,0,0 monster Garm 1252,5,7200000,0,1 bossnia_04,0,0,0,0 monster Gloom Under Night 1768,2,7200000,0,1 bossnia_04,0,0,0,0 monster Dark Lord 1272,3,7200000,0,1 bossnia_04,0,0,0,0 monster Doppelganger 1046,10,7200000,0,1 bossnia_04,0,0,0,0 monster Dracula 1389,5,1800000,0,1 bossnia_04,0,0,0,0 monster Drake 1112,10,1800000,0,1 bossnia_04,0,0,0,0 monster Detale 1719,2,7200000,0,1 bossnia_04,0,0,0,0 monster Maya 1147,10,1800000,0,1 bossnia_04,0,0,0,0 monster Mistress 1059,1,1800000,0,1 bossnia_04,0,0,0,0 monster Baphomet 1039,10,1800000,0,1 bossnia_04,0,0,0,0 monster Egnigem Cenia 1658,10,1800000,0,1 bossnia_04,0,0,0,0 monster Amon Ra 1511,1,1800000,0,1 bossnia_04,0,0,0,0 monster Atroce 1785,10,1800000,0,1 bossnia_04,0,0,0,0 monster Vesper 1685,2,7200000,0,1 bossnia_04,0,0,0,0 monster Eddga 1115,1,1800000,0,1 bossnia_04,0,0,0,0 monster Osiris 1038,10,7200000,0,1 bossnia_04,0,0,0,0 monster Orc Lord 1190,10,7200000,0,1 bossnia_04,0,0,0,0 monster Orc Hero 1087,2,1800000,0,1 bossnia_04,0,0,0,0 monster Samurai Specter 1492,1,3600000,0,1 bossnia_04,0,0,0,0 monster Moonlight Flower 1150,1,3600000,0,1 bossnia_04,0,0,0,0 monster Lord of the Dead 1373,1,3600000,0,1 bossnia_04,0,0,0,0 monster Ktullanux 1779,2,7200000,0,1 bossnia_04,0,0,0,0 monster Kiel D-01 1734,2,7200000,0,1 bossnia_04,0,0,0,0 monster Thanatos Phantom 1708,2,7200000,0,1 bossnia_04,0,0,0,0 monster Lady Tanee 1688,1,3600000,0,1 bossnia_04,0,0,0,0 monster Tao Gunka 1583,1,3600000,0,1 bossnia_04,0,0,0,0 monster Turtle General 1312,10,7200000,0,1 bossnia_04,0,0,0,0 monster Pharaoh 1157,2,3600000,0,1 bossnia_04,0,0,0,0 monster Stormy Knight 1251,2,3600000,0,1 bossnia_04,0,0,0,0 monster Falling Bishop 1871,5,7200000,0,1 bossnia_04,0,0,0,0 monster Phreeoni 1159,10,7200000,0,1 bossnia_04,0,0,0,0 monster Golden Thief Bug 1086,10,3600000,0,1 bossnia_04,0,0,0,0 monster Evil Snake Lord 1418,10,7200000,0,1 bossnia_04,0,0,0,0 monster RSX-0806 1623,5,7200000,0,1 bossnia_04,0,0,0,0 monster Assassin Cross Eremes 1647,1,0,0,1 bossnia_04,137,118,1,1 monster Whitesmith Howard 1648,1,0,0,1 bossnia_04,122,195,1,1 monster Beelzebub 1873,1,0,0,1 bossnia_04,45,118,1,1 monster Beelzebub 1873,1,0,0,1 bossnia_04,196,122,1,1 monster Valkyrie Randgris 1751,1,0,0,1 bossnia_04,142,61,1,1 monster Ifrit 1832,1,0,0,1 Please advise, Thanks,
  2. Okay Sir will try and let you know. how to change the requirements for them to enter? what i want is they need lotti ticket before they can enter to the map. Please advise, Thanks,
  3. Hi All, I would like to request a script that will automatically announce the player who got max level of 99 and job 50 and get the 2 rewards which is 30x lotti ticket and 2x +7 ARD. The reward can only get by top 100 players who reached 99/50 and announce how many players left can get the reward. I tried to used Sir Emistry script (http://upaste.me/r/9afdbf) but it's a bugged the player will automatically go to level 99/50. Please advise, Thanks,
  4. Im kinda only 2/10 on scripting...I can understand simple ones though here's a lotti girl script i DL here ( i forgot whom it was) -------------------------------------------------------------------------------------------------------------------------- prontera,141,226,6 script Lotti Girl 714,{ mes "[Lotti Girl]"; mes "Hello Sir! Are you out"; mes "shopping in the city?!"; next; mes "[Lotti Girl]"; mes "I'm Lotti! I'll exchange cool"; mes "random prizes for every"; mes "^ff00001 Premium Ticket^000000."; next; mes "[Lotti Girl]"; mes "Our Grand prize is:"; mes "^ff0000+8 Armor Refine Deed^000000"; mes "Special prizes are:"; mes "^ff0000+7 Armor Refine Deed^000000"; mes "^ff0000+10 Weapon Refine Deed^000000"; mes "and ^ff0000+6 Armor Refine Deed^000000"; next; mes "[Lotti Girl]"; mes "You can still get random item"; mes "if you failed to get the grand"; mes "prize and special prizes."; if (countitem(7608) < 1) close; next; if(select("Deal me in!:No way...")==2) close; mes "[Lotti Girl]"; mes "Here we go..."; delitem 7608,1; set .@Total,8; //<%>,<ItemID>,<Amount> setarray .@P1[0],0,8012,1; setarray .@P2[0],1,8011,1; setarray .@P3[0],5,8006,1; setarray .@P4[0],20,8010,1; setarray .@P5[0],90,13517,5; setarray .@P6[0],80,12080,10; setarray .@P7[0],90,30110,5; setarray .@P8[0],80,12075,10; setarray .@Default[0],30095,5; set .@i, rand(1,.@Total); if (rand(1,100) > getd(".@P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2) { getitem .@Default[.@j], .@Default[.@j+1]; if(!.@k[0]) setarray .@k[0], .@Default[.@j], .@Default[.@j+1]; } } else{ for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2) { getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) { set .@gz,.@i; setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); break; } } } if(1<=.@gz&&.@gz<=4) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0; specialeffect2 248; close; } -------------------------------------------------------------------------------------------------------------------------- may someone pls edit it for me... bump
  5. Dynasty

    Lotti Girl

    Change this: - script Lotti -1,{ for this: - script Lotti Girl -1,{ actually dont know how to fix this.
  6. Currently testing it, well just wait if it announces Anyway thanks for the quick reply sir Boom :) Hi. Download the Lotti Gurl Script by Anakid here: http://rathena.org/board/topic/83017-pro-lotti-girl-refine-master/ Make sure you edited the .@Total variable and the required array of course. set .@Total,12; //<%>,<ItemID>,<Amount> setarray .@P1[0], 5, 6234,1; //+7 Armor Refine Ticket setarray .@P2[0], 5, 6230,1; //+7 Weapon Refine Ticket setarray .@P3[0], 10, 6235,1; //+6 Armor Refine Ticket setarray .@P4[0], 10, 6231,1; //+6 Weapon Refine Ticket setarray .@P5[0], 20, 12202,10; //Steamed Tongue setarray .@P6[0], 20, 12203,10; //Steamed Scorpion setarray .@P7[0], 20, 12204,10; //Dragon Breath Cocktail setarray .@P8[0], 20, 12205,10; //Hwergelmir's Tonic setarray .@P9[0], 20, 12206,10; //Cooked Nine Tail's Tails setarray .@P10[0], 20, 12207,10; //Stew Of Immortality setarray .@P11[0], 70, 663,150; //Korean Rice Cake x 150 setarray .@P12[0], 90, 663,100; //Korean Rice Cake x 100 setarray .@Default[0], 663,50; //Korean Rice Cake x 50 This line of code here states that only items at .@P1[0] ~ .@P4[0] will be broadcasted if the player luckily gets the reward. if(1<=.@gz&&.@gz<=4) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0; specialeffect2 248; close; Its working sir. Thanks a lot ! /no1
  7. Hi. Download the Lotti Gurl Script by Anakid here: http://rathena.org/board/topic/83017-pro-lotti-girl-refine-master/ Make sure you edited the .@Total variable and the required array of course. set .@Total,12; //<%>,<ItemID>,<Amount> setarray .@P1[0], 5, 6234,1; //+7 Armor Refine Ticket setarray .@P2[0], 5, 6230,1; //+7 Weapon Refine Ticket setarray .@P3[0], 10, 6235,1; //+6 Armor Refine Ticket setarray .@P4[0], 10, 6231,1; //+6 Weapon Refine Ticket setarray .@P5[0], 20, 12202,10; //Steamed Tongue setarray .@P6[0], 20, 12203,10; //Steamed Scorpion setarray .@P7[0], 20, 12204,10; //Dragon Breath Cocktail setarray .@P8[0], 20, 12205,10; //Hwergelmir's Tonic setarray .@P9[0], 20, 12206,10; //Cooked Nine Tail's Tails setarray .@P10[0], 20, 12207,10; //Stew Of Immortality setarray .@P11[0], 70, 663,150; //Korean Rice Cake x 150 setarray .@P12[0], 90, 663,100; //Korean Rice Cake x 100 setarray .@Default[0], 663,50; //Korean Rice Cake x 50 This line of code here states that only items at .@P1[0] ~ .@P4[0] will be broadcasted if the player luckily gets the reward. if(1<=.@gz&&.@gz<=4) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0; specialeffect2 248; close;
  8. if( .@gz && .@gz <= 10 ) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0; Thanks again sir emistry, last question how can i disable this? setarray .@Default[0],13517,1; so it will only choose on the arrays i added...because the npc always give default, and few on the array items.
  9. if( .@gz && .@gz <= 10 ) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0;
  10. Yup it would act like lotti girl its like give this ticket and he will give the items something like this format %,itemid,amount something like that bump the percentage here is like we have in our db? //<%>,<ItemID>,<Amount> setarray .@P1[0],600,8001,1; 600 = 6% chance ? or 600 = 600% chance ?
  11. Thanks Skorm, can you help me where to put that random in this script? // http://rathena.org/board/topic/83017-pro-lotti-girl-refine-master/ prontera,139,172,4 script Lotti Girl 714,{ mes "[Lotti Girl]"; mes "Hello Sir! Are you out"; mes "shopping in the city?!"; next; mes "[Lotti Girl]"; mes "I'm Lotti! I'll exchange cool"; mes "random prizes for every"; mes "^ff00001 Lottery Ticket^000000."; next; mes "[Lotti Girl]"; mes "Our Grand prize is:"; mes "^ff0000+9 Weapon Refine Deed^000000"; mes "^ff0000+10 Weapon Refine Deed^000000"; mes "^ff0000+9 Armor Refine Deed^000000"; mes "^ff0000+10 Armor Refine Deed^000000"; next; mes "[Lotti Girl]"; mes "Special prizes are:"; mes "^ff0000+5 Armor Refine Deed^000000"; mes "^ff0000+6 Armor Refine Deed^000000"; mes "^ff0000+7 Armor Refine Deed^000000"; mes "^ff0000+8 Armor Refine Deed^000000"; mes "^ff0000+5 Weapon Refine Deed^000000"; mes "^ff0000+6 Weapon Refine Deed^000000"; mes "^ff0000+7 Weapon Refine Deed^000000"; mes "^ff0000+8 Weapon Refine Deed^000000"; next; mes "[Lotti Girl]"; mes "MVP Card & Headgear prizes are:"; mes "^ff0000Tao Gunka Card^000000"; mes "^ff0000Turtle General Card^000000"; mes "^ff0000Japan Anniversary Hat^000000"; next; mes "[Lotti Girl]"; mes "You can still get random item"; mes "if you failed to get the grand"; mes "prize and special prizes."; next; mes "Consolation prizes are:"; mes "^ff0000Food Buffs^000000"; mes "^ff0000Healing Foods^000000"; mes "^ff0000Random Dye Box^000000"; if (countitem(7528) < 1) close; next; if(select("Deal me in!:No way...")==2) close; mes "[Lotti Girl]"; mes "Here we go..."; delitem 7528,1; set .@Total,33; //<%>,<ItemID>,<Amount> setarray .@P1[0],6,8001,1; setarray .@P2[0],5,8002,1; setarray .@P3[0],4,8003,1; setarray .@P4[0],3,8004,1; setarray .@P5[0],2,8005,1; setarray .@P6[0],1,8006,1; setarray .@P7[0],6,8007,1; setarray .@P8[0],5,8008,1; setarray .@P9[0],4,8009,1; setarray .@P10[0],3,8010,1; setarray .@P11[0],2,8011,1; setarray .@P12[0],1,8012,1; setarray .@P13[0],20,13517,3; setarray .@P14[0],20,12080,5; setarray .@P15[0],20,12075,5; setarray .@P16[0],20,12085,5; setarray .@P17[0],20,12090,5; setarray .@P18[0],20,12095,5; setarray .@P18[0],20,12100,5; setarray .@P19[0],50,26000,1; setarray .@P20[0],40,7528,1; setarray .@P21[0],1,4305,1; setarray .@P22[0],45,12033,10; setarray .@P23[0],45,13548,2; setarray .@P24[0],60,12709,20; setarray .@P25[0],65,663,50; setarray .@P26[0],50,26048,1; setarray .@P27[0],1,5846,1; setarray .@P28[0],1,4302,1; setarray .@P29[0],80,13517,1; setarray .@P30[0],80,13517,1; setarray .@P31[0],80,13517,1; setarray .@P32[0],80,13517,1; setarray .@P33[0],80,13517,1; setarray .@Default[0],13517,1; set .@i, rand(1,.@Total); if (rand(1,100) > getd(".@P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2) { getitem .@Default[.@j], .@Default[.@j+1]; if(!.@k[0]) setarray .@k[0], .@Default[.@j], .@Default[.@j+1]; } } else{ for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2) { getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) { set .@gz,.@i; setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); break; } } } if(1<=.@gz&&.@gz<=4) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0; specialeffect2 248; close; } and how can i configure the announcement when getting 10% and below items from it? Thanks!
  12. i have this now delitem 7539,15; set .@Total,21; //<%>,<ItemID>,<Amount> setarray .@P1[0],10,8005,1; setarray .@P2[0],10,8006,1; setarray .@P3[0],10,8011,1; setarray .@P4[0],10,8012,1; setarray .@P5[0],20,616,20; setarray .@P6[0],25,14232,3; setarray .@P7[0],10,13583,1; setarray .@P8[0],50,26000,10; setarray .@P9[0],50,12246,5; setarray .@P10[0],50,12080,10; setarray .@P11[0],50,12075,10; setarray .@P12[0],50,12085,10; setarray .@P13[0],50,12090,10; setarray .@P14[0],50,12095,10; setarray .@P15[0],50,12100,10; setarray .@P16[0],10,18785,1; setarray .@P17[0],20,18632,1; setarray .@P18[0],20,18633,1; setarray .@P19[0],20,18634,1; setarray .@P20[0],20,18635,1; setarray .@P21[0],20,5335,1; setarray .@P21[0],10,5486,1; setarray .@Default[0],12709,60; set .@i, rand(1,.@Total); if (rand(1,100) > getd(".@P"+.@i+"[0]")) { but still default occurs alot, is there a way to remove the default and make the script choose only from those 21 array?? and how can i make it announce for 10% and below? i dont know where to change but i think it should be here somewhere.. if(1<=.@gz&&.@gz<=4) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl!",0; specialeffect2 248; close; } bump~
  13. sir for your lotti girl .. how can i make it one click ? EDIT: sir I have made modifications on your lotti girl script to make it just one click but when only 1 ticket is in my inventory it doesnt delete the item and keeps on giving item. what should I do ? here's the script.. turbo_room,72,98,6 script Lotti Girl 714,{ if (countitem(30177) < 1) { mes "You need at least 1 Lotti Ticket!"; close; next; } if (countitem(30177) > 1) { delitem 30177,1; set .@Total,8; } //<%>,<ItemID>,<Amount> setarray .@P1[0],0,30327,1; setarray .@P2[0],1,30352,1; setarray .@P3[0],5,30188,1; setarray .@P4[0],20,30161,1; setarray .@P5[0],90,30176,5; setarray .@P6[0],80,30173,10; setarray .@P7[0],90,30159,5; setarray .@P8[0],80,674,10; setarray .@Default[0],673,5; set .@i, rand(1,.@Total); if (rand(1,100) > getd(".@P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2) { getitem .@Default[.@j], .@Default[.@j+1]; if(!.@k[0]) setarray .@k[0], .@Default[.@j], .@Default[.@j+1]; } } else{ for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2) { getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) { set .@gz,.@i; setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); break; } } } if(1<=.@gz&&.@gz<=4) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl!",0; specialeffect2 248; close; }
  14. Add: if(Weight >= MaxWeight/2) goto Low; Low: mes "You are Overweight!"; close; why when i put this script it will keep telling You are Overweight! if(Weight >= MaxWeight/2) goto Low; and Low: mes "You are Overweight!"; close; but when this script only everything works fine the npc will closed automatic but i want to add message when the player is overweight the npc will tell. if(Weight >= MaxWeight/2) Where did you put it? Can you post your script? prontera,141,226,6 script Lotti Girl 714,{ mes "[Lotti Girl]"; mes "Hello Sir! Are you out"; mes "shopping in the city?!"; next; mes "[Lotti Girl]"; mes "I'm Lotti! I'll exchange cool"; mes "random prizes for every"; mes "^ff00001 Premium Ticket^000000."; next; mes "[Lotti Girl]"; mes "Our Grand prize is:"; mes "^ff0000Combat Knife^000000"; mes "Special prizes are:"; mes "^ff0000+7 Armor Refine Deed^000000"; mes "^ff0000+10 Weapon Refine Deed^000000"; mes "and ^ff0000+6 Armor Refine Deed^000000"; next; mes "[Lotti Girl]"; mes "You can still get random item"; mes "if you failed to get the grand"; mes "prize and special prizes."; if (countitem(7608) < 1) close; next; if(Weight >= MaxWeight/2) goto Low; Low: mes "You are Overweight!"; close; next; if(select("Deal me in!:No way...")==2) close; mes "[Lotti Girl]"; mes "Here we go..."; delitem 7608,1; set .@Total,2;//<%>,<ItemID>,<Amount> setarray .@P1[0],10,6233,1; setarray .@P2[0],20,1228,1; setarray .@P3[0],90,2423,1; setarray .@Default[0], 14232,5; set .@i, rand(1,.@Total); if (rand(1,100) > getd(".@P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2) { getitem .@Default[.@j], .@Default[.@j+1]; if(!.@k[0]) setarray .@k[0], .@Default[.@j], .@Default[.@j+1]; }} else{ for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2) { getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) { set .@gz,.@i; setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); break; } } } if(1<=.@gz&&.@gz<=4) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0; specialeffect2 248; close;} // http://rathena.org/board/topic/83017-pro-lotti-girl-refine-master/ prontera,141,226,6 script Lotti Girl 714,{ if(Weight >= MaxWeight/2) goto Low; mes "[Lotti Girl]"; mes "Hello Sir! Are you out"; mes "shopping in the city?!"; next; mes "[Lotti Girl]"; mes "I'm Lotti! I'll exchange cool"; mes "random prizes for every"; mes "^ff00001 Premium Ticket^000000."; next; mes "[Lotti Girl]"; mes "Our Grand prize is:"; mes "^ff0000+8 Armor Refine Deed^000000"; mes "Special prizes are:"; mes "^ff0000+7 Armor Refine Deed^000000"; mes "^ff0000+10 Weapon Refine Deed^000000"; mes "and ^ff0000+6 Armor Refine Deed^000000"; next; mes "[Lotti Girl]"; mes "You can still get random item"; mes "if you failed to get the grand"; mes "prize and special prizes."; if (countitem(7608) < 1) close; next; if(select("Deal me in!:No way...")==2) close; mes "[Lotti Girl]"; mes "Here we go..."; delitem 7608,1; set .@Total,8; //<%>,<ItemID>,<Amount> setarray .@P1[0],0,8012,1; setarray .@P2[0],1,8011,1; setarray .@P3[0],5,8006,1; setarray .@P4[0],20,8010,1; setarray .@P5[0],90,13517,5; setarray .@P6[0],80,12080,10; setarray .@P7[0],90,30110,5; setarray .@P8[0],80,12075,10; setarray .@Default[0],30095,5; set .@i, rand(1,.@Total); if (rand(1,100) > getd(".@P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2) { getitem .@Default[.@j], .@Default[.@j+1]; if(!.@k[0]) setarray .@k[0], .@Default[.@j], .@Default[.@j+1]; } } else{ for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2) { getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) { set .@gz,.@i; setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); break; } } } if(1<=.@gz&&.@gz<=4) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0; specialeffect2 248; close; Low: mes "You are Overweight!"; close; }
  15. Add: if(Weight >= MaxWeight/2) goto Low; Low: mes "You are Overweight!"; close; why when i put this script it will keep telling You are Overweight! if(Weight >= MaxWeight/2) goto Low; and Low: mes "You are Overweight!"; close; but when this script only everything works fine the npc will closed automatic but i want to add message when the player is overweight the npc will tell. if(Weight >= MaxWeight/2) Where did you put it? Can you post your script? prontera,141,226,6 script Lotti Girl 714,{ mes "[Lotti Girl]"; mes "Hello Sir! Are you out"; mes "shopping in the city?!"; next; mes "[Lotti Girl]"; mes "I'm Lotti! I'll exchange cool"; mes "random prizes for every"; mes "^ff00001 Premium Ticket^000000."; next; mes "[Lotti Girl]"; mes "Our Grand prize is:"; mes "^ff0000Combat Knife^000000"; mes "Special prizes are:"; mes "^ff0000+7 Armor Refine Deed^000000"; mes "^ff0000+10 Weapon Refine Deed^000000"; mes "and ^ff0000+6 Armor Refine Deed^000000"; next; mes "[Lotti Girl]"; mes "You can still get random item"; mes "if you failed to get the grand"; mes "prize and special prizes."; if (countitem(7608) < 1) close; next; if(Weight >= MaxWeight/2) goto Low; Low: mes "You are Overweight!"; close; next; if(select("Deal me in!:No way...")==2) close; mes "[Lotti Girl]"; mes "Here we go..."; delitem 7608,1; set .@Total,2;//<%>,<ItemID>,<Amount> setarray .@P1[0],10,6233,1; setarray .@P2[0],20,1228,1; setarray .@P3[0],90,2423,1; setarray .@Default[0], 14232,5; set .@i, rand(1,.@Total); if (rand(1,100) > getd(".@P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2) { getitem .@Default[.@j], .@Default[.@j+1]; if(!.@k[0]) setarray .@k[0], .@Default[.@j], .@Default[.@j+1]; }} else{ for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2) { getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) { set .@gz,.@i; setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); break; } } } if(1<=.@gz&&.@gz<=4) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0; specialeffect2 248; close;}
  16. prontera,155,181,5 script Lotti Girl 100,{ mes "[Lotti Girl]"; mes "It costs "+ .cost[1] +"x "+ getitemname( .cost[0] ) +" to play."; mes " "; for ( .@i = 0; .@i < 20; .@i++ ) mes $lotti_girl_ladder$[.@i]; if ( countitem( .cost[0] ) < .cost[1] ) close; next; if ( select( "Deal me in!", "No way..." ) == 2 ) close; mes "[Lotti Girl]"; while (1) { mes "Here we go..."; delitem .cost[0], .cost[1]; .@rand = rand(.totalchance); .@r = 0; // <-- think you forgot to put this while ( ( .@rand = .@rand - getd( ".p"+ .@r +"[0]" ) ) >= 0 ) .@r++; .@size = getarraysize( getd(".p"+ .@r ) ); for ( .@i = 1; .@i < .@size; .@i += 2 ) getitem getd( ".p"+ .@r +"["+ .@i +"]" ), getd( ".p"+ .@r +"["+( .@i +1 )+"]" ); if ( getd( ".p"+ .@r +"[0]" ) < 50 ) // announce if below 50% chance announce "Congratulations to "+strcharinfo(0)+" for getting "+ .ann$[.@r] +"!", 0; if ( getd( ".p"+ .@r +"[0]" ) < 10 ) { // score the ladder if below 10% chance copyarray $lotti_girl_ladder$[1], $lotti_girl_ladder$[0], 19; $lotti_girl_ladder$ = strcharinfo(0) +" gains "+ .ann$[.@r] +" at "+ gettimestr( "%d/%m/%Y %H:%M %p", 21 ); } mes " "; mes "wanna try again ?"; next; if ( select( "Yes", "No" ) == 2 ) close; mes "[Lotti Girl]"; if ( countitem( .cost[0] ) < .cost[1] ) { mes "it seems you have ran out of "+ getitemname( .cost[0] ); close; } } close; OnInit: // setarray .p1, 70, 501,25; // debugging ... // setarray .p2, 70, 502,1; // setarray .p3, 40, 503,1; // setarray .p4, 40, 504,1; // setarray .p5, 40, 505,1; // setarray .p6, 50, 506,1, 507,1, 508,1, 509,1; // setarray .p7, 25, 512,1; // setarray .p8, 5, 513,1; setarray .p1, 70, 607,25; setarray .p2, 70, 13710,1; setarray .p3, 40, 5471,1; setarray .p4, 40, 5210,1; setarray .p5, 40, 5224,1; setarray .p6, 50, 2357,1, 2524,1, 2421,1, 2115,1; setarray .p7, 25, 2701,1; setarray .p8, 5, 2394,1; setarray .p9, 30+30+60+60+60+50+75+95, 12214,1; // default ... the chance are added up by 100-n% setarray .cost, 7227,300; .total = 9; freeloop 1; .@i = 1; while ( .@i <= .total ) { .totalchance = .totalchance + getd(".p"+ .@i ); .@j = 1; .@size = getarraysize( getd(".p"+ .@i ) ); while ( .@j < .@size ) { .ann$[.@i] = .ann$[.@i] + getd( ".p"+ .@i +"["+( .@j +1 )+"]" ) +"x "+ getitemname( getd( ".p"+ .@i +"["+ .@j +"]" ) ) +( ( .@j == .@size -2 )? "":"," ); // I think Euphy forgotten to make announcement when configuration has set more than 1 items .@j += 2; } .@i++; } freeloop 0; } yeah. The default item is convex mirror box. How to make it a random one. for example the default items are. YGG Box, Convex Mirror Box, ESB and other.. how to set it?
  17. Maybe you mean 1 random item in the list of randoms items by default ? prontera,155,181,5 script Lotti Girl 100,{ mes "[Lotti Girl]"; mes "It costs "+ .cost[1] +"x "+ getitemname( .cost[0] ) +" to play."; mes " "; for ( .@i = 0; .@i < 20; .@i++ ) mes $lotti_girl_ladder$[.@i]; if ( countitem( .cost[0] ) < .cost[1] ) close; next; if ( select( "Deal me in!", "No way..." ) == 2 ) close; mes "[Lotti Girl]"; while (1) { callsub L_default; mes "Here we go..."; delitem .cost[0], .cost[1]; .@rand = rand(.totalchance); .@r = 0; // <-- think you forgot to put this while ( ( .@rand = .@rand - getd( ".p"+ .@r +"[0]" ) ) >= 0 ) .@r++; .@size = getarraysize( getd(".p"+ .@r ) ); for ( .@i = 1; .@i < .@size; .@i += 2 ) getitem getd( ".p"+ .@r +"["+ .@i +"]" ), getd( ".p"+ .@r +"["+( .@i +1 )+"]" ); if ( getd( ".p"+ .@r +"[0]" ) < 50 ) // announce if below 50% chance announce "Congratulations to "+strcharinfo(0)+" for getting "+ .ann$[.@r] +"!", 0; if ( getd( ".p"+ .@r +"[0]" ) < 10 ) { // score the ladder if below 10% chance copyarray $lotti_girl_ladder$[1], $lotti_girl_ladder$[0], 19; $lotti_girl_ladder$ = strcharinfo(0) +" gains "+ .ann$[.@r] +" at "+ gettimestr( "%d/%m/%Y %H:%M %p", 21 ); } mes " "; mes "wanna try again ?"; next; if ( select( "Yes", "No" ) == 2 ) close; mes "[Lotti Girl]"; if ( countitem( .cost[0] ) < .cost[1] ) { mes "it seems you have ran out of "+ getitemname( .cost[0] ); close; } } close; OnInit: // setarray .p1, 70, 501,25; // debugging ... // setarray .p2, 70, 502,1; // setarray .p3, 40, 503,1; // setarray .p4, 40, 504,1; // setarray .p5, 40, 505,1; // setarray .p6, 50, 506,1, 507,1, 508,1, 509,1; // setarray .p7, 25, 512,1; // setarray .p8, 5, 513,1; setarray .p1, 70, 607,25; setarray .p2, 70, 13710,1; setarray .p3, 40, 5471,1; setarray .p4, 40, 5210,1; setarray .p5, 40, 5224,1; setarray .p6, 50, 2357,1, 2524,1, 2421,1, 2115,1; setarray .p7, 25, 2701,1; setarray .p8, 5, 2394,1; callsub L_default; setarray .cost, 7227,300; .total = 9; freeloop 1; .@i = 1; while ( .@i <= .total ) { .totalchance = .totalchance + getd(".p"+ .@i ); .@j = 1; .@size = getarraysize( getd(".p"+ .@i ) ); while ( .@j < .@size ) { .ann$[.@i] = .ann$[.@i] + getd( ".p"+ .@i +"["+( .@j +1 )+"]" ) +"x "+ getitemname( getd( ".p"+ .@i +"["+ .@j +"]" ) ) +( ( .@j == .@size -2 )? "":"," ); // I think Euphy forgotten to make announcement when configuration has set more than 1 items .@j += 2; } .@i++; } freeloop 0; end; L_default: deletearray .p9; setarray .p9, 30+30+60+60+60+50+75+95, callfunc( "F_RandMes", 5, 12214,502,503,504,505 ),1; // default ... the chance are added up by 100-n% return; } List of randoms items callfunc( "F_RandMes", 5, 12214,502,503,504,505 )// count, item ID, item ID..
  18. thanks and one more thing how if i want base on SUCCESS Rate like the LOTTI GURL ?
  19. prontera,139,229,5 script Lotti Girl 864,{ mes "[Lotti Girl]"; mes "It costs "+ .cost[1] +"x "+ getitemname( .cost[0] ) +" to play."; mes " "; for ( .@i = 0; .@i < 20; .@i++ ) mes $lotti_girl_ladder$[.@i]; if ( countitem( .cost[0] ) < .cost[1] ) close; next; if ( select( "Deal me in!", "No way..." ) == 2 ) close; mes "[Lotti Girl]"; while (1) { mes "Here we go..."; delitem .cost[0], .cost[1]; .@rand = rand(.totalchance); .@r = 0; // <-- think you forgot to put this while ( ( .@rand = .@rand - getd( ".p"+ .@r +"[0]" ) ) >= 0 ) .@r++; .@size = getarraysize( getd(".p"+ .@r ) ); for ( .@i = 1; .@i < .@size; .@i += 2 ) getitem getd( ".p"+ .@r +"["+ .@i +"]" ), getd( ".p"+ .@r +"["+( .@i +1 )+"]" ); if ( getd( ".p"+ .@r +"[0]" ) < 50 ) // announce if below 50% chance announce "Congratulations to "+strcharinfo(0)+" for getting "+ .ann$[.@r] +"!", 0; if ( getd( ".p"+ .@r +"[0]" ) < 10 ) { // score the ladder if below 10% chance copyarray $lotti_girl_ladder$[1], $lotti_girl_ladder$[0], 19; $lotti_girl_ladder$ = strcharinfo(0) +" gains "+ .ann$[.@r] +" at "+ gettimestr( "%d/%m/%Y %H:%M %p", 21 ); } mes " "; mes "wanna try again ?"; next; if ( select( "Yes", "No" ) == 2 ) close; mes "[Lotti Girl]"; if ( countitem( .cost[0] ) < .cost[1] ) { mes "it seems you have ran out of "+ getitemname( .cost[0] ); close; } } close; OnInit: // setarray .p1, 70, 501,25; // debugging ... // setarray .p2, 70, 502,1; // setarray .p3, 40, 503,1; // setarray .p4, 40, 504,1; // setarray .p5, 40, 505,1; // setarray .p6, 50, 506,1, 507,1, 508,1, 509,1; // setarray .p7, 25, 512,1; // setarray .p8, 5, 513,1; setarray .p1, 70, 14232,1; setarray .p2, 10, 2115,1; setarray .p3, 50, 13582,1; setarray .p4, 40, 5210,1; setarray .p5, 10, 2421,1; setarray .p6, 5, 2524,1; setarray .p7, 5, 2357,1; setarray .p8, 5, 2729,1; setarray .p9, 30+30+60+60+60+50+75+95, 7040,1; // default ... the chance are added up by 100-n% setarray .cost, 7227,1; .total = 9; freeloop 1; .@i = 1; while ( .@i <= .total ) { .totalchance = .totalchance + getd(".p"+ .@i ); .@j = 1; .@size = getarraysize( getd(".p"+ .@i ) ); while ( .@j < .@size ) { .ann$[.@i] = .ann$[.@i] + getd( ".p"+ .@i +"["+( .@j +1 )+"]" ) +"x "+ getitemname( getd( ".p"+ .@i +"["+ .@j +"]" ) ) +( ( .@j == .@size -2 )? "":"," ); // I think Euphy forgotten to make announcement when configuration has set more than 1 items .@j += 2; } .@i++; } freeloop 0; } Can this script can be use in eathena version? lottiNPC.txt lottiNPC.txt
  20. gagana po ba to sa eathena? prontera,139,229,5 script Lotti Girl 864,{ mes "[Lotti Girl]"; mes "It costs "+ .cost[1] +"x "+ getitemname( .cost[0] ) +" to play."; mes " "; for ( .@i = 0; .@i < 20; .@i++ ) mes $lotti_girl_ladder$[.@i]; if ( countitem( .cost[0] ) < .cost[1] ) close; next; if ( select( "Deal me in!", "No way..." ) == 2 ) close; mes "[Lotti Girl]"; while (1) { mes "Here we go..."; delitem .cost[0], .cost[1]; .@rand = rand(.totalchance); .@r = 0; // <-- think you forgot to put this while ( ( .@rand = .@rand - getd( ".p"+ .@r +"[0]" ) ) >= 0 ) .@r++; .@size = getarraysize( getd(".p"+ .@r ) ); for ( .@i = 1; .@i < .@size; .@i += 2 ) getitem getd( ".p"+ .@r +"["+ .@i +"]" ), getd( ".p"+ .@r +"["+( .@i +1 )+"]" ); if ( getd( ".p"+ .@r +"[0]" ) < 50 ) // announce if below 50% chance announce "Congratulations to "+strcharinfo(0)+" for getting "+ .ann$[.@r] +"!", 0; if ( getd( ".p"+ .@r +"[0]" ) < 10 ) { // score the ladder if below 10% chance copyarray $lotti_girl_ladder$[1], $lotti_girl_ladder$[0], 19; $lotti_girl_ladder$ = strcharinfo(0) +" gains "+ .ann$[.@r] +" at "+ gettimestr( "%d/%m/%Y %H:%M %p", 21 ); } mes " "; mes "wanna try again ?"; next; if ( select( "Yes", "No" ) == 2 ) close; mes "[Lotti Girl]"; if ( countitem( .cost[0] ) < .cost[1] ) { mes "it seems you have ran out of "+ getitemname( .cost[0] ); close; } } close; OnInit: // setarray .p1, 70, 501,25; // debugging ... // setarray .p2, 70, 502,1; // setarray .p3, 40, 503,1; // setarray .p4, 40, 504,1; // setarray .p5, 40, 505,1; // setarray .p6, 50, 506,1, 507,1, 508,1, 509,1; // setarray .p7, 25, 512,1; // setarray .p8, 5, 513,1; setarray .p1, 70, 14232,1; setarray .p2, 10, 2115,1; setarray .p3, 50, 13582,1; setarray .p4, 40, 5210,1; setarray .p5, 10, 2421,1; setarray .p6, 5, 2524,1; setarray .p7, 5, 2357,1; setarray .p8, 5, 2729,1; setarray .p9, 30+30+60+60+60+50+75+95, 7040,1; // default ... the chance are added up by 100-n% setarray .cost, 7227,1; .total = 9; freeloop 1; .@i = 1; while ( .@i <= .total ) { .totalchance = .totalchance + getd(".p"+ .@i ); .@j = 1; .@size = getarraysize( getd(".p"+ .@i ) ); while ( .@j < .@size ) { .ann$[.@i] = .ann$[.@i] + getd( ".p"+ .@i +"["+( .@j +1 )+"]" ) +"x "+ getitemname( getd( ".p"+ .@i +"["+ .@j +"]" ) ) +( ( .@j == .@size -2 )? "":"," ); // I think Euphy forgotten to make announcement when configuration has set more than 1 items .@j += 2; } .@i++; } freeloop 0; } lottiNPC.txt
  21. Try this but I don't know if it works I just edited the Lotti Gurl of Mr. Euphy prontera,150,50,5 script Piercing Expert 968,{ mes "[Piercing Expert]"; mes "I've been researching ways to use Auger of Spirit to put a socket on Elven Ears and Black Devil Mask"; next; mes "[Piercing Expert]"; menu "Auger of Spirit for Elven Ears [1]",-,"Auger of Spirit for Black Devil Mask [1]",bdm; if (countitem(.Cost[0]) < .Cost[1]) close; next; if(select("Deal me in!:No way...")==2) close; mes "[Piercing Expert]"; mes "Here we go..."; progressbar "",2; delitem .Cost[0], .Cost[1]; set .@i, rand(1,.Total); if (rand(1,100) > getd(".P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.Default); set .@j,.@j+2) { getitem .Default[.@j], .Default[.@j+1]; if (!.@k[0]) setarray .@k[0], .Default[.@j], .Default[.@j+1]; } } else { for(set .@j,1; .@j<getarraysize(getd(".P"+.@i)); set .@j,.@j+2) { getitem getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) setarray .@k[0], getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]"); } } announce "Congratulations to "+strcharinfo(0)+" for getting "+.@k[1]+"x "+getitemname(.@k[0])+"!",0; specialeffect2 248; close; OnInit: // Format: <%>,<item ID>,<count>{,...}; setarray .P1[0],70,607,1; //607 = YGG change to you Black Devil Mask Id setarray .Default[0],0,0; setarray .Cost[0],6396,1;//6396 = Auger of Spirit set .Total,1; end; bdm: if (countitem(.Cost[0]) < .Cost[1]) close; next; if(select("Deal me in!:No way...")==2) close; mes "[Piercing Expert]"; mes "Here we go..."; progressbar "",2; delitem .Cost[0], .Cost[1]; set .@i, rand(1,.Total); if (rand(1,100) > getd(".P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.Default); set .@j,.@j+2) { getitem .Default[.@j], .Default[.@j+1]; if (!.@k[0]) setarray .@k[0], .Default[.@j], .Default[.@j+1]; } } else { for(set .@j,1; .@j<getarraysize(getd(".P"+.@i)); set .@j,.@j+2) { getitem getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) setarray .@k[0], getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]"); } } announce "Congratulations to "+strcharinfo(0)+" for getting "+.@k[1]+"x "+getitemname(.@k[0])+"!",0; specialeffect2 248; close; OnInit: // Format: <%>,<item ID>,<count>{,...}; setarray .P1[0],70,607,1; //607 = YGG change to you Black Devil Mask Id setarray .Default[0],0,0; setarray .Cost[0],6396,1;//6396 = Auger of Spirit set .Total,1; end; } }
  22. prontera,155,181,5 script Lotti Girl 100,{ mes "[Lotti Girl]"; mes "It costs "+ .cost[1] +"x "+ getitemname( .cost[0] ) +" to play."; mes " "; for ( .@i = 0; .@i < 20; .@i++ ) mes $lotti_girl_ladder$[.@i]; if ( countitem( .cost[0] ) < .cost[1] ) close; next; if ( select( "Deal me in!", "No way..." ) == 2 ) close; mes "[Lotti Girl]"; while (1) { mes "Here we go..."; delitem .cost[0], .cost[1]; .@rand = rand(.totalchance); .@r = 0; // <-- think you forgot to put this while ( ( .@rand = .@rand - getd( ".p"+ .@r +"[0]" ) ) >= 0 ) .@r++; .@size = getarraysize( getd(".p"+ .@r ) ); for ( .@i = 1; .@i < .@size; .@i += 2 ) getitem getd( ".p"+ .@r +"["+ .@i +"]" ), getd( ".p"+ .@r +"["+( .@i +1 )+"]" ); if ( getd( ".p"+ .@r +"[0]" ) < 50 ) // announce if below 50% chance announce "Congratulations to "+strcharinfo(0)+" for getting "+ .ann$[.@r] +"!", 0; if ( getd( ".p"+ .@r +"[0]" ) < 10 ) { // score the ladder if below 10% chance copyarray $lotti_girl_ladder$[1], $lotti_girl_ladder$[0], 19; $lotti_girl_ladder$ = strcharinfo(0) +" gains "+ .ann$[.@r] +" at "+ gettimestr( "%d/%m/%Y %H:%M %p", 21 ); } mes " "; mes "wanna try again ?"; next; if ( select( "Yes", "No" ) == 2 ) close; mes "[Lotti Girl]"; if ( countitem( .cost[0] ) < .cost[1] ) { mes "it seems you have ran out of "+ getitemname( .cost[0] ); close; } } close; OnInit: // setarray .p1, 70, 501,25; // debugging ... // setarray .p2, 70, 502,1; // setarray .p3, 40, 503,1; // setarray .p4, 40, 504,1; // setarray .p5, 40, 505,1; // setarray .p6, 50, 506,1, 507,1, 508,1, 509,1; // setarray .p7, 25, 512,1; // setarray .p8, 5, 513,1; setarray .p1, 70, 607,25; setarray .p2, 70, 13710,1; setarray .p3, 40, 5471,1; setarray .p4, 40, 5210,1; setarray .p5, 40, 5224,1; setarray .p6, 50, 2357,1, 2524,1, 2421,1, 2115,1; setarray .p7, 25, 2701,1; setarray .p8, 5, 2394,1; setarray .p9, 30+30+60+60+60+50+75+95, 12214,1; // default ... the chance are added up by 100-n% setarray .cost, 7227,300; .total = 9; freeloop 1; .@i = 1; while ( .@i <= .total ) { .totalchance = .totalchance + getd(".p"+ .@i ); .@j = 1; .@size = getarraysize( getd(".p"+ .@i ) ); while ( .@j < .@size ) { .ann$[.@i] = .ann$[.@i] + getd( ".p"+ .@i +"["+( .@j +1 )+"]" ) +"x "+ getitemname( getd( ".p"+ .@i +"["+ .@j +"]" ) ) +( ( .@j == .@size -2 )? "":"," ); // I think Euphy forgotten to make announcement when configuration has set more than 1 items .@j += 2; } .@i++; } freeloop 0; }
  23. like I said before ... adding custom features to existing scripts means = open a new topic because in request section, the request to based on 1st post ... hmm .... I use different formula than Euphy ... I dislike to make too much calculation when its possible to set everything on server startup prontera,155,181,5 script Lotti Girl 100,{ mes "[Lotti Girl]"; mes "It costs "+ .cost[1] +"x "+getitemname( .cost[0] )+" to play."; mes " "; for ( .@i = 0; .@i < 20; .@i++ ) mes $lotti_girl_ladder$[.@i]; if ( countitem( .cost[0] ) < .cost[1] ) close; next; if ( select( "Deal me in!", "No way..." ) == 2 ) close; mes "[Lotti Girl]"; mes "Here we go..."; progressbar "", 2; delitem .cost[0], .cost[1]; .@rand = rand(.totalchance); while ( ( .@rand = .@rand - getd( ".p"+ .@r +"[0]" ) ) >= 0 ) .@r++; .@size = getarraysize( getd(".p"+ .@r ) ); for ( .@i = 1; .@i < .@size; .@i += 2 ) getitem getd( ".p"+ .@r +"["+ .@i +"]" ), getd( ".p"+ .@r +"["+( .@i +1 )+"]" ); if ( getd( ".p"+ .@r +"[0]" ) < 50 ) // announce if below 50% chance announce "Congratulations to "+strcharinfo(0)+" for getting "+ .ann$[.@r] +"!", 0; if ( getd( ".p"+ .@r +"[0]" ) < 10 ) { // score the ladder if below 10% chance copyarray $lotti_girl_ladder$[1], $lotti_girl_ladder$[0], 19; $lotti_girl_ladder$ = strcharinfo(0) +" gains "+ .ann$[.@r] +" at "+ gettimestr( "%d/%m/%Y %H:%M %p", 21 ); } close; OnInit: // setarray .p1, 70, 501,25; // debugging ... // setarray .p2, 70, 502,1; // setarray .p3, 40, 503,1; // setarray .p4, 40, 504,1; // setarray .p5, 40, 505,1; // setarray .p6, 50, 506,1, 507,1, 508,1, 509,1; // setarray .p7, 25, 512,1; // setarray .p8, 5, 513,1; setarray .p1, 70, 607,25; setarray .p2, 70, 13710,1; setarray .p3, 40, 5471,1; setarray .p4, 40, 5210,1; setarray .p5, 40, 5224,1; setarray .p6, 50, 2357,1, 2524,1, 2421,1, 2115,1; setarray .p7, 25, 2701,1; setarray .p8, 5, 2394,1; setarray .p9, 30+30+60+60+60+50+75+95, 12214,1; // default ... the chance are added up by 100-n% setarray .cost, 7227,300; .total = 9; freeloop 1; .@i = 1; while ( .@i <= .total ) { .totalchance = .totalchance + getd(".p"+ .@i ); .@j = 1; .@size = getarraysize( getd(".p"+ .@i ) ); while ( .@j < .@size ) { .ann$[.@i] = .ann$[.@i] + getd( ".p"+ .@i +"["+( .@j +1 )+"]" ) +"x "+ getitemname( getd( ".p"+ .@i +"["+ .@j +"]" ) ) +( ( .@j == .@size -2 )? "":"," ); // I think Euphy forgotten to make announcement when configuration has set more than 1 items .@j += 2; } .@i++; } freeloop 0; } EDITING ... wait a moment .. I think this script is bugged... ok fixed
  24. use this http://rathena.org/board/topic/65196-tcg-drainer-very-useful-to-most-of-the-servers-just-like-lotti-girl-in-pro/
  25. if you want like that you can use this.. http://rathena.org/board/topic/65196-tcg-drainer-very-useful-to-most-of-the-servers-just-like-lotti-girl-in-pro/
×
×
  • Create New...