Jump to content

Euphy

Members
  • Posts

    2997
  • Joined

  • Last visited

  • Days Won

    74

Everything posted by Euphy

  1. Applied mkbu95's patch in r16735. Thanks!
  2. Euphy

    Killcount

    Everything you need is in doc\script_commands.txt, though I admit it's hard searching for specific commands when you only have a description in mind. Hunting quests can either be done through db\quest_db.txt or an NPC script. Since you want the monster kills to only count with an accessory equipped, you have to use a script: OnNPCKillEvent: // this activates each time a monster is killed if (quest_variable == value) { // check if player has the quest first (for efficiency) if (killedrid == 1002 && isequipped(accessory_id)) { // additional checks set kill_count_variable, kill_count_variable+1; // add kill to counter if (kill_count_variable == 1000) // notify the player dispbottom "You are done the quest."; } } end; You'll probably need to add/set other variables to check what part of the quest the player is on. As for the random questions, use a switch() statement: switch(rand(20)) { // will output a number 0,1,2,3,...19 case 0: set .@question$,"This is your first question!"; set .@answer$,"This is the first answer!"; break; // break out of the switch() case 1: // etc. //... case 19: // etc. } mes .@question$; input .@str$; // any variable, since these are temporary if (.@str$ == .@answer$) { mes "Correct!"; getitem item_id,amount; close; } else { mes "Incorrect."; close; } To ask multiple questions, possibly use a for() loop and give the reward when the loop variable is 3.
  3. I like the idea, it could be very useful. A different color would be nice. xD
  4. http://upaste.me/raw/2ef2101478bee773
  5. @Natsu Dragneel: That's because you spelled the script name differently... -.-
  6. Search button, please. o.o; if (Sex) goto L_Male; else goto L_Female; Edit: beaten. xD
  7. Euphy

    monster level

    strmobinfo(3,killedrid)
  8. @Vitrue: It's goddameit's reward function, not mine - you can download his standalone script if you need it.
  9. > bugreport:6548 A response will be posted there when this is fixed~
  10. Already in the SVN. https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/npc/custom/events/disguise.txt
  11. @Yahiko: Confused as to why you'd (1) separate job cases when TS didn't ask for it and 250 isn't a default max anyway, (2) include options, battleignore, and berserk, and (3) add GM announcing... also, this entire section isn't needed (the original script, with 1 GM check, would suffice): if (getgmlevel()>=99) goto L_admin; if (getgmlevel()>=80) goto L_sub; if (getgmlevel()>=60) goto L_event; // plus the labels themselves readparam(bStr); readparam(bAgi); readparam(bVit); readparam(bInt); readparam(bDex); readparam(bLuk);
  12. Unless you rescript, yeah.
  13. The script uses one bit variable to store data. The way it was set up, it only holds 30 values... bad planning, imo. If you want to write a fix so that 2 variables are used, I'll add it, but I'm not sure it's worth the effort xD.
  14. @Natsu Dragneel: Well that's embarrassing... x.x Fixed, sorry about that: http://pastebin.com/raw.php?i=uL4MKVKf
  15. http://rathena.org/wiki/Custom_Items What problem are you having?
  16. Jman/Brian: Thanks, I had no idea how those things worked. xD So I should leave that line alone? I'll wait a couple more hours before I commit since this isn't urgent. Edit: Done, r16725.
  17. I've fixed and standardized all msg_athena messages. Mind if I commit them? msg_athena.patch Only afterwards did I realize the original messages are in the source as comments. I didn't change those. Are they even needed? This is a patch to Ind's patch, didn't realize it was committed already e.e. msg_athena.conf.patch
  18. @MelMel: You can't use any other WOE script that uses "loadevent" flags unless you disable the "AutoKick" feature.
  19. Isn't this the same thing as @main?
  20. Emistry, you posted one yourself. http://rathena.org/b...pt/#entry132448
  21. http://rathena.org/board/topic/67262-requestra-warper-with-save-function/
  22. Don't create duplicate threads, thank you.
  23. 1-3: https://rathena.svn...._job_system.txt 4: As in, no teams? Mapflags: pvp_noparty, pvp_noguild. 5: if (getmapusers("map") > 1) { mes "This map is full."; close; }
×
×
  • Create New...