[Tutorial] Super Zombie XP Drop

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Account Upgraded | Title Enabled! Poster13 is offline
    MemberRank
    Jun 2013 Join Date
    395Posts

    [Tutorial] Super Zombie XP Drop

    Hello Community)) I want to tell you how to do so would be for the murder of super zombies give you more experience than the usual zombie))) (Only InvasionMMO Source)
    Example:
    Super Zombie Kill = 20 XP
    Zombie Kill = 5 XP
    So, let's begin:
    Open WarZ_Server.sln
    Search: (UserRewards.h)
    enum EPlayerRewardID

    Look at it:

    enum EPlayerRewardID
    {
    RWD_ZombieKill = 1, //Standard Zombie


    RWD_MAX_REWARD_ID = 512,

    };

    Add this:
    enum EPlayerRewardID
    {
    RWD_ZombieKill = 1, //Standard Zombie RWD
    RWD_SZombieKill = 2, // Super Zombie RWD


    RWD_MAX_REWARD_ID = 512,
    };


    Search: (sobj_Zombie.cpp)

    if(SZombieHealth <= 0.0f)
    Find something like this:
    if(HeroItemID == Super_Zombie)
    {
    if(SZombieHealth <= 0.0f)
    {
    DoDeath();


    if(fromObj->Class->Name == "obj_ServerPlayer")
    {
    obj_ServerPlayer* plr = (obj_ServerPlayer*)fromObj;
    }
    return true;
    }
    Add an extra line like this:
    if(HeroItemID == Super_Zombie)
    {
    if(SZombieHealth <= 0.0f)
    {
    DoDeath();


    if(fromObj->Class->Name == "obj_ServerPlayer")
    {
    obj_ServerPlayer* plr = (obj_ServerPlayer*)fromObj;
    gServerLogic.AddPlayerReward(plr, RWD_SZombieKill);
    }
    return true;
    }
    Open WarZ.sln
    Search: (UserRewards.cpp)
    void CGameRewards::InitDefaultRewards()
    Create one like this:
    void CGameRewards::InitDefaultRewards()
    {
    // HERE is COPY-PASTED CODE FROM ExportDefaultRewards()
    // USED FOR SERVER


    SetReward(1, "ZombieKill", 2, 2, 5, 5);
    SetReward(2, "SZombieKill", 19, 19, 30, 30);
    }
    Compile Client and Server..........


  2. #2
    Apprentice weng12 is offline
    MemberRank
    Jun 2013 Join Date
    9Posts

    Re: [Tutorial] Super Zombie XP Drop

    how to add hp super zombie and Drop item for super zombie ??

  3. #3
    Enthusiast maxmaz9 is offline
    MemberRank
    Apr 2013 Join Date
    THAILANDLocation
    44Posts

    Re: [Tutorial] Super Zombie XP Drop

    Quote Originally Posted by weng12 View Post
    how to add hp super zombie and Drop item for super zombie ??
    superzombie drop you can fix in your studio and sql

  4. #4
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    Re: [Tutorial] Super Zombie XP Drop

    good job =D

  5. #5
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Tutorial] Super Zombie XP Drop

    how to apply to DNC

    not found >> if(SZombieHealth <= 0.0f)

  6. #6
    Member crysis55 is offline
    MemberRank
    Apr 2013 Join Date
    RussiaLocation
    80Posts

    Re: [Tutorial] Super Zombie XP Drop

    Quote Originally Posted by javaz97 View Post
    how to apply to DNC

    not found >> if(SZombieHealth <= 0.0f)
    Only for Invasion

  7. #7
    Account Upgraded | Title Enabled! Poster13 is offline
    MemberRank
    Jun 2013 Join Date
    395Posts

    Re: [Tutorial] Super Zombie XP Drop

    Quote Originally Posted by crysis55 View Post
    Only for Invasion
    You need use InvasionMMO sobj_Zombie.h and cpp

  8. #8
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Tutorial] Super Zombie XP Drop

    thank a lot mate

  9. #9
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Tutorial] Super Zombie XP Drop

    how to modify to DNC or AllRight ?

  10. #10
    Account Upgraded | Title Enabled! Poster13 is offline
    MemberRank
    Jun 2013 Join Date
    395Posts

    Re: [Tutorial] Super Zombie XP Drop

    use InvasionMMO sobj_Zombie (cpp and h)

  11. #11
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Tutorial] Super Zombie XP Drop

    thank Poster13

  12. #12
    Account Upgraded | Title Enabled! Cryptopia is offline
    MemberRank
    Oct 2013 Join Date
    HelveteLocation
    289Posts

    Re: [Tutorial] Super Zombie XP Drop

    not working on allright source.

  13. #13
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Tutorial] Super Zombie XP Drop

    and how to spawn Super Zombie in Colorado?

  14. #14
    Account Upgraded | Title Enabled! Cryptopia is offline
    MemberRank
    Oct 2013 Join Date
    HelveteLocation
    289Posts

    Re: [Tutorial] Super Zombie XP Drop

    you have to add them with eclipse studio.

  15. #15
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Tutorial] Super Zombie XP Drop

    by "studio.exe" ?
    my server cant run this + +



Page 1 of 2 12 LastLast

Advertisement