Jump to content

Songbird

Donators
  • Content Count

    16
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

Community Reputation

5 Neutral

About Songbird

  • Rank
    Poring
  • Birthday March 4

Profile Information

  • Gender
    Male
  • Location
    México
  • Server
    Vortex-RO
  • Github: Songbirdl
  • Discord: Songbird#3918
  • Interests
    Videogame Developing

Recent Profile Visitors

961 profile views
  1. View File Slot Machine - Items / Credits Songbird's Repo NPC, Scripts, Maps, Sprites, Mobs & More ========================================================================================================================================== Players love Slot Machines! Specially if it is easy to use with a pretty cutin-based interface! This is a configurable Slot Machine where you're able to change the Item ID allowing you to use a custom or existing item, like Apples or a Casino exclusive coin bought with Zeny, this NPC allows you to configure the Odds, Payoff, and Winnings so you will always win! It is user-friendly and has a realistic cutin-based animation (575 .bmp files where used to create this). WARNING: Bad use of this NPC can break your server's economy, if you don't know about Slot Machine formulas and odds, just configure the item ID ".CoinID" and "$SlotCoinPrice" variables. NPC INFORMATION: Slot Machine - This script is going to create 8 NPCs in the Comodo Casino, it is recommended to replace the cmd_in02 map with the provided one if you plan to use this location. This Slot Machine has 5 images, here is the order from best to worse: Chest Coin, Bell, Yggdrasil, and Apple. Configuration is script-based. Prize is X times the bet (Depending on the multiplier) if the GiveItems feature is disabled. Features for GMs: You can configure the Odds, Winnings, and Payoff (An excel document is provided to help you configure this). GM Menu where you can see/erase statistics (Password protected), batch play-test to calculate winning chance or play normally (this doesn't affect common player statistics). General Player statistics (Gives you information about how many games have been lost, how much Zeny has been spent and the quantity of items earned by the users. (You can set Credit - Zeny price relation to calculate this: Default = 0). 2 Prize options: Credit Mode: Give credits like normal Slot Machines, you get X times the bet for combinations. GiveItem Mode: Instead of earning credits, users will earn Items. This option disables the option to bet more than 1 coin per game. Play Test Mode: You can batch-play X number of games to see quick statistics. Features for Players: Clean interface and easy to use (cutin-based animation). Users can configure the spin speed so they can play faster. Users can bet X1, X2, or x3 times in a single play. If they play x3 the Jackpot (3 Chests) pays extra (This is configurable too). NPC Information (provided to the players) is updated automatically based in your configuration like winnings and prizes. Sound feedback and effects! WINNING COMBINATIONS (AND DEFAULT PRIZES): x125 x40 x15 x6 x3 A A x2 A B x1 Where A and B can be any object. WHAT CAN I DO WITH THIS NPC? You can use it in a lot of ways! Here are some examples: To get event coins/tickets to be exchanged for other prices. Zeny sink. Poring Coins. Cash Shop Pints (Custom item needed). Costume Hat Ticket exchange. Give coins so players can change them for items in this NPC, let luck decide. And more! FILE CONTENTS: (167 MB - 3 .rar files) 1 Excel document to help you decide your winnings and payoff. 1 Script 1 Map (Replace cmd_in02 with this one if you plan to use this NPC here) 6 .wav files (Sound effects) 576 .bmp files (Cutins) 1 sprite (A silver-colored version of the original Slot Machine NPC to match cutin) BUYING TERMS: You are not allowed to redistribute this script in any way, shape, or form. Chargeback scams are not tolerated and will get you punished on rAthena. I still retain all rights to this script. You can modify this script as you like, but to receive support you must tell me what you changed. No Renewal, free updates. Contact Me on Discord: Songbird#3918 IMPORTANT: If you bought this script before, please contact me trough Discord. Submitter Songbird Submitted 02/15/2021 Category Games, Events, Quests Video Content Author Songbird  
  2. Version 1.8.0

    25 downloads

    Songbird's Repo NPC, Scripts, Maps, Sprites, Mobs & More ========================================================================================================================================== Players love Slot Machines! Specially if it is easy to use with a pretty cutin-based interface! This is a configurable Slot Machine where you're able to change the Item ID allowing you to use a custom or existing item, like Apples or a Casino exclusive coin bought with Zeny, this NPC allows you to configure the Odds, Payoff, and Winnings so you will always win! It is user-friendly and has a realistic cutin-based animation (575 .bmp files where used to create this). WARNING: Bad use of this NPC can break your server's economy, if you don't know about Slot Machine formulas and odds, just configure the item ID ".CoinID" and "$SlotCoinPrice" variables. NPC INFORMATION: Slot Machine - This script is going to create 8 NPCs in the Comodo Casino, it is recommended to replace the cmd_in02 map with the provided one if you plan to use this location. This Slot Machine has 5 images, here is the order from best to worse: Chest Coin, Bell, Yggdrasil, and Apple. Configuration is script-based. Prize is X times the bet (Depending on the multiplier) if the GiveItems feature is disabled. Features for GMs: You can configure the Odds, Winnings, and Payoff (An excel document is provided to help you configure this). GM Menu where you can see/erase statistics (Password protected), batch play-test to calculate winning chance or play normally (this doesn't affect common player statistics). General Player statistics (Gives you information about how many games have been lost, how much Zeny has been spent and the quantity of items earned by the users. (You can set Credit - Zeny price relation to calculate this: Default = 0). 2 Prize options: Credit Mode: Give credits like normal Slot Machines, you get X times the bet for combinations. GiveItem Mode: Instead of earning credits, users will earn Items. This option disables the option to bet more than 1 coin per game. Play Test Mode: You can batch-play X number of games to see quick statistics. Features for Players: Clean interface and easy to use (cutin-based animation). Users can configure the spin speed so they can play faster. Users can bet X1, X2, or x3 times in a single play. If they play x3 the Jackpot (3 Chests) pays extra (This is configurable too). NPC Information (provided to the players) is updated automatically based in your configuration like winnings and prizes. Sound feedback and effects! WINNING COMBINATIONS (AND DEFAULT PRIZES): x125 x40 x15 x6 x3 A A x2 A B x1 Where A and B can be any object. WHAT CAN I DO WITH THIS NPC? You can use it in a lot of ways! Here are some examples: To get event coins/tickets to be exchanged for other prices. Zeny sink. Poring Coins. Cash Shop Pints (Custom item needed). Costume Hat Ticket exchange. Give coins so players can change them for items in this NPC, let luck decide. And more! FILE CONTENTS: (167 MB - 3 .rar files) 1 Excel document to help you decide your winnings and payoff. 1 Script 1 Map (Replace cmd_in02 with this one if you plan to use this NPC here) 6 .wav files (Sound effects) 576 .bmp files (Cutins) 1 sprite (A silver-colored version of the original Slot Machine NPC to match cutin) BUYING TERMS: You are not allowed to redistribute this script in any way, shape, or form. Chargeback scams are not tolerated and will get you punished on rAthena. I still retain all rights to this script. You can modify this script as you like, but to receive support you must tell me what you changed. No Renewal, free updates. Contact Me on Discord: Songbird#3918 IMPORTANT: If you bought this script before, please contact me trough Discord.

    $10.00

  3. I didn't mean to remove the whole function, just this line: if(!getarg(1)) { debugmes "Error in KDR function, getarg(1) invalid value"; return 0; } // [Lighta] Regarding your second question, I recommend you to call this event with "donpcevent ", for example, in your Arena PvP NPC you can write this line: prontera,158,193,3 script Arena PvP 801,{ donpcevent "Versus::OnPCLogoutEvent"; mes "[Loki]"; mes "What can I do for you today?"; switch(select("Player Ranking:PvP Statistic")){ case 1: //Player Ranking next; This way you're forcing to update when you talk with the NPC.
  4. Try using *preg_match(<regular expression pattern>,<string>{,<offset>}) Searches a string for a match to the regular expression provided. The offset parameter indicates the index of the string to start searching. Returns offsets to captured substrings, or 0 if no match is found. This command is only available if the server is compiled with the regular expressions library enabled. Something like this could work: if (preg_match("^[a-zA-Z0-9]+$",[email protected]$) { // This means it found a coincidence, meaning that no symbols where fund } else { // No matches, symbols where found }
  5. This line... if(!getarg(1)) { debugmes "Error in KDR function, getarg(1) invalid value"; return 0; } // [Lighta] I can't find any purpose for it, I recommend you to delete it. Check if script works well without it //Ghost's KDR Algorithm function script KDR_Calc { if(!getarg(1)) { debugmes "Error in KDR function, getarg(1) invalid value"; return 0; } // [Lighta] if(getarg(0) >= getarg(1)){ if(getarg(1)){ set [email protected], getarg(0)/getarg(1); if((getarg(0)%getarg(1)) == 0){ return [email protected]+".00"; } set [email protected], (getarg(0)%getarg(1))*100/getarg(1); return [email protected]+"."[email protected]; } else { return getarg(0)+".00"; } } if(getarg(0) < getarg(1)){ if(getarg(0)){ set [email protected], (getarg(0)*10)/getarg(1); set [email protected], ((getarg(0)*10)%getarg(1))*10/getarg(1); return "0."[email protected] [email protected]; } else { return "0.00"; } } }
  6. Try this script I made (Is not tested so it could not work): prontera,150,150,7 script Quick Sell NPC#QSN1 815,{ goto OnClick; end; OnInit: // = CONFIGURE YOUR NPC HERE ========== // Enter the Item ID the NPC will buy .buyItemID = 999; // If 1, the npc will buy all the item stack at once .buyAllItems = 0; // If .buyAllItems is 0, NPC will buy the quantity set here .buyQuantity = 1; // Show deal message: 1 or not: 0 .showDealMessage = 1; // ==================================== waitingroom "B>" + getitemname(.buyItemID),0; end; OnClick: if (countitem(.buyItemID)) { [email protected] = getiteminfo(.buyItemID,1); if (.buyAllItems) { Zeny += [email protected] * countitem(.buyItemID); [email protected] = [email protected] * countitem(.buyItemID); if (.showDealMessage) dispbottom "You sold " + countitem(.buyItemID) + " " + getitemname(.buyItemID) + " for " + callfunc("F_InsertComma",[email protected]) + " Zeny."; delitem .buyItemID,countitem(.buyItemID); } else { if (.buyQuantity > 1 && countitem(.buyItemID) < .buyQuantity) { Zeny += [email protected] * countitem(.buyItemID); [email protected] = [email protected] * countitem(.buyItemID); if (.showDealMessage) dispbottom "You sold " + countitem(.buyItemID) + " " + getitemname(.buyItemID) + " for " + callfunc("F_InsertComma",[email protected]) + " Zeny."; delitem .buyItemID,countitem(.buyItemID); } Zeny += [email protected] * .buyQuantity; [email protected] = [email protected] * .buyQuantity; if (.showDealMessage) dispbottom "You sold " + .buyQuantity + " " + getitemname(.buyItemID) + " for " + callfunc("F_InsertComma",[email protected]) + " Zeny."; delitem .buyItemID,.buyQuantity; } } else { dispbottom "Not enough items to sell."; } end; }
  7. Bump, I would like if someone shares the solution for this.
  8. Hi (an apology for my English), we use the Quest System like this: 45002,600,1063,20,0,0,0,0,0,0,0,0,0,0,0,0,0,"Example" So you have 10 minutes to kill 20 Lunatics and everything works well, what we're trying to do is to prevent this message from coming out every time the Lunatic counter increases. Can someone help us to find where to change that message or even better prevent it from coming out?
  9. Srry for my bad English Hi, this is awesome, seriously I was serching for this. I hope you dont mind if I post here another Style - Color Theme for the language, the colors they were not to my liking so I chage them a little to be more user-friendly I think? There, hope you like it. How to use it: Goto /user/.atom/packages/language-athena/styles/ Back-up the original (just in case) Paste and replace (if you want) Restart Atom styles.less
×
×
  • Create New...

Important Information

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