Jump to content

Euphy

Members
  • Posts

    2997
  • Joined

  • Last visited

  • Days Won

    74

Everything posted by Euphy

  1. 17377 downloads

    Here's a re-upload of a pack I found a while ago - I take no credit for it whatsoever. Included are 2862 guild emblems, which must be placed in the "Emblem" folder of your Ragnarok directory.
    Free
  2. File Name: Guild Emblem Pack (2862) File Submitter: Euphy File Submitted: 09 Jun 2012 File Category: Other Content Author: (unknown) Here's a re-upload of a pack I found a while ago - I take no credit for it whatsoever. Included are 2862 guild emblems, which must be placed in the "Emblem" folder of your Ragnarok directory. Click here to download this file
  3. You're supplying "1" as the first argument, then writing: if(getarg(1)==1){goto L_firstmenu;end;} That skips your array setup completely, giving you no values to select from. Your select statement could also be condensed from this: select(.@a$[1],.@a$[2],.@a$[3],.@a$[4],.@a$[5],.@a$[6],.@a$[7],.@a$[8], .@a$[9],.@a$[10],.@a$[11],.@a$[12],.@a$[13],.@a$[14],.@a$[15],.@a$[16], .@a$[17],.@a$[18],.@a$[19],.@a$[20],.@a$[21],.@a$[22],.@a$[23]); set .@c,@menu; To this: set .@menu$,""; for(set .@i,1; .@i<24; set .@i,.@i+1) set .@menu$, .@menu$+.@a$[.@i]+":"; set .@c, select(.@menu$);
  4. Remember that you only put single quotes (') around strings, not integers, so these parts need to be changed: WHERE `id` = '"+.@f+"'" Didn't look at the rest of it yet, but see if that fixes the problem.
  5. Quest Shop updated to v1.4! This mostly adds debug information, and includes a freeloop to prevent infinity loop errors (revision 15340 and up). @Jhosef: The freeloop in v1.4 fixes your error.
  6. If it isn't too much work, it'd be useful to have a few more character commands that work regardless of online/offline status. It's both annoying and inefficient (script-wise) to keep checking whether to attachrid or do an SQL query, since attachrid doesn't work for offline characters (obviously) and SQL queries don't update immediately for online characters. And when setting character/account variables, there's the additional check whether to do an SQL update or insertion. Altogether it'd just be a lot more convenient to have these commands, or something similar: Like setd, set a character or account variable for a specified character/account ID. This would work without attachrid(), and regardless of online/offline status. The variable prefix should automatically determine whether the supplied ID is character or account. * setc <character ID>,"<variable name>",<value>; * setc <account ID>,"<variable name>",<value>; Like getd, and same as above.* getc(<character ID>,"<variable name>") * getc(<account ID>,"<variable name>") Also, extend rid2name() and getcharid() to work for offline characters. Opinions?
  7. You have to use the script Emistry posted, because yours isn't updated for Zeny display. I'd really suggest using my quest shop, though, since Lunar hasn't updated that script for ages.
  8. @adjgmlvl doesn't work with the new "group" settings. Use @adjgroup. (The command is temporary.)
  9. Do you need help generating the codes or placing the codes? You didn't specify where you wanted them. ;o
  10. {},{ changebase roclass(eaclass()|EAJL_THIRD); },{ changebase Class; } Works for all classes.
  11. Oh, sorry, I forgot the "mes" command. (/facepalm) It works now.
  12. @Jhosef: You configured something wrong. Post your code and a screenshot of your mapserver error. @emong: I didn't write the script to be duplicated - that's why I included categories. See my previous post if you really need to duplicate.
  13. Euphy

    Shop

    @Mysterious: I've tested both of the scripts before posting them, and were both fine for me... x.x Remember the shop loads items OnInit (needs @reloadscript). About account variables: you need to use a different SQL query because they take no character ID. I'm not really sure how you'd display the ladder without giving away account names, then...
  14. <header> { set .@i, countitem(7227); mes "[TCG Exchanger]"; mes "You have ^0055FF"+.@i+" TCG^000000."; if (!.@i) { mes "Please come back later."; close; } mes "I can trade ^FF00001 TCG^000000 for ^FF00005 Cash Points^000000."; next; if(select(" - Trade: - ^777777Leave^000000")==2) close; mes "[TCG Exchanger]"; mes "How many would you like to exchange?"; next; input .@j; mes "[TCG Exchanger]"; if (.@j < 1 || .@j > countitem(7227)) { mes "That's an invalid amount."; close; } mes "Are you sure you want to exchange ^0055FF"+.@j+" TCG^000000?"; if(select(" - Yes: - No")==2) close; mes " "; delitem 7227, .@j; set #CASHPOINTS, #CASHPOINTS+(.@j*5); mes "You now have "+#CASHPOINTS+" Cash Points."; close; }
  15. A password or random code...? Password should be self-explanatory, and here's for a random code: set .@str$,""; for(set .@i,0; .@i<10; set .@i,.@i+1) set .@str$, .@str$+rand(9); mes .@str$; input .@i$; if (.@i$ != .@str$) mes "Code invalid."; else warp "<map>",<x>,<y>; close;
  16. <header> { L_Summon: monster "<map>",<x>,<y>,<name>,<ID>,1,strnpcinfo(3)+"::OnBossDead"; disablenpc "bosswarp"; end; OnBossDead: enablenpc "bosswarp"; sleep <ms>; // Respawn time goto L_Summon; end; } <from map> warp bosswarp 2,2,<to map>
  17. I've run into a lot of problems with this, myself. The issue is that most (or all?) variables do not update when added/modified through a direct SQL query, and are only reloaded through @reloadscript or on a reboot. (And if you're ever feeling masochistic, try updating guild tables through SQL queries. They're are a nightmare. x_x) Workaround: Attach RID to the player you need, then trigger a script using "set" from there. This will only work if the player is online, of course. I can't think of any other method. Edit: Actually, you could keep a permanent global array of characters (names or IDs) you want to add variables to, and loop through the list OnPCLoginEvent, deleting the variable and shifting the array back if there's a match.
  18. item_db2.txt? The same way you'd add any custom item.
  19. @Paulinds: Use the code I posted (that is the itemscript). It will work for every class that has a third job... though I haven't tested it on classes without one (it shouldn't cause errors).
  20. @mnjfx: Which NPC are you talking about? All-In-One NPC updated to v1.4! The NPC now fully supports third classes.
  21. Euphy

    Shop

    @Mysterious: prontera,163,172,4 script Testing 950,{ input .@i$; mes "[Point Ladder]"; query_sql("SELECT char_id,value FROM `global_reg_value` WHERE `str` = '"+.@i$+"' ORDER BY `value` DESC LIMIT 50", .@char_id, .@value); if (!getarraysize(.@char_id)) { mes "No values found for ^0055FF"+.@i$+"^000000."; close; } for(set .@i,0; .@i<getarraysize(.@char_id); set .@i,.@i+1) query_sql("SELECT `name` FROM `char` WHERE `char_id` = "+.@char_id[.@i]+";", .@name$[.@i]); for(set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i+1) mes "["+(.@i+1)+"] ^FF0000"+.@value[.@i]+"^000000 points - ^0055FF"+.@name$[.@i]+"^000000"; close; } That's only for character variables, though. The script is similar for account variables.
  22. Tested, it works. It's just a sprite change, no skills.
  23. Euphy

    Shop

    Just wrote one, if you want to look at it: http://pastebin.com/raw.php?i=f5SJVy4k
  24. If you want 1 item for all classes, I think this should work... {},{ changebase roclass(eaclass()|EAJL_THIRD); },{ changebase Class; }
  25. No... that's still exactly what you're describing. http://write.ratemyserver.net/ragnoark-online-how-to/the-auction-house-system/
×
×
  • Create New...