Skillbooks

Results 1 to 18 of 18
  1. #1
    Proficient Member NeoXRage is offline
    MemberRank
    May 2008 Join Date
    150Posts

    Skillbooks

    Ok I'm almost done on Skillbooks and I need help to convert this to titanms..
    After I finish this last part i'll release the whole thing.

    // Skill books
    void Inventory::useSkillbook(Player *player, unsigned char *packet){
    short slot = getShort(packet+4);
    int itemid = getInt(packet+6);

    if(player->inv->getItemAmountBySlot(slot, 2) == 0){
    // hacking
    return;
    }

    int skillid = 0;
    int newMaxLevel = 0;
    bool use = false;
    bool succeed = false;

    for(unsigned int i=0; i<Drops::consumes[itemid].skills.size(); i++){
    skillid = Drops::consumes[itemid].skills[i].skillid;
    newMaxLevel = Drops::consumes[itemid].skills[i].maxlevel;
    if(player->getJob() == (int)Drops::consumes[itemid].skills[i].skillid/10000){ // Make sure the skill is for the person's job
    if(player->skills->getSkillLevel(skillid) >= Drops::consumes[itemid].skills[i].reqlevel && player->skills->getMaxSkillLevel(skillid) < newMaxLevel)
    use = true;
    }
    if(use){
    if(Randomizer::Instance()->randInt(99)<Drops::consumes[itemid].success){
    player->skills->setMaxSkillLevel(skillid, newMaxLevel);
    succeed = true;
    }
    takeItemSlot(player, slot, 2, 1);
    break;
    }
    }

    if(skillid == 0) return;

    InventoryPacket::useSkillbook(player, Maps::info[player->getMap()].Players, skillid, newMaxLevel, use, succeed);
    }

    EDIT: These are my errors and I know this isnt hard to solve

    1>------ Build started: Project: MapleStoryServer, Configuration: Debug Win32 ------
    1>Compiling...
    1>Inventory.cpp
    1>c:\users\wowe\desktop\lolz new\lolzms - test\maplestoryserver\inventory.cpp(231) : error C2027: use of undefined type 'PlayerSkills'
    1> c:\users\wowe\desktop\lolz new\lolzms - test\maplestoryserver\player.h(16) : see declaration of 'PlayerSkills'
    1>c:\users\wowe\desktop\lolz new\lolzms - test\maplestoryserver\inventory.cpp(231) : error C2227: left of '->getSkillLevel' must point to class/struct/union/generic type
    1>c:\users\wowe\desktop\lolz new\lolzms - test\maplestoryserver\inventory.cpp(231) : error C2027: use of undefined type 'PlayerSkills'
    1> c:\users\sdsd\desktop\sdsd new\sdsdms - test\maplestoryserver\player.h(16) : see declaration of 'PlayerSkills'
    1>c:\users\ssdsdn\desktop\sdsde new\ssdems - test\maplestoryserver\inventory.cpp(231) : error C2227: left of '->getMaxSkillLevel' must point to class/struct/union/generic type
    1>c:\users\ssddsn\desktop\ssdsd new\ssdsdems - test\maplestoryserver\inventory.cpp(235) : error C2653: 'Randomizer' : is not a class or namespace name
    1>c:\users\sdsd\desktop\sddnew\sdsds- test\maplestoryserver\inventory.cpp(235) : error C2227: left of '->randInt' must point to class/struct/union/generic type
    1> type is ''unknown-type''
    1>c:\users\sdsdd\desktop\ssde new\sessdsms - test\maplestoryserver\inventory.cpp(235) : error C3861: 'Instance': identifier not found
    1>c:\users\dsdsd\desktop\sdsd new\ssddems - test\maplestoryserver\inventory.cpp(236) : error C2027: use of undefined type 'PlayerSkills'
    1> c:\users\ddd\desktop\sdsd new\ssdsms - test\maplestoryserver\player.h(16) : see declaration of 'PlayerSkills'
    1>c:\users\sdsd\desktop\ddd new\sddms - test\maplestoryserver\inventory.cpp(236) : error C2227: left of '->setMaxSkillLevel' must point to class/struct/union/generic type
    1>Build log was saved at "file://c:\Users\sds\Desktop\dsde new\sddms - TesT\MapleStoryServer\Debug\BuildLog.htm"
    1>MapleStoryServer - 9 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
    Originally made by Doyos exclusively for Vana
    Copyright (C) 2008 Vana Development Team
    Last edited by NeoXRage; 28-05-08 at 07:48 AM.


  2. #2
    Account Upgraded | Title Enabled! shlomivman is offline
    MemberRank
    Jan 2006 Join Date
    284Posts

    Re: [Release] Skillbooks

    I get other errors when I try compile it
    I will help you to solve some errors
    Code:
    ------ Build started: Project: MapleStoryServer, Configuration: Release Win32 ------
    Compiling...
    Inventory.cpp
    .\Inventory.cpp(669) : error C2039: 'useSkillbook' : is not a member of 'Inventory'
            c:\documents and settings\xxxx\xxxxx\xxxxx\maplestoryserver\Inventory.h(14) : see declaration of 'Inventory'
    .\Inventory.cpp(673) : error C2039: 'getItemAmountBySlot' : is not a member of 'PlayerInventory'
            c:\documents and settings\xxxx\xxxxx\xxxxx\maplestoryserver\PlayerInventory.h(39) : see declaration of 'PlayerInventory'
    .\Inventory.cpp(683) : error C2039: 'skills' : is not a member of 'ConsumeInfo'
            c:\documents and settings\xxxxx\xxxxx\xxxxxx\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
    .\Inventory.cpp(683) : error C2228: left of '.size' must have class/struct/union
    .\Inventory.cpp(684) : error C2039: 'skills' : is not a member of 'ConsumeInfo'
            c:\documents and settings\xxxxxxx\xxxxxx\xxxxxx\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
    .\Inventory.cpp(684) : error C2228: left of '.skillid' must have class/struct/union
    .\Inventory.cpp(685) : error C2039: 'skills' : is not a member of 'ConsumeInfo'
            c:\documents and settings\xxxxx\xxxxx\xxxxxx\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
    .\Inventory.cpp(685) : error C2228: left of '.maxlevel' must have class/struct/union
    .\Inventory.cpp(686) : error C2039: 'skills' : is not a member of 'ConsumeInfo'
            c:\documents and settings\xxxxx\xxxxx\xxxxxx\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
    .\Inventory.cpp(686) : error C2228: left of '.skillid' must have class/struct/union
    .\Inventory.cpp(687) : error C2027: use of undefined type 'PlayerSkills'
            c:\documents and settings\xxxxxx\xxxxxxx\xxxxxx\maplestoryserver\Player.h(16) : see declaration of 'PlayerSkills'
    .\Inventory.cpp(687) : error C2227: left of '->getSkillLevel' must point to class/struct/union/generic type
    .\Inventory.cpp(687) : error C2039: 'skills' : is not a member of 'ConsumeInfo'
            c:\documents and settings\xxxxxx\xxxxxx\xxxxxxxx\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
    .\Inventory.cpp(687) : error C2228: left of '.reqlevel' must have class/struct/union
    .\Inventory.cpp(687) : error C2027: use of undefined type 'PlayerSkills'
            c:\documents and settings\xxxxx\xxxxxx\xxxxxxx\maplestoryserver\Player.h(16) : see declaration of 'PlayerSkills'
    .\Inventory.cpp(687) : error C2227: left of '->getMaxSkillLevel' must point to class/struct/union/generic type
    .\Inventory.cpp(691) : error C2653: 'Randomizer' : is not a class or namespace name
    .\Inventory.cpp(691) : error C2227: left of '->randInt' must point to class/struct/union/generic type
            type is ''unknown-type''
    .\Inventory.cpp(691) : error C3861: 'Instance': identifier not found
    .\Inventory.cpp(692) : error C2027: use of undefined type 'PlayerSkills'
            c:\documents and settings\xxxxx\xxxxx\xxxxxx\maplestoryserver\Player.h(16) : see declaration of 'PlayerSkills'
    .\Inventory.cpp(692) : error C2227: left of '->setMaxSkillLevel' must point to class/struct/union/generic type
    .\Inventory.cpp(695) : error C3861: 'takeItemSlot': identifier not found
    .\Inventory.cpp(702) : error C2039: 'useSkillbook' : is not a member of 'InventoryPacket'
            c:\documents and settings\xxxxxx\xxxxxx\xxxxxxx\maplestoryserver\InventoryPacket.h(15) : see declaration of 'InventoryPacket'
    .\Inventory.cpp(702) : error C2660: 'useSkillbook' : function does not take 6 arguments
    MapleStoryServer - 24 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

  3. #3
    Account Upgraded | Title Enabled! sean360 is offline
    MemberRank
    Apr 2008 Join Date
    PhilippinesLocation
    426Posts

    Re: [Release] Skillbooks

    Lol im so close on getting this. I only have 1 error so far

    3>c:\users\sean\desktop\seige new\seigems - test\maplestoryserver\skills.h(124) : error C2065: 'player' : undeclared identifier

  4. #4
    Account Upgraded | Title Enabled! shlomivman is offline
    MemberRank
    Jan 2006 Join Date
    284Posts

    Re: [Release] Skillbooks

    Quote Originally Posted by sean360 View Post
    Lol im so close on getting this. I only have 1 error so far
    me too but other error
    Code:
    ------ Build started: Project: MapleStoryServer, Configuration: Release Win32 ------
    Compiling...
    Inventory.cpp
    .\Inventory.cpp(670) : error C2511: 'void Inventory::useSkillbook(Player *,unsigned char *)' : overloaded member function not found in 'Inventory'
            c:\documents and settings\shlomi\desktop\israelms tg re v0.1\maplestoryserver\Inventory.h(14) : see declaration of 'Inventory'
    MapleStoryServer - 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

  5. #5
    Proficient Member qazwsx3edc is offline
    MemberRank
    Apr 2008 Join Date
    150Posts

    Re: [Release] Skillbooks

    Where did you get this souce from? o.o

  6. #6
    Account Upgraded | Title Enabled! pawitp is offline
    MemberRank
    Feb 2006 Join Date
    349Posts

    Re: [Release] Skillbooks

    You know what? This is doyos' work on skill books in Vana (which actually works).
    https://trac.synexic.org/browser/tru.../Inventory.cpp (starting line 634)

  7. #7
    Account Upgraded | Title Enabled! doyos is offline
    MemberRank
    Apr 2008 Join Date
    267Posts

    Re: [Release] Skillbooks

    Yeah, this is a direct rip of my work by somebody who has no idea how the hell to actually make it work. If you're going to use it whether you ever get it to work or not, at least put the copyright information for Vana with it since it is copyrighted code of Vana. Honestly I'd prefer you do it out of respect for open source and the people who decide to code in it rather than legal reasons though.

  8. #8
    Apprentice ajxizzle is offline
    MemberRank
    May 2008 Join Date
    8Posts

    Re: [Release] Skillbooks

    Ouch. doyos regulated that.

  9. #9
    Account Upgraded | Title Enabled! Cuumquat is offline
    MemberRank
    May 2008 Join Date
    Graveyard..Location
    477Posts

    Re: [Release] Skillbooks

    Dammit, thats vana :/
    Can anyone code it for Krytical Rev007?

  10. #10
    Account Upgraded | Title Enabled! shlomivman is offline
    MemberRank
    Jan 2006 Join Date
    284Posts

    Re: [Release] Skillbooks

    I try to make it work for 007 ,I will give full credits to doyos.

  11. #11
    Proficient Member vino104 is offline
    MemberRank
    Jan 2008 Join Date
    NetherlandsLocation
    167Posts

    Re: [Release] Skillbooks

    PHP Code:
    // Skill books
    void Inventory::useSkillbook(Player *playerunsigned char *packet){
    short slot getShort(packet+4);
    int itemid getInt(packet+6);

    if(
    player->inv->getItemAmountBySlot(slot2) == 0){
    // hacking
    return;
    }

    int skillid 0;
    int newMaxLevel 0;
    bool use = false;
    bool succeed false;

    for(
    unsigned int i=0i<Drops::consumes[itemid].skills.size(); i++){
    skillid Drops::consumes[itemid].skills[i].skillid;
    newMaxLevel Drops::consumes[itemid].skills[i].maxlevel;
    if(
    player->getJob() == (int)Drops::consumes[itemid].skills[i].skillid/10000){ // Make sure the skill is for the person's job
    if(player->skills->getSkillLevel(skillid) >= Drops::consumes[itemid].skills[i].reqlevel && player->skills->getMaxSkillLevel(skillid) < newMaxLevel)
    use = 
    true;
    }
    if(use){
    if(
    Randomizer::Instance()->randInt(99)<Drops::consumes[itemid].success){
    player->skills->setMaxSkillLevel(skillidnewMaxLevel);
    succeed true;
    }
    takeItemSlot(playerslot21);
    break;
    }
    }

    if(
    skillid == 0) return;

    InventoryPacket::useSkillbook(playerMaps::info[player->getMap()].PlayersskillidnewMaxLevel, use, succeed);


  12. #12
    Proficient Member tagerinator is offline
    MemberRank
    Nov 2007 Join Date
    Canada FTW!Location
    199Posts

    Re: [Release] Skillbooks

    Thanks, Ill try it.

  13. #13
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Re: [Release] Skillbooks

    doyo .. I dont think developers of this projects can claim for copyrights because of this
    http://nximage.nexon.net/common/legal_info/terms.html
    look
    the Code of Conduct

    Download, copy, reproduce, republish, upload, post, transmit, modify, distribute or publicly display any of the content or information contained in the Service except as expressly authorized by this Agreement;

    Host, provide matchmaking services for, or emulate or redirect the communications protocols used by us (or our designees) as part of the Service, including, without limitation, by protocol emulation, tunneling, reverse engineering, modifying the Software or using a utility program to host the Software;

    Use tools which hack or alter the Software, Cash Items or the Service or that allow you to connect to the Software's private binary interface or utilize user or other interfaces other than those provided by us to you;

    Use "packet sniffing," scripting and/or macroing software for any purpose whatsoever, or otherwise monitor the Service, the Cash Items or the Software

    then read the OWNERSHIP, LICENSING AND RESTRICTIONS ON USE.

    so x_x you cant claim for copyright when you are already breaking a copyright xP

  14. #14
    Account Upgraded | Title Enabled! pawitp is offline
    MemberRank
    Feb 2006 Join Date
    349Posts

    Re: [Release] Skillbooks

    It says stuff on using one not writing one.

  15. #15
    Account Upgraded | Title Enabled! AsianBoy is offline
    MemberRank
    Apr 2008 Join Date
    455Posts

    Re: [Release] Skillbooks

    well doyos still made it for private server... at lease give some credit

  16. #16
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Re: [Release] Skillbooks

    Host, provide matchmaking services for, or emulate or redirect the communications protocols used by us (or our designees) as part of the Service, including, without limitation, by protocol emulation, tunneling, reverse engineering, modifying the Software or using a utility program to host the Software;
    -----------------------------------------

    yeah doyos made it , but he cant ask for copyrights xP
    he can ask for credits xP

  17. #17
    Account Upgraded | Title Enabled! robtbs is offline
    MemberRank
    Apr 2008 Join Date
    828Posts

    Re: [Release] Skillbooks

    Quote Originally Posted by gogodr View Post
    Host, provide matchmaking services for, or emulate or redirect the communications protocols used by us (or our designees) as part of the Service, including, without limitation, by protocol emulation, tunneling, reverse engineering, modifying the Software or using a utility program to host the Software;
    -----------------------------------------

    yeah doyos made it , but he cant ask for copyrights xP
    he can ask for credits xP
    lol this is for REPRODUCTION


    DOYO made it her self, she dint use ANY nexon CODE, so she can add credits

    SINCE SHE MADE IT, besides nexon use c# not c++

  18. #18
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Re: [Release] Skillbooks

    Quote Originally Posted by robtbs View Post
    lol this is for REPRODUCTION


    DOYO made it her self, she dint use ANY nexon CODE, so she can add credits

    SINCE SHE MADE IT, besides nexon use c# not c++
    are you sure?

    with this I'm completly sure that you dont know how this servers are working
    this servers are emulations of the global maple story server
    thats why we use packets



Advertisement