[Tutorial] How to block rebirth on some area

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Valued Member mar is offline
    MemberRank
    Nov 2006 Join Date
    142Posts

    [Tutorial] How to block rebirth on some area

    Let's say u want to block scroll of rebirth in castle (castle war).
    We cant do this in standard way, so we have to change revival function. Idea: add function which will be called from revival function that control Player's X,Y and compare them with coordinates of forbidden area.

    Symbols in this guide:
    -PX,PY - player's X, player's Y
    -X1,Y1 - south-west left corner of area where u cant use rebirth
    -X2,Y2 - north-east corner of area where u cant user rebirth

    Function:
    if PX<X1 -> rebirth works
    if PX>X2 -> rebirth works
    if PY<Y1-> rebirth works
    if PY>Y2 ->rebirth works
    else rebirth doesn't work (PX and PY is in our area)


    Ok, let's start modifications - everything is in MainSvrT.exe


    1) Open it in hexeditor, (for ex. xvi32)
    -Make bypass of revival function - (On start function jmp to our procedrue) - Go to offset 1FFA3 and replace bytes to:

    E9 B8 AA 0B 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90


    -Make our function. Goto offset daa60 (empty area) and change bytes (overwrite) to:

    8B 45 08 81 B8 4C 01 00 00 C0 C1 03 00 72 29 81 B8 4C 01 00 00 80 DE 03 00 77 1D 81 B8 50 01 00 00 00 E1 03 00 72 11 81 B8 50 01 00 00 C0 0D 04 00 77 05 E9 1E 55 F4 FF 51 89 4D FC 8B 45 FC 8B 48 04 51 8B 4D 08 E8 A5 9E F8 FF E9 06 55 F4 FF

    This is our function. It looks like:
    mov eax,[ebp+08]
    cmp [eax+14c], X1 <- check PX with X1
    jb out_of_area <- jump if below
    cmp [eax+14c],X2 <-check PX with X2
    ja out_of_area <- jump if above
    cmp [eax+150], Y1 <- check PY with Y1
    jb out_of_area
    cmp [eax+150],Y2 <-check PY with Y2
    ja out_of_area
    return from function (we are in area, jump back into end of revival function)
    out_of_area: commands from orginal revival function.


    2) Save, close. It's done
    Last edited by ToXiC L33T; 24-01-09 at 01:22 PM. Reason: no title


  2. #2
    Account Upgraded | Title Enabled! 2Kxx is offline
    MemberRank
    Feb 2008 Join Date
    Sweden..Location
    1,194Posts

    Re: [GUIDE] How to block rebirth on some area

    Nice :)

  3. #3
    Account Upgraded | Title Enabled! Qdud is offline
    MemberRank
    Nov 2008 Join Date
    C:\Slovenia\Human#31534521341\RealLife\RealLife.exeLocation
    280Posts

    Re: [GUIDE] How to block rebirth on some area

    Cool usefull for CW :)

  4. #4
    Account Upgraded | Title Enabled! StickyIcky is offline
    MemberRank
    Feb 2008 Join Date
    daheimLocation
    465Posts

    Re: [GUIDE] How to block rebirth on some area

    lawl thats nice :D

  5. #5
    boo General is offline
    MemberRank
    Sep 2006 Join Date
    at homeLocation
    2,269Posts

    Re: [GUIDE] How to block rebirth on some area

    lets see if this works

    edit: it does work, pretty nice work :)

  6. #6
    Member nosseir63 is offline
    MemberRank
    Oct 2006 Join Date
    EgyptLocation
    70Posts

    Re: [GUIDE] How to block rebirth on some area

    thx alot...it work
    only one point needed....when u die in the castel Area....u back to your revive city very fast.... i mean if the time become 2 minuts will be better....cuz u maybe get revive by a mage in your guild in War

  7. #7
    Valued Member mar is offline
    MemberRank
    Nov 2006 Join Date
    142Posts

    Re: [GUIDE] How to block rebirth on some area

    cause it was an unnecessary rebirth effect when rebirth was blocked and 1 rebirth was taken i decided to correct it, so overwrite all bytes at offset daa60 into:

    8B 45 08 81 B8 4C 01 00 00 C0 C1 03 00 72 2E 81 B8 4C 01 00 00 80 DE 03 00 77 22 81 B8 50 01 00 00 00 E1 03 00 72 16 81 B8 50 01 00 00 C0 0D 04 00 77 0A B8 00 00 00 00 E9 19 55 F4 FF 51 89 4D FC 8B 45 FC 8B 48 04 51 8B 4D 08 E8 A0 9E F8 FF E9 01 55 F4 FF 00 00

    Now, when you die in forbidden area, you wil not loose rebirth scroll and there will be no rebirth effect

  8. #8
    Enthusiast DJBL is offline
    MemberRank
    Aug 2008 Join Date
    37Posts

    Re: [GUIDE] How to block rebirth on some area

    Does this have to be hex edited after kosp is applied or before?

  9. #9
    boo General is offline
    MemberRank
    Sep 2006 Join Date
    at homeLocation
    2,269Posts

    Re: [GUIDE] How to block rebirth on some area

    Quote Originally Posted by DJBL View Post
    Does this have to be hex edited after kosp is applied or before?
    doesnt matter

    All the KOSP patch does, is changing 1 dll name into another inside your mainsvr...

  10. #10
    Enthusiast DJBL is offline
    MemberRank
    Aug 2008 Join Date
    37Posts

    Re: [GUIDE] How to block rebirth on some area

    Problem is if i edit (hex editor is HxD) then the mainsrv.exe becomes inoperationable

  11. #11
    boo General is offline
    MemberRank
    Sep 2006 Join Date
    at homeLocation
    2,269Posts

    Re: [GUIDE] How to block rebirth on some area

    you need to replace bytes, not add ;p

  12. #12
    Enthusiast DJBL is offline
    MemberRank
    Aug 2008 Join Date
    37Posts

    Re: [GUIDE] How to block rebirth on some area

    ok that worked, but mainsrv now closing when someone uses rb

  13. #13
    Proficient Member Mr.wagdy is offline
    MemberRank
    Sep 2006 Join Date
    EgyptLocation
    187Posts

    Re: [GUIDE] How to block rebirth on some area

    yay its work !

    thank's :)

  14. #14
    Account Upgraded | Title Enabled! samsam is offline
    MemberRank
    Mar 2007 Join Date
    RussianLocation
    359Posts

    Re: [GUIDE] How to block rebirth on some area

    When i use any rb on any place i got CL + mainsvr close hmm

    any one have any idea?

  15. #15
    Enthusiast DJBL is offline
    MemberRank
    Aug 2008 Join Date
    37Posts

    Re: [GUIDE] How to block rebirth on some area

    Quote Originally Posted by samsam View Post
    When i use any rb on any place i got CL + mainsvr close hmm

    any one have any idea?
    same prob and no help



Page 1 of 2 12 LastLast

Advertisement