[Quest] Bet on Guild Wars.

  • Hey, don't know if this exists alredy in this forum but im going to post here, a quest that let's you bet yang on guild war's.


    Quest works in this way:


    You can only bet if you have a ticket ( can be edited to the item you want )


    You can do how many bet's you want depending on the number of tickets you have 1ticket = 1 bet.


    You can't bet in war's that involve your guild.


    you get 2x what you bet if you win.


    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------


    game/src/questlua_guild.cpp


    Search:


    Code
    1. int guild_get_reserve_war_table(lua_State * L)


    Under all that code, add:


    Search:

    Code
    1. { "get_reserve_war_table", guild_get_reserve_war_table },


    Add under:

    Code
    1. { "sistema_apostas", guild_sistema_apostas },
    2. { "dar_recompensa", guild_dar_recompensa },


    Now you just need to compile, but don't forget to add this on quest_functions:

    Code
    1. guild.dar_recompensa
    2. guild.sistema_apostas


    Now here is the quest with comments to explain what each code does ( Don't forget to translate because it's in portuguese ) And im assuming you know how to build a quest.


    Download:


    VT

    Einmal editiert, zuletzt von Myth ()

  • Dieses Thema enthält 7 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind, bitte registrieren Sie sich oder melden Sie sich an um diese lesen zu können.