Jump to content

Euphy

Members
  • Posts

    2997
  • Joined

  • Last visited

  • Days Won

    74

Everything posted by Euphy

  1. If you need something to loop for short periods of time, use "sleep <ms>", i.e. OnInit: while(1) { setarray .@messages$[0], "your first message", "second message", "etc."; announce .@messages$[rand(getarraysize(.@messages$))],0; sleep 300000; } end;
  2. Likewise, it would've been nice if people on eA posted things on sites other than, say, Megaupload... :<
  3. Instead of: OnPCLoginEvent: Write: OnNPCKillEvent: set @bot_chk, @bot_chk+1; if (@bot_chk < 100) end; else set @bot_chk,0; // script resumes
  4. You never have to add constants in separate quotes, only variables, e.g. atcommand "@option " + 2; atcommand "@mute "+"200" +strcharinfo(0); Could be written as: atcommand "@option 2"; atcommand "@mute 200 "+strcharinfo(0);
  5. Yup, that's correct. The first code prevents suicides and the second prevents repeated kills (you switch that on/off in the OnInit section).
  6. if (isequipped(5009, 2406) ... Should be: if (!isequipped(5009, 2406) ...
  7. Add to whatever warper, if (Class > 4054) { mes "Third classes cannot enter."; close; }
  8. @Chickz: The variable is #CASHPOINTS. When you create scripts like those, though, you must be careful with additional checks to prevent abuse, ex. suicide/farming: - script PCKill -1,{ OnPCKillEvent: if (killedrid == getcharid(3)) end; if (.NoFarm) { if (killedrid == @last_kill) end; set @last_kill, killedrid; } for(set .@i,0; .@i<getarraysize(.maps$); set .@i,.@i+1) if (strcharinfo(3)==.Maps$[.@i]) { if (.Item) getitem .Item, 1; if (.Cash$ != "") { setd .Cash$, getd(.Cash$)+1; dispbottom "Gained a kill point! Total: "+getd(.Cash$); } } end; OnInit: setarray .Maps$[0],"pvp_y_1-2","pvp_y_2-2","pvp_y_3-2"; set .NoFarm,1; // End script for repeated kills? (1:yes / 0:no) set .Item, 0; // 0 to disable set .Cash$, "#CASHPOINTS"; // "" to disable end; }
  9. Under the group that you want to enable the command for, go to the "commands" section, and add: go: true
  10. All that the atcommand file specifies is the trigger for atcommands (@/#, by default) and "aliases" that activate those commands. The file where you distribute the commands is groups.conf.
  11. They're all compiled as Renewal, I think.
  12. A database of custom items/IDs seems a bit unreasonable. There's no way that everyone would abide to it, nor should they have to. I was thinking more of an input section in the package-extracting program, where an ID could be specified. Actually, if someone could write the program to display all the changes it would make and allow editing, that would be fantastic.
  13. I agree with Greenbox. So long as we provide an "official" executable and/or release the source, a Package Manager program seems the best way to go. As much as I like the idea of having all the information provided by the spriter, lots of additional information will likely be added/modified by the end user in nearly all cases. While I suppose things like ID and description could be provided, it may be more useful to have options in the packaging program to directly edit these fields.
  14. *rentitem <item id>,<time>; *rentitem "<item name>",<time>; Creates a rental item in the attached character's inventory. The item will expire in <time> seconds and be automatically deleted. When receiving a rental item, the character will receive a message in their chat window. The character will also receive warning messages in their chat window before the item disappears. This command can not be used to rent stackable items. Rental items cannot be dropped, traded, sold to NPCs, or placed in guild storage. (i.e. trade mask 75) Note: 'delitem' in an NPC script can still remove rental items.
  15. Euphy

    Where to start?

    src\map\config\renewal.h: Basically, comment everything out and recompile for pre-Renewal mechanics.
  16. It's in db\re or db\pre-re depending on whether you have Renewal enabled or not in the source (src\map\config\renewal.h).
  17. And to make it permanent, you can script an SQL query that adjusts a given player's "Group" value in the login table.
  18. http://sourceforge.net/projects/rathena/
  19. Euphy

    Job Antibot

    @Mohawk: Fairly self-explanatory, remove this line (and the corresponding bracket at the end): if( BaseClass == Job_Bard || BaseClass == Job_Dancer ){
  20. Change line 3 to: set .@num, atoi(""+getarg(0));
  21. @Tribbiani: No, you're right, it is kvm_point.
×
×
  • Create New...