Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/29/13 in all areas

  1. cmd_in02,181,98,2 script Dicer 57,{ set @betzeny1,0; set @betnum,5; L_main: mes "[Dicer]"; mes "Do you wanna check your luck with dices?"; next; menu "Play",L_play,"How to play",L_info,"Go away",L_go; L_go: mes "[Dicer]"; mes "We're not joking here! Go away if you don't want to play!."; close; L_info: mes "[Dicer]"; mes "The Dices Game is a very simple game. The game allows you and me to throw 3 dices. Whoever gets a higher total number wins."; next; goto L_main; L_play: mes "[Dicer]"; mes "How many Poring Coins do you want to bet?"; mes "(maximum bet: 10)"; input(@betzeny1); if(@betzeny1<=0){ next; goto L_go; } if(@betzeny1>10){ mes "Sorry but the bet limit is 10 Poring Coins."; close; } next; if(countitem(7539)<@betzeny1){ mes "[Dicer]"; emotion 20; mes "I'm sorry, but you don't have enough Poring Coins to make that bet."; close; } set @bet, @betzeny1; set @dea1, rand(1,6); set @dea2, rand(1,6); set @dea3, rand(1,6); set @pla1, rand(1,6); set @pla2, rand(1,6); set @pla3, rand(1,6); set @deatot, @dea1+@dea2+@dea3; set @platot, @pla1+@pla2+@pla3; mes "[Dicer]"; mes "I will be the first one to roll the dices,and after that you will throw them.I am feeling lucky today, so you better go away before I take every Poring Coin you have."; next; mes "[^0080FFDicer 1st Turn^000000]"; mes "Throwing first dice!"; mes ".....roll.....roll....roll...."; emotion 58; mes " "; mes "First throw: ^0080FF"+@dea1+" ^000000"; next; mes "[^0080FFDicer 2nd Turn^000000]"; mes "Throwing second dice!"; emotion 58; mes ".....roll.....roll....roll...."; mes " "; mes "Second throw: ^0080FF"+@dea2+" ^000000"; next; mes "[^0080FFDicer 3rd Turn^000000]"; mes "Throwing third dice!"; emotion 58; mes ".....roll.....roll....roll...."; mes " "; mes "Third throw: ^0080FF"+@dea3+" ^000000"; next; mes "[Dicer]"; mes "Now it's your turn to throw the dices.I bet you can't get higher numbers then me."; next; mes "[^0080FFPlayer 1st Turn^000000]"; mes "Throwing first dice!"; mes ".....roll.....roll....roll...."; emotion 58; mes " "; mes "First throw: ^0080FF"+@pla1+" ^000000"; next; mes "[^0080FFPlayer 2nd Turn^000000]"; mes "Throwing second dice!"; emotion 58; mes ".....roll.....roll....roll...."; mes " "; mes "Second throw: ^0080FF"+@pla2+" ^000000"; next; mes "[^0080FFPlayer 3rd Turn^000000]"; mes "Throwing third dice!"; emotion 58; mes ".....roll.....roll....roll...."; mes " "; mes "Third throw: ^0080FF"+@pla3+" ^000000"; next; mes "[Dicer]"; mes "Let's look at our total numbers:"; mes " "; mes "Dicer Total: ^0080FF"+@deatot+" ^000000."; mes "Player Total: ^0080FF"+@platot+" ^000000."; next; if (@platot < @deatot) goto L_lose; if (@platot == @deatot) goto L_again; if (@platot > @deatot && @platot == @numg) goto L_win2; if (@platot > @deatot) goto L_win1; L_lose: mes "[Dicer]"; delitem 7539, @bet; emotion 39; mes "I got a higher number!!!"; mes "See I told you nobody can beat me!"; mes " "; mes "You lost ^0080FF"+@bet+"^000000 Poring Coins."; next; goto L_againa; L_again: mes "[Dicer]"; emotion 54; mes "It seems it's a draw.Let's play again."; next; goto L_play; L_win1: mes "[Dicer]"; getitem 7539, @bet; emotion 36; mes "I can't belive I lost. Here take your money."; mes " "; mes "You won ^0080FF"+@bet*2+"^000000 Poring Coins."; next; goto L_againa; L_win2: mes "[Dicer]"; getitem 7539, @bet*3; emotion 36; mes "You even guessed the total number you got.I can't belive I lost. Here is your money."; mes " "; mes "You won ^0080FF"+@bet*3+"^000000 Poring Coins."; next; goto L_againa; L_againa: mes "[Dicer]"; mes "Would you like to play again?"; next; menu "Yes",L_play,"No",L_go; }
    2 points
  2. Peopleperson49's Script Collection Please enjoy my work. If you have any suggestions or find any issues/bugs please let me know! If you like or download my work please click the "Vote this post up" button to the right of the post and check out my server Ragnarok Underground. My scripts are written as I would use it for my Ragnarok Underground server, you might need to configure them before use. My scripts are written to work with the rAthena emulator. When reporting and bug/error/suggestion in this topic please give the emulator version, version of the script your using, and the issue in detail! Super Magnifier Identifys all unidientified items a player is holding at once. I made this a long time ago for my server, but I added here for Nipsino after reading a post he left. Function_SuperMagnifier.txt Rock, Paper, Scissors Roulette This was one of my first scripts I ever made. I learned to script by breaking these type of scripts down and recreating them from scratch. This script was recreated in this same way. It is very similar to the original in design. Allows the player to play roulette with a 5 chamber pistol. Only one bullet is loaded at a time. The script will continue to loop until somebody is shot. Version 2.0: rpsroulette.txt BlackJack Scratchcard Blackjack script that designed to work like a scratchcard. It is based on using eight decks or cards and both numbers and suits determine winning hands. Buster prize for scoring a 30 or 31, which can only be done if you already have a 20 or 21 adding one more element of gambling to it. Item data is included at the bottom of the script. Version 3.3: Scratchcard_BlackJack.txt Powerball Lottery This was one of my first scripts I ever made. I learned to script by breaking these type of scripts down and recreating them from scratch. This script was recreated in this same way. It is very similar to the original in design. Powerball lottery picks 5 miniballs and 1 powerball. Different pay amount based on type of matches made. Version 1.7: lottery.txt Advanced Banker This was one of my first scripts I ever made. I learned to script by breaking these type of scripts down and recreating them from scratch. This script was recreated in this same way. It is very similar to the original in design. Bank with varying account and interest based directly on balance. Also has trustfund which pays out only when the character reaches BaseLevel 150. Most of my scripts give trustfund bonuses and also 1% of any zeny spent goes toward the trustfund. Version 1.4: bank.txt Heads Or Tails This was one of my first scripts I ever made. I learned to script by breaking these type of scripts down and recreating them from scratch. I remember making this one, but I'm not sure if I based it off of another script or not. Player starts by betting 500z and then flips a coin. If heads their money is disabled, if tails they loose all their money. Version 2.4: hot.txt Jackpot Leon This was one of my first scripts I ever made. I learned to script by breaking these type of scripts down and recreating them from scratch. This script was recreated in this same way. It is very similar to the original in design, however I'm not sure where to find that script anymore. The script picks a number between 1 and 100. The player pays 10,000z to make a guess. Each guess increases the size of the Jackpot by 9,000z until somebody wins. Version 2.3: jackpot.txt Double Dice Roll Very simple dice gambling game created for my custom Comodo casino package. You bet various amounts of zeny and roll two dice. The winner is the one with the highest total score. This was created from scratch as part of my casino package and had nothing to do with the rolladice script. Version 2.1: roll_a_dice.txt Saving Angel This script was written for my lovely wife after we were player and our whole party was wiped out in majos. It allows a character to resurrect another character anywhere in the server for a fee. Version 1.8: Saving_Angel.txt Magic 8 Ball Custom script that works just like using a magic 8 ball. Version 2.2: MagicEightball.txt Wishing Well Custom script that allows a player to throw zeny into the wishing well and make a wish. The wish is then sent to any online GM using @request. It is restricted to one use per day to help prevent annoying the crap out of the GM's! Version 1.7: WishingWell.txt Arch Bishop Job Quest This script was written for MelMel on rAthena.org. It is a compltely new version of the third job change quest for an Arch Bishop. I did not use any other scripts as a base. It allows a Priest/High Priest to gather items and then change jobs to an Arch Bishop. The Sub-scripts can be completed in any order and all work off of each other. Version 1.1: Job_AB.txt Guillotine Cross Job Quest This script was written to supplement the fact that the Guillotine Cross still has no official script release on rAthena.org. It is a compltely new version of the third job change quest for a Guillotine Cross. I did not use any other scripts as a base. It allows a Assassin/Assassin Cross to gather items and then change jobs to a Guillotine Cross. Version 1.2: Job_GC.txt Monster Of The Day Another Monster Of The Day script. I made this one from scratch to be very simple and work automatically. Uses almost the full list of monsters from the mob_branch. I included the dispbottom here when players login, but I actually perfer to use a login script with this in it. Version 1.4: MOTD.txt Security Manager Allows a player to set up a password to help protect their account. It uses a simple OnWhisperGlobal function. I nolonger support the use of the whisper system in my Security Manager script after version 1.3. I will still provide support for other issues that might be discovered in scripts prior to v1.4, but they will be fixed in a version that now uses bindatcmd. Version 1.5: Security_Manager.txt GM Headquarters Allows access to a part of the sec_in01 map that doesn't have any warps anyway. This is a nice areas to setup special NPC's or events. Whatever anybody wants to do with it. However the secutiry code is fun for everybody to try to crack. This script currently has shops that be used once a day as a reward for cracking code. It's my intent to eventually add a full warper script that can be used once a day also. Version 1.3: GMHeadquarters.txt Monster Hunter This script was written for vgrebirth on rAthena.org. It allows one party at a time to do the Monster Hunter event. If any member is killed the entire party looses and are warped out. If you kill all the mini-boss monsters the boss monster is spawned. Version 2.7: Monster_Hunter.txt
    1 point
  3. Xantara's FluxCP Everyone knows of FluxCP. However, with the creation of rAthena, there became a need to support renewal changes and other features such as the new group system. This is where my Control Panel comes in. Xantara's FluxCP is a free and open source control panel to work with rAthena. Forked from FluxCP by Paradox924X and Byteflux at r1121. I will continually merge updates from the original FluxCP. Demo: http://web.artistic-coder.com/fluxcp-rA Note: this site is used to test new functionality and custom addons so it may not always be functioning properly Features The original/base FluxCP already comes with a lot of features. Here I will only highlight those that came after the fork. For a full list, click here. Updated Ragnarok Data Full Birthdate Functionality Working GM Group System Mob Skills SQLized Zeny Log Page Specific Item Drop Rates Toggle for Pre-Renewal or Renewal SQL Data Alchemist Ranking Blacksmith Ranking Paginated Item Shop Character/job images (static) WIP Account management system (link one or more in-game accounts to one CP account) Queued Accepted Suggestions (have suggestions? post them here!) Search in logs page Pin code functionality Character sprites with palettes (would replace static images) Requirements Apache webserver with PHP 5.2 or greater PDO extension with MySQL support (http://www.php.net/pdo) PHP GD2 for security images (Optional) Enabled Zip extension for exporting guild emblems (Optional) Apache/mod_rewrite for using the "Clean URLs" feature Download There are three ways to get a copy of this Control Panel. For detailed installation instructions, click here (TBD). 1. GIT Clone git clone https://github.com/missxantara/fluxcp-ra.git * For Windows, you can take a look at using TortoiseGit with its friendly user interface. 2. SVN Checkout svn checkout https://github.com/missxantara/fluxcp-ra/trunk/ * For Windows, you can take a look at using TortoiseSVN with its friendly user interface. 3. ZIP Download https://github.com/missxantara/fluxcp-ra/archive/master.zip Extra Downloads Extract to the root folder of your FluxCP system Job Image Files: http://missxantara.github.io/fluxcp-ra/downloads/FluxCP_Jobs_Images_2012-04-28.zip Updated details: April 28, 2013 Credits: Xantara Monster Image Files: http://missxantara.github.io/fluxcp-ra/downloads/FluxCP_Monsters_Eclage_14.2.zip Updated details: Mob ID #2380 of Eclage (Episode 14.2) Credits: Brynner Item Icon Files: http://missxantara.github.io/fluxcp-ra/downloads/FluxCP_Item_Icons_2012-04-08.zip Updated details: April 8, 2013 Credits: Latheesan's Extractor Item Image Files: http://missxantara.github.io/fluxcp-ra/downloads/FluxCP_Item_Images_2012-04-08.zip Updated details: April 8, 2013 Credits: Latheesan's Extractor Quick Links Wiki: https://github.com/missxantara/fluxcp-ra/wiki Bug/Suggestion Reports: https://github.com/missxantara/fluxcp-rA/issues GitPage: http://missxantara.github.io/fluxcp-ra Misc. Feel free to post any suggestions here. If suitable, they may be polled by general users before being decided to be implemented or not. If you have a feature already coded that you would like to share, please do send a GIT pull request or send me an SVN diff of the work - I'd love to take a look at it! Please note that working on this open-source project will furthermore serve as a learning opportunity for me. If you find that I've implemented something that could be improved, I urge you to let me know - your knowledge on this subject would be greatly appreciated! Like my work? Rep up the topic first post
    1 point
  4. Hey everyone. Im releasing a client pack I put together that contains everything needed for making a client to make things as easy as possible for new and current users. Making a client or updating from a old one has proven to be difficult for many and im hoping to put a end to this issue. Below is info from the readme about the client pack. The readme also contains information on how to make and install the client. ================================ The Purpose Of This Client Pack ================================ This pack was created as my response to helping the community with a few common issues. The main issue im hoping this will resolve for most users is getting all the needed files easly. During my time as a developer, ive noticed many users having issues staying up-to-date with things because of the fact that you would normally have to search here and there for all the files, tools, and other things needed just to make a fully working client. I also found myself getting outdated at times because of how things change. Many users out there still arn't fully aware of where to get up-to-date diff plugins for the WeeDiffGen program. With the release of this client pack, I hope it be less time consuming for users and allow them to catch up with everything to allow them to run a fully up-to-date server with the latest server revision with the latest client files. Their's still people out there using clients from mid 2010. Come on people. Its time to catch up. ================================ Whats Included In This Pack ================================ This client pack includes the following.... 2012-04-10aRagexeRE.exe which will be the core of your client. Pre-client generated DATA.INI file used to set what GRF files will be loaded when the client is started. The RO Mouse Freedom Plugin V1.8.4.0 (dinput.dll) to allow the mouse to freely leave the screen if your in a window. Ai4rei's kRO and RE Patchers V2.4.1.574 to patch up your official RO files. Ai4rei's Open Setup V2.5.1.147 to use as a user friendly english client options program. clientinfo.xml for setting up connection information to tell the client what IP and port to connect to, and other things. Translation Files r224 which contains translated text and texture files. Decompiled LUA files r221 for 2012-04-10 clients fully formatted and translated. WeeDiffGen r40 with all diff generator plugin's for diffing (modifying) the client exe. All of Ai4rei's latest diff generator plugin's for WeeDiffGen as of December 2nd, 2012 (already installed to WeeDiffGen) ================================ WARNING!!!! ================================ Some security programs will attack and remove some of the files included in this pack. The files itl mark as a threat are the dll plugin files used in the WeeDiffGen program and are not viruses. Before extracting, its recommended you make a new folder on your desktop and set your security software to exclude scans and real time protection for this folder, sub-folders, and files in them. Once done, extract your files in the folder. ================================ Credits ================================ All of this stuff wouldn't be possiable or exist without these people.... Ai4rei = RO Open Setup, RO Patcher Lite, and updated plugins for the WeeDiffGen program. Earthlingz = Decompiled LUA files. Gravity = Client EXE and a number of other things. (Hey, gotta give them credit too right? We wouldn't be here if RO didnt exist.) Shinryo = WeeDiffGen and original plugins for the program. Translations Team = Translated text files and textures. TrueNoir = Translated msgstringtable.txt file for 2012-04-10 client. Everyone else who helped / worked on this stuff. ================================ Change Log ================================ 12/2/2012 US = V1.0 Released. Rytech's Client Pack 2012-04-10 V1.rar
    1 point
  5. File Name: Account Bound Items File Submitter: Xantara File Submitted: 16 Sep 2012 File Category: Source Modifications Content Author: Xantara, Zephyrus, RO Information This system would allow (non-stackable, non-pet-egg) items to be bounded onto a player's account. This means that the bounded items cannot be traded, dropped, auctioned, nor mailed. But, they can be storaged so that it can be shared among the characters of that account. Features: - Item coloration to distinguish bounded items and non-bounded ones (see screenshot) - Script commands (getitembound, getitembound2, equipisbounded) to create and check for bounded items - At commands (@itembound, @itembound2) to create bounded items - New group permission (can_trade_bounded) to allow the group to distribute these bounded items if enabled (mostly just for High GMs / Admins) - Changes to the SQL files to track bounded items. This would effect cart, inventory, and storage databases. Tested on rAthena revision 17294 (using v1.5.1). Script Command Documentations At Commands Documentations Known Issues - When moving a bounded item to storage, item colouration is gone. However, re-opening the storage or re-logging will fix this issue.1 - When moving a bounded item to the cart inventory, item colouration is gone. However, re-logging will fix this issue.1 1 If you are able to find these packets (ie. PACKET_ZC_ADD_ITEM_TO_STORE3 and/or PACKET_ZC_ADD_ITEM_TO_CART3), please let me know! Credits Created by @Xantara Popularized by Zephyrus Idea by Ragnarok Online License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Like my work? Rate/vote this download Rep up my support topic post Do not mirror without my consent. Click here to download this file
    1 point
  6. Hi,,, All.... I would like to ask all friend of renewal user... Im trying to do quest to be WARLOCK... But in this new map of Morocc is really-really different from Morocc Ruins(Old Morroc Town). First quest is to find hidden npc in coordinate morroc 102 143. In my map i try @warp to this coordinate and it write coordinate cant be found... Did someone was having same problem like me?..? **For your information im using renewal not pre-renewal** This Is The SS Of My New Map Of Morroc.. Can somebody help me with this... :'(
    1 point
  7. for Custom Items please chk the following correctly made entry in accessoryid.lua, accname.lua (meaning no mistakes in comma after the gears) compile using "compile gui.exe" (note: if the .lua are not compiling to .lub then there is an error in lua files you will need to correct those first) correctly made entry in the following 7 text files idnum2itemdesctable idnum2itemdisplaynametable idnum2itemresnametable itemslotcounttable num2itemdesctable num2itemdisplaynametable num2itemresnametable Correctly added the entries in item_db2 file.. the pre-re and re folders will have item_db depending on your server configuration, whereas item_db2/mob_db2 is common Correctly added the entries in item_db2.sql
    1 point
  8. you have teamviewer ? I can help you better if i see what is happening. Custom item is not properly specified in the *num2resnametable.txt files which is why you are seeing the cross
    1 point
  9. /conf/groups.conf As you can see, you have to enable autotrade command for regular players, unless you set players to be GM level 1, which has autotrade command enabled by default. Simply add "autotrade: true" inside the commands as you can see un the Super Player group.
    1 point
  10. I guess you could call this convoluted mess a proof of concept. It's no where near optimized and it's running some pretty redundant systems, but hell, it works right? Lol function script timeleft__ { set .@left, getarg(0); if ( .@left <= 0 ) return getarg(0); set .@day, .@left / 86400; set .@hour, .@left % 86400 / 3600; set .@min, .@left % 3600 / 60; set .@sec, .@left % 60; return ( ( .@day )?.@day +" day ":"" )+( ( .@day || .@hour )?.@hour +" hour ":"" )+( ( .@day == 0 && ( .@hour || .@min ) )?.@min +" min ":"" )+( ( .@day || .@hour )?"":.@sec +" sec" ); } - script Spoilbox_dup -1,{ end; Onmvpdead: getmapxy .map$, .x, .y, 0; set .a,0; set .b,0; set .id,atoi(strnpcinfo(2)); if(getmobdrops(.mvpid[.id])) { set .count, $@MobDrop_count; copyarray .item[0],$@MobDrop_item[0],.count; copyarray .rate[0],$@MobDrop_rate[0],.count; for( set .@i,0; .@i < .count; set .@i,.@i +1 ) { if(((.rate[.@i]/100)*.srate)>100){ set .drops[.@b],.item[.@i]; set .droprs[.@b],((.rate[.@i]/100)*.srate); set .@b,.@b+1; } else if(.rate[.@i]*.srate>99){ if(!rand((100/((.rate[.@i]/100)*.srate))-1)){ set .drops[.@b],.item[.@i]; set .droprs[.@b],((.rate[.@i]/100)*.srate); set .@b,.@b+1; } } else if(.rate[.@i]*.scardrate<99){ if(!(rand((100/((.rate[.@i]*.scardrate)%100))*100)-1)){ set .drops[.@b],.item[.@i]; set .droprs[.@b],((.rate[.@i]/100)*.scardrate); set .@b,.@b+1; } } } } else { end; } if(strcharinfo(1)==""){ goto Alone; } deletearray $@partymemberaid[0],128; getpartymember getcharid(1),1; getpartymember getcharid(1),2; set .@count, $@partymembercount; set .count,0; copyarray .@party[0],$@partymemberaid[0],.@count; copyarray .@cparty[0],$@partymembercid[0],.@count; for( set .@i,0; .@i < .@count; set .@i,.@i +1 ) { getmapxy(.@map$,.@x,.@y,0,rid2name(.@party[.@i])); if(.@map$==strcharinfo(3)) set .@p,.@p+1; } if(.@p<2) goto Alone; for ( set .@i, 0; .@i < .@count; set .@i, .@i +1 ){ if(isloggedin(.@party[.@i],.@cparty[.@i])){ set .party[.count],.@party[.@i]; set .count, .count +1 ; } } if(.count<2) goto Alone; movenpc strnpcinfo(0), .x, .y; restart: setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; set .loop, .tlimit; while ( .loop ) { delwaitingroom strnpcinfo(0); waitingroom callfunc("timeleft__", .loop ), 0; set .loop, .loop -1; sleep2 1000; } if(.a<.count){ set .a,.a+1; npctalk strcharinfo(0)+" has taken to long!"; getmapxy .@map$, .@x, .@y, 0; warp .@map$,.@x,.@y; while(.b<getarraysize(.drops)){ setd ".partyroll"+.b+"["+.a+"]",0; set .b,.b+1; } goto restart; } end; OnTimer1000: while(.a<.count){ detachrid; attachrid(.party[.a]); set .b,0; while(.b<getarraysize(.drops)){ if((playerattached())&&strcharinfo(3)==.map$) { L_lo: if(.droprs[.b]>.ratelimit&&.ratelimit>0) { setd ".partyroll"+.b+"["+.a+"]",0; } else { select("============(^0000FF"+getitemname(.drops[.b])+"^000000)===============:-Roll:-Pass"); if(!((@menu)-1)||@menu>3) goto L_lo; if(@menu==2){ setd ".partyroll"+.b+"["+.a+"]",rand(100); npctalk strcharinfo(0)+" rolled a ["+getd(".partyroll"+.b+"["+.a+"]")+"] on "+getitemname(.drops[.b])+"."; dispbottom "You rolled a ["+getd(".partyroll"+.b+"["+.a+"]")+"] on "+getitemname(.drops[.b])+"."; } else { setd ".partyroll"+.b+"["+.a+"]",0; npctalk strcharinfo(0)+" passed a on "+getitemname(.drops[.b])+"."; dispbottom "You passed a on "+getitemname(.drops[.b])+"."; } } set .loop, 60; } set .b,.b+1; } set .a,.a+1; } //Find Highest Bawler. for (set .@i,0; .@i < getarraysize(.party); set .@i,.@i+1){ for(set .@s,0; .@s < getarraysize(.drops); set .@s,.@s+1){ if(getd(".partyroll"+.@s+"["+.@i+"]")>getd(".wpartyroll"+.@s)) { setd ".wpartyroll"+.@s,getd(".partyroll"+.@s+"["+.@i+"]"); setd ".wrid"+.@s,.party[.@i]; } } } //Distribute Prize. for(set .@s,0; .@s < getarraysize(.drops); set .@s,.@s+1){ detachrid; attachrid(getd(".wrid"+.@s)); if(getd(".wpartyroll"+.@s)){ npctalk strcharinfo(0)+" won ["+getitemname(.drops[.@s])+"]."; getitem .drops[.@s],1; } else { makeitem .drops[.@s],1,.map$,.x,.y; } } //Warp everyone so they aren't stuck anymore. for (set .@i,0; .@i < getarraysize(.party); set .@i,.@i+1){ detachrid; attachrid(.party[.@i]); getmapxy .@map$, .@x, .@y, 0; warp .@map$,.@x,.@y; } stopnpctimer; delwaitingroom strnpcinfo(0); movenpc strnpcinfo(0), 0,0; end; Alone: for(set .@s,0; .@s < getarraysize(.drops); set .@s,.@s+1){ getitem .drops[.@s],1; } delwaitingroom strnpcinfo(0); movenpc strnpcinfo(0), 0,0; end; OnInit: if ( strnpcinfo(2) == "" ) { //=-=-=-=-=-=Configuration=-=-=-=-=-=-= setarray .mvpid[1], 1871,1872,1719,1492,1147,1688,1583,2068,2156,2087,2165,1623,1389,1046,1272,1115,1046,1147,1272,1418,1157,2202,1685,1734,1658,1630,1038,1511,1885,1751,1150,1039,1086,1768,1832,1112,1312,1251,2131,1087,1190,1252,1059,1159,1917,1115,1785,1785,1785,1785; // MVP ids make sure each id corresponds to the duplicated npcs and maps. set .srate,50; // Server Drop rates set .scardrate,2; // Server card rate set .tlimit,60; // Time limit before skip player roll in seconds. set .ratelimit,0; // Ignores items dropped with rates higher then this value- Ignored items will be dropped by npc after rolls are over. 0 = off //=-=-=-=-=-=-=Skorm=-=-=-=-=-=-=-=-=-= //Credits to unknown artist for original //File architecture. //Thanks to Hexor9 for the idea. <3 } setmapflag strnpcinfo(4),mf_nomvploot; end; } prt_fild08,175,352,1,1 boss_monster Metaling 1613,1,1,1,"Spoilbox#1_mvp::Onmvpdead" prt_fild08,0,0,0 duplicate(Spoilbox_dup) Spoilbox#1_mvp 801 abbey03,0,0,0 duplicate(Spoilbox_dup) Spoilbox#2_mvp 801 abyss_03,0,0,0 duplicate(Spoilbox_dup) Spoilbox#3_mvp 801 ama_dun03,0,0,0 duplicate(Spoilbox_dup) Spoilbox#4_mvp 801 anthell02,0,0,0 duplicate(Spoilbox_dup) Spoilbox#5_mvp 801 ayo_dun02,0,0,0 duplicate(Spoilbox_dup) Spoilbox#6_mvp 801 beach_dun,0,0,0 duplicate(Spoilbox_dup) Spoilbox#7_mvp 801 bra_dun02,0,0,0 duplicate(Spoilbox_dup) Spoilbox#8_mvp 801 dew_dun01,0,0,0 duplicate(Spoilbox_dup) Spoilbox#9_mvp 801 dic_dun02,0,0,0 duplicate(Spoilbox_dup) Spoilbox#10_mvp 801 dic_dun03,0,0,0 duplicate(Spoilbox_dup) Spoilbox#11_mvp 801 ein_dun02,0,0,0 duplicate(Spoilbox_dup) Spoilbox#12_mvp 801 gef_dun01,0,0,0 duplicate(Spoilbox_dup) Spoilbox#13_mvp 801 gef_dun02,0,0,0 duplicate(Spoilbox_dup) Spoilbox#14_mvp 801 gl_chyard,0,0,0 duplicate(Spoilbox_dup) Spoilbox#15_mvp 801 gld_dun01,0,0,0 duplicate(Spoilbox_dup) Spoilbox#16_mvp 801 gld_dun02,0,0,0 duplicate(Spoilbox_dup) Spoilbox#17_mvp 801 gld_dun03,0,0,0 duplicate(Spoilbox_dup) Spoilbox#18_mvp 801 gld_dun04,0,0,0 duplicate(Spoilbox_dup) Spoilbox#19_mvp 801 gon_dun03,0,0,0 duplicate(Spoilbox_dup) Spoilbox#20_mvp 801 in_sphinx5,0,0,0 duplicate(Spoilbox_dup) Spoilbox#21_mvp 801 iz_dun05,0,0,0 duplicate(Spoilbox_dup) Spoilbox#22_mvp 801 jupe_core,0,0,0 duplicate(Spoilbox_dup) Spoilbox#23_mvp 801 kh_dun02,0,0,0 duplicate(Spoilbox_dup) Spoilbox#24_mvp 801 lhz_dun02,0,0,0 duplicate(Spoilbox_dup) Spoilbox#25_mvp 801 lou_dun03,0,0,0 duplicate(Spoilbox_dup) Spoilbox#26_mvp 801 moc_pryd04,0,0,0 duplicate(Spoilbox_dup) Spoilbox#27_mvp 801 moc_pryd06,0,0,0 duplicate(Spoilbox_dup) Spoilbox#28_mvp 801 mosk_dun03,0,0,0 duplicate(Spoilbox_dup) Spoilbox#29_mvp 801 odin_tem03,0,0,0 duplicate(Spoilbox_dup) Spoilbox#30_mvp 801 pay_dun04,0,0,0 duplicate(Spoilbox_dup) Spoilbox#31_mvp 801 prt_maze03,0,0,0 duplicate(Spoilbox_dup) Spoilbox#32_mvp 801 prt_sewb4,0,0,0 duplicate(Spoilbox_dup) Spoilbox#33_mvp 801 ra_san05,0,0,0 duplicate(Spoilbox_dup) Spoilbox#34_mvp 801 thor_v03,0,0,0 duplicate(Spoilbox_dup) Spoilbox#35_mvp 801 treasure02,0,0,0 duplicate(Spoilbox_dup) Spoilbox#36_mvp 801 tur_dun04,0,0,0 duplicate(Spoilbox_dup) Spoilbox#37_mvp 801 xmas_dun02,0,0,0 duplicate(Spoilbox_dup) Spoilbox#38_mvp 801 1@mist,0,0,0 duplicate(Spoilbox_dup) Spoilbox#39_mvp 801 gef_fild10,0,0,0 duplicate(Spoilbox_dup) Spoilbox#40_mvp 801 gef_fild14,0,0,0 duplicate(Spoilbox_dup) Spoilbox#41_mvp 801 xmas_fild01,0,0,0 duplicate(Spoilbox_dup) Spoilbox#42_mvp 801 mjolnir_04,0,0,0 duplicate(Spoilbox_dup) Spoilbox#43_mvp 801 moc_fild17,0,0,0 duplicate(Spoilbox_dup) Spoilbox#44_mvp 801 moc_fild22,0,0,0 duplicate(Spoilbox_dup) Spoilbox#45_mvp 801 pay_fild11,0,0,0 duplicate(Spoilbox_dup) Spoilbox#46_mvp 801 ra_fild03,0,0,0 duplicate(Spoilbox_dup) Spoilbox#47_mvp 801 ra_fild04,0,0,0 duplicate(Spoilbox_dup) Spoilbox#48_mvp 801 ve_fild01,0,0,0 duplicate(Spoilbox_dup) Spoilbox#49_mvp 801 ve_fild02,0,0,0 duplicate(Spoilbox_dup) Spoilbox#50_mvp 801 Notes:I added this little test Metaling you can remove it. if you want to add more monsters like the mvps, just make sure you add them like: abbey02,236,78,21,18 boss_monster Fallen Bishop Hibram 1871,1,7200000,600000,"Spoilbox#1_mvp::Onmvpdead" in order with the .mvpid[1] array so that "#_mvp" matches with the correct spawn for that mvp, and if you do use this make sure to delete the old spawns in your npc/mobs folder. The npc can only handle 1 MVP event death per map. Information: This npc will remove mvp drops from any map its duplicated to, and instead once the mvp is killed this emulates the original drops of that mvp and distributes them with dice rolls among the party members. If the user has no party or party members are on a different map all loot goes to the user who killed the MVP. After you've finished clicking "Roll" the npc gives the next person 60 seconds to roll on all their drops. If they fail to roll they will be skipped. That's pretty much it, thanks. Edit: First version I forgot to add a check for offline partymembers with the same accountid. It's added now. Video:
    1 point
  11. No problem, Im glad to help. If you want to try out the script, it is kinda buggy. I got the script to work though.
    1 point
  12. 1 point
  13. for custom items like i said earlier you have to first make sure your client supports ids above 1000 then just insert your custom stuff in accessoryid.lua and accname.lua and make lub files of the same using "compile gui.exe" <google it> the other necessary steps include adding it to the database ofcourse hope this helps
    1 point
  14. me too. well. anyway, i'll try. if i manage to pull it off, i'd share it.
    1 point
  15. It depends on the situation. Some examples... Scope variables: Arbitrary variables with no meaning, ex. to handle for/while loops or to store random numbers. Anything in an uncommonly-used section of an NPC, where it would serve no purpose to store the data permanently. Scripts where different instances hold different values that should not overwrite each other, ex. storing a player's name in dialogue or other player data. NPC Variables (OnInit): Commonly-referenced variables in a prominent NPC, ex. basic configuration settings in my Quest Shop or WOE Controller. Large, occasionally-referenced arrays or simulated multi-dimensional arrays (setd/getd), where it would be a waste of processing to re-set the values each time the script is called. Stored values in NPCs with many duplicates, since NPC variables are only stored for the main NPC and not its duplicates (i.e. this saves both RAM and processing). NPC Variables (not OnInit): Variable that will be referenced later, after the current script terminates, ex. counts in event scripts. Temporary reference needed in another section of a script where scope variables are not passed (goto/donpcevent), where the variable is generally un-set (to zero or "") after use. (This is very uncommon; I may actually be the only scripter that does this.)
    1 point
  16. The guide is mostly complete. The section that's missing is after Installation_(CentOS)#Import_MySQL_Tables, you need to: set the MySQL user/pass in trunk/conf/inter_athena.conf in MySQL (ragnarok.login table), change the default s1/p1 userid and password then edit char_athena.conf and map_athena.conf with the new userid and password
    1 point
  17. Question: Is your custom monster working properly when you did not put the custom item on it?
    1 point
  18. upload a screenshot with your open accssesoryid file to see whats going on
    1 point
  19. Yes buddy your right, a good protection for $200 (only?) is very expensive for server starters. I cannot say (only) because that is a huge amount of money cost. Actually, I am not against the Harmony. But if there is an alternative source files like this or a basic blocking features, we can prevent spending a money such as $200 (only?). * By the way, we are not rich people to say the word "ONLY" on $200.
    1 point
×
×
  • Create New...