Jump to content

Euphy

Members
  • Posts

    2997
  • Joined

  • Last visited

  • Days Won

    74

Everything posted by Euphy

  1. This script could be written in a very small fraction of your lines. Instead of repeatedly copying the same code to get card names, call a function. You really don't need conditionals for all 13 card cases to begin with. Instead of re-summing point total each draw, store the previous value. Since this is a paid script, also, you should make it easier to edit prizes, or at least explain in the description what they are.
  2. @Golen Maker: It calls a function to see if it should return "a" or "an" before announcing. If you don't want it, if (.Announce) announce strcharinfo(0)+" has created "+getitemname(.@q[0])+"!",0;
  3. You can farm kills logging in and out, then.
  4. - script PVP_Points -1,{ OnPCKillEvent: if (killedrid == getcharid(3) || killedrid == last_kill) end; set last_kill, killedrid; set #CASHPOINTS, #CASHPOINTS+1; dispbottom "Gained a kill point! Total: "+#CASHPOINTS; end; }
  5. If a castle is unconquered, the emperium will always spawn. You can either block the feature in the agit_main and agit_main_se files or block access to those castles while inactive (a feature in my WOE controller: trunk/npc/custom/woe_controller.txt).
  6. Euphy

    Quest NPC

    Updated script to v1.5 to make this much easier to do: trunk/npc/custom/quests/quest_shop.txt
  7. Quest Shop updated to v1.5! (r17031/rathena/trunk/npc/custom/quests/quest_shop.txt) This update replaces shop categories with IDs, and the shop NPC now calls a function/floating NPC to trigger shop events. Creating multiple shops is very easy now. :>
  8. Best guess is that you're running another WOE script (class restrictions, etc.) that sets mapflags on the guild castle maps. If you updated to v1.4 of the controller (trunk/npc/custom/woe_controller.txt) this issue is fixed.
  9. You really shouldn't need help writing dialogue. It's your server. mes "[Christmas Event]"; // description next; mes "[Christmas Event]"; if (countitem(30000) >= 15000) { delitem 30000,15000; getitem 22009,1; mes "Here's a Falcon Clip!"; announce strcharinfo(0)+" has received a Falcon Clip!",0; } else mes "You need ^0055ff15k DeceiveRO Coins^000000 for a Falcon Clip."; close;
  10. Only moderators can. xD
  11. You can't create permanent character or account arrays. There's a limit on the total number you can use (or your server will lag), so you should definitely try reducing the number - either using bit variables, if possible, or storing multiple values inside a string (using implode/explode).
  12. Prices are located in item_db. WOE debug messages are because your controller is outdated (calling incorrect labels). Infinity loop is a script problem.
  13. @Shogun: It ranks by mission count, not points.
  14. @Shogun: You'll just have to test it yourself, the formulas aren't that well-defined. xD
  15. data\num2cardillustnametable.txt
  16. Is the imported database in the correct path (root/pre-re/re)?
  17. You'll have to add this label every script you want with this feature. OnWhisperGlobal: if (@whispervar0$ == "open") hideoffnpc strnpcinfo(0); if (@whispervar0$ == "close") hideonnpc strnpcinfo(0); end; (or, if it's a lot of scripts, create a function for it)
  18. --> You don't have PCRE installed.
  19. @Shogun: Depends how you want to do it... if you can edit the script directly, @unloadnpcfile/@loadnpc would do it, otherwise you can add an OnWhisperGlobal label (or menu option, if you want): // Whisper to WOE_CONTROL: // itemID:amount{:itemID:amount{:...}} OnWhisperGlobal: if (getgmlevel() < .GMAccess) end; dispbottom " "; dispbottom "Current rewards:"; for(set .@i,0; .@i<getarraysize(.Reward); set .@i,.@i+2) dispbottom " > "+.Reward[.@i+1]+"x "+getitemname(.Reward[.@i]); dispbottom "------------------------------------"; dispbottom "New rewards:"; explode(.@j$,@whispervar0$,":"); for(set .@i,0; .@i<getarraysize(.@j$); set .@i,.@i+2) { if (getitemname(atoi(.@j$[.@i])) == "" || getitemname(atoi(.@j$[.@i])) == "null" || .@j$[.@i+1] == "" || atoi(.@j$[.@i+1]) == 0) { dispbottom "**** Invalid parameters "+.@j$[.@i]+":"+.@j$[.@i+1]+" ****"; end; } dispbottom " > "+.@j$[.@i+1]+"x "+getitemname(atoi(.@j$[.@i])); setarray .@k[getarraysize(.@k)],atoi(.@j$[.@i]),atoi(.@j$[.@i+1]); } if(select(" > ^0055FFConfirm...^000000: > ^777777Cancel^000000") == 1) { deletearray .Reward[0],getarraysize(.Reward); copyarray .Reward[0],.@k[0],getarraysize(.@k); dispbottom "Done."; } close;
  20. Euphy

    Ragnarok

    Please post employment topics in the Jobs Available forum. Be sure to follow the employment rules. Thanks!
  21. I did not see any reasons for the scriptt will not work in the latest rAthena revision. You can try it. No, the label calls are outdated. I changed NPC names in r16571.
  22. Mapflag#snow town_name mapflag snow
  23. "pre-re" and "re" are paths loaded depending on whether or not you have Renewal enabled in trunk/src/config/renewal.h (the default is on). You then select to load either the SQL or TXT databases; you can edit the SQL tables directly.
×
×
  • Create New...