Jump to content

Missingno

Members
  • Posts

    135
  • Joined

  • Last visited

  • Days Won

    4

Missingno last won the day on October 14 2014

Missingno had the most liked content!

3 Followers

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

31895 profile views

Missingno's Achievements

Poring

Poring (1/15)

  • Dedicated
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

41

Reputation

17

Community Answers

  1. Where can i put this code? after OnInit:? Read the red text (above).
  2. I doubt the space in the beginning of the name for the query was intentional, but I'll look into a solution for a name query with a space in the beginning of the name (though honestly, players shouldn't be allowed to have spaces in the beginning of their name).
  3. Add this line under OnPCLoginEvent: .@map$ = strcharinfo(3); If for some reason you're using eAthena, use this instead: set .@map$, strcharinfo(3);
  4. You'll have to convert all variable declarations to use the set command. This script works as intended for rAthena emulators.
  5. Remove the close; command from your OnNPCKillEvent label; it is being used without a message dialogue, subsequently throwing the error. A more suitable command would be end;.
  6. See the documentation for monster: http://rathena.org/wiki/Monster To add a respawn timer, just add sleep2 to the monster's event label before spawning a new one.
  7. /*========================================================= Points to Item Exchanger by Mumbles =========================================================== Request: http://goo.gl/MplDtF =========================================================== Preview: =========================================================== Description: Exchanges items for points and vice-versa at a fixed rate. =========================================================== Compatibility: Optimised for rAthena emulators. =========================================================== Changelog: v1.0 - First version. v1.0.1 - Added changelog. v1.0.2 - Removed reverse transactions. [Missingno] v1.0.3 - Adjusted rates. [Missingno] v1.1 - Compatibilised for rAthena emulators. [Missingno] =========================================================*/ prontera,164,169,3 script Point Exchanger::points2item 871,{ /*----------------------------------------------------- Script -----------------------------------------------------*/ mes .npc_name$; mes "Hello there, ^FF8800"+ strcharinfo(0) +"^000000! "+ "Would you exchange your "+ .points_name$ +" "+ "for "+ .pod_name$ +"?"; mes " "; mes "Exchange Rate: "+ .rate +":1"; mes .points_name$ +": [^FF0000"+ getd(.points_var$) +"^000000]"; next; switch (select(implode(.menu_options$, ":"))) { case 1: mes .npc_name$; mes "Okay, come back if you change your mind!"; break; case 2: mes .npc_name$; mes "Please enter the amount of "+ .points_name$ +" that you want to exchange."; do { mes " "; mes "Input ^0000FF0^000000 to cancel."; next; input .@amount; .@total = .@amount / .rate; // Check break input if (!.@amount) { message strcharinfo(0), strnpcinfo(1) +" : Exchange terminated."; close; } // Check amount against points if (getd(.points_var$) < .@amount) { mes .npc_name$; mes "^FF0000Please enter a valid amount.^000000"; } } while (getd(.points_var$) < .@amount); // Check weight if (!checkweight(.pod_id, .@total)) { mes .npc_name$; mes "^FF0000You're overweight; please store some items.^000000"; break; } setd .points_var$, getd(.points_var$) - .@amount; getitem .pod_id, .@total; mes .npc_name$; mes "You've exchanged "+ .@amount +" "+ .points_name$ +" for "+ .@total +" "+ .pod_name$ +". "+ "You now have "+ getd(.points_var$) +" "+ .points_name$ +" and "+ countitem(.pod_id) +" "+ .pod_name$ +"."; break; } close; /*----------------------------------------------------- Configuration -----------------------------------------------------*/ OnInit: .npc_name$ = "[^0000FFPoint Exchanger^000000]"; .rate = 20; // Exchange rate (rate = 1 PoDs) .pod_id = 7350; // Proof of Donation item ID or constant .pod_name$ = getitemname(.pod_id) +"(s)"; // Proof of Donation item name .points_name$ = "Cash Point(s)"; // Points name .points_var$ = "#CASHPOINTS"; // Points variable // Modifying these options requires updates to the corresponding case setarray .menu_options$[0], "^FF0000>^000000 Cancel", "^0000FF>^000000 Exchange "+ .points_name$ +" for "+ .pod_name$; end; }
  8. Why not take the script and simply remove the reversed transaction? You'd literally comment out two blocks of code. o_o
  9. He means to say change these lines: menu "Yes, I have those SHITS!!",-,"No, I'm starting to gather it"; Into this: menu "Yes, I have those SHITS!!",-,"No, I'm starting to gather it",No;
  10. Here's a useful script from another board that would suit your needs (with a little tweaking for compatibility): Points to Item Exchanger
  11. Give this a try (automated): - script max_lv 99,{ // Configuration OnInit: .max_base = 150; .max_job = 70; .item_id = 501; .amount = 1; end; // Script OnPCBaseLvUpEvent: OnPCJobLvUpEvent: // Determine if Base Level and Job Level are max if (BaseLevel == .max_base && JobLevel == .max_job) { // Receive reward getitem .item_id, .amount; // Display confirmation message message strcharinfo(0), "Congratulations! You have received "+ .amount +" "+ getitemname(.item_id) +" for reaching the max level!"; } end; }
  12. If you're running rAthena, you should be able to simply load the script and execute the command. Make sure you run the SQL query as well; I just tested this again to ensure its functionality, and it works fine. Note that if you've previously loaded this script into your server with @loadnpc, you'll have to unload it before loading it again (@unloadnpc reward).
  13. The way I've written it, you can literally inject each section of code into your script. Place the configuration section under your script's OnInit label, and the item check at the beginning of the script (under the header).
×
×
  • Create New...