Jump to content

fourxhackd

Members
  • Content Count

    28
  • Joined

  • Last visited

  • Days Won

    4

Reputation Activity

  1. Upvote
    fourxhackd reacted to Alayne in Bunch of PvP scripts   
    Hello peoples,
    This post is more a "link to others" than a post in itself.
    As I stated some ago that I never really wrote a script for PvP (in the most basic meaning of it), I decided last week-end to start writing some.
    But as I'm a bit...let's say 'mad', I didn't wrote one or two, but 15.
    This includes a non exhaustive list of:
    -8 PvP scripts (Battle Royal, Royal Rumble, Deus Ex, PvPvM, Vampire Bal, Clone Defense, Rotative Hunt and Mistery Case)
    Battle Royal Vampire Bal PvPvM Deus Ex -5 Battle ground scripts, based over the games in S4 League (Captain, Death Match, Captain, Siege, TouchDown)
    Captain Death Match TouchDown -1 Reaper, based over the game of the same name in S4 League too.
    -1 'improved' battleground, as it's a 4 team fight.
    I'll start to release those scripts in the week end (need some time for small edits before releasing them), and I'll all the scripts in this one and only topic, to ensure the access will be centralized for those who may want to get several.
    I don't know yet if I'll make it paid scripts, as the initial goal was to provide it for free, but the hardest took me a bunch of time to write and debug. So I guess some will be free, and some will be paid ones.
    Hope you'll like it, peoples!
     
    Edit: Here we go, first link added
  2. Upvote
    fourxhackd reacted to Haru in [2015-12-31] FAKE_NPC and the NPC View ID -1   
    Rationale:
    This is part of the NPC scripts standardization project. In the past, NPCs were defined with numeric View IDs, while now we've replaced most of them with more human-readable (and as such easier to maintain) constants - the same constants that AEGIS scripts use, making the numeric IDs obsolete (and deprecated).
     
    Contents:
    When the NPC View IDs were converted to constants, the only leftover was the special ID '-1' we use for invisible / floating NPCs, that didn't have an equivalent constant defined at the time.
    This changeset defines a constant 'FAKE_NPC' for it, and replaces all the '-1' view IDs with the new constant.
    The exception for the -1 case is removed from the code (making it effectively deprecated, just like the other numeric IDs).
     
    Impact:
    The impact of this changeset on custom scripts is low. All old code will still work (but it'll throw a deprecation warning).
    It's recommended to update all the affected code as soon as possible - the support for the old style IDs may be removed from the code at any time in the future (after at least a month from the commit).
     
    Details:
    The use of the sprite ID '-1' in NPC headers to specify an invisible NPC is now deprecated. 'FAKE_NPC' should be used instead. This affects all NPC types (script, shop, trader, duplicate, etc)
    /* Before: */ - script TurboTrap#tt_main -1,{ // ... } in_moc_16,65,162,0 duplicate(SinTrap) 02_2 -1,0,0 /* Now: */ - script TurboTrap#tt_main FAKE_NPC,{ // ... } in_moc_16,65,162,0 duplicate(SinTrap) 02_2 FAKE_NPC,0,0 Merge Date:Thu, 31 Dec 2015 23:40:48 +0100
     
    Related Pull Requests:
    - #1000 - https://github.com/HerculesWS/Hercules/pull/1000 - define FAKE_NPC as -1 in const.txt [AnnieRuru]
     
    Related Commits:
    - ef171a8 - https://github.com/HerculesWS/Hercules/commit/ef171a8 - Mon, 21 Dec 2015 19:59:38 +0800 define FAKE_NPC as -1 in const.txt [AnnieRuru]
    - efaaf84 - https://github.com/HerculesWS/Hercules/commit/efaaf84 - Mon, 21 Dec 2015 20:12:45 +0800 Replace -1,{ with FAKE_NPC,{ replace using Notepad++ [AnnieRuru]
    - b4c99db - https://github.com/HerculesWS/Hercules/commit/b4c99db - Tue, 29 Dec 2015 02:16:49 +0100 Replaced leftover -1 view IDs with FAKE_NPC [Haru]
    - 32a42ee - https://github.com/HerculesWS/Hercules/commit/32a42ee - Tue, 29 Dec 2015 02:17:26 +0100 Extended the numeric view ID deprecation to '-1' (FAKE_NPC) [Haru]
    - 0e99004 - https://github.com/HerculesWS/Hercules/commit/0e99004 - Thu, 31 Dec 2015 23:40:48 +0100 Merge branch 'AnnieRuru-request_29' into hercules [Haru]
     
    Trivia:
    Commit efaaf84 was done with a find and replace in Notepad++, to globally replace '-1' view IDs with 'FAKE_NPC' (as described in the commit notes).
    Commit b4c99db caught the leftovers (less common cases where the -1 is not followed by ',{'), and was powered by vim macros and grep (and vimgrep). It also features manual clean up of trailing whitespace or extra tabs in a small subset of the affected lines.
  3. Upvote
    fourxhackd reacted to AnnieRuru in [2015-12-31] FAKE_NPC and the NPC View ID -1   
    @@Oxxy
    use this tool to convert what Haru just said XD
    http://www.asciitohex.com/
     
     
    EDIT: the reason why we can't fix some bugs is because we have a very crappy and messy coding format in the source code
    when we directly fix the bugs, most of the time, is just a temporary measurement
     
    to permanently get rid of the bugs, the 1st step is of course make the source code have higher readability
     
    only a good structure code and a readable coding style that understood by many users, can help make our emulator less bug
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.