Jump to content

Euphy

Members
  • Posts

    2997
  • Joined

  • Last visited

  • Days Won

    74

Everything posted by Euphy

  1. WOE Controller updated to v1.4! The LoadEvent implementation now allows you to use other WOE scripts along with this (ex. Emistry's class restrictions), and makes modifications easier in general. There is now a setting to kick players from unconquered castles outside of WOE, as requested. Script format standardized (mostly).
  2. I think it's the 'mes' command which causes the error off-screen; try changing that to 'dispbottom' and see if you still get the error. If you do, then yeah, you'll need a new NPC (with no coordinates).
  3. Euphy

    Overflow

    Max int is 2147483648, your script produces 13531694210 (magnitude of 10 higher).
  4. npc_checknear results when a player is not in sight range of the NPC they are using.
  5. @Emistry: You'd need to be careful about the array size limit using that method, since anything over 128 might prevent the script from finding a winner. It also creates a lot of large loops, so you should probably 'freeloop' to be safe.
  6. The exact script may depend on whose controller you are using, but in general, OnPCLoadMapEvent: set .@map$, strcharinfo(3); if (!compare(.@map$,"g_cas")) end; if (((!agitcheck() && !compare(.@map$,"arug") && !compare(.@map$,"schg")) || !agitcheck2() && (compare(.@map$,"arug") || compare(.@map$,"schg"))) && !getcastledata(.@map$,1)) { dispbottom "You are not allowed in this castle."; sleep2 1000; warp "SavePoint",0,0; } end; /* If mapflags are not already set: setarray .@Castles$[0], "prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05", "payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05", "gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05", "aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05", "arug_cas01","arug_cas02","arug_cas03","arug_cas04","arug_cas05", "schg_cas01","schg_cas02","schg_cas03","schg_cas04","schg_cas05"; for(set .@i,0; .@i<30; set .@i,.@i+1) setmapflag .@Castles$[.@i], mf_loadevent; end; */
  7. 'set' -> 'setarray' (please read your mapserver errors)
  8. This script can be rewritten as: OnPCBaseLvUpEvent: setarray .@item[0],501,501,501,501,501,501,501,501,501,501,501,501,501,501,501; if (!(BaseLevel%10)) getitem .@item[(BaseLevel/10)-1]; end;
  9. This is a little hackish, but here's what I use -- when there is only one player left on the map (auto-checking timer is already in the scripts), enable an OnTouch NPC somewhere on the map and 'mapwarp' the map (which should only have 1 player) to that NPC. When that NPC script is executed, give rewards, kick the player out, and disable the NPC. You could use an SQL query to find the one player on the map, but from past experience I've had cases where `last_map` doesn't update in time.
  10. trunk/conf/battle/skill.conf // Dancing Weapon Switch // On official server, a fix is in place that prevents the switching of weapons to cancel songs. // Default: yes dancing_weaponswitch_fix: yes
  11. @GmOcean: Why not use 'jobname' to save yourself some work? And it's 7227. :>
  12. Logs mostly just take up space, not so much affecting performance.
  13. Somehow I doubt that anyone will translate 8000 lines when we could just wait for an official script.
  14. Euphy

    VIP Player

    http://rathena.org/board/topic/67140-viplib-v14b-vipadmin-v13a-updated/
  15. You're going to have to be more specific, or this is all you're going to get: jobchange Job_Baby;
  16. Since our pre-Renewal files are already very stable, I don't see the point in dropping them... It doesn't complicate updates since, well, we're not updating those files, only Renewal ones.
  17. http://www.eathena.ws/board/index.php?showtopic=246599 http://rathena.org/wiki/Basic_Scripting#Shop
  18. input .@i; if (.@i == 0 || .@i > Zeny) mes "That's an invalid amount."; else { mes "You've bet "+.@i+" Zeny..."; set Zeny, Zeny-.@i; sleep2 1000; if (!rand(5)) { mes "You Win!"; set Zeny, Zeny+(.@i*5); } else mes "You Lose."; } close; Somehow I expected more from a "super request"... :3
  19. Afaik, you can only "sign" the name of an existing character.
  20. http://www.mediafire.com/?d0690uesk8yp4qc
  21. @GmOcean: if (str$ == "")
  22. Arcenciel has a good point. A more realistic example, map name = Main_Town. I don't know how many people would include caps in their map names, but it's not as rare as we might think.
  23. Have you even tried looking? ._. http://lmgtfy.com/?q=rathena+aldebaran+continental+messenger
  24. Class // ex. 4013 jobname(Class) // ex. "Assassin Cross" trunk/doc/script_commands.txt
×
×
  • Create New...