[Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

Results 1 to 21 of 21
  1. #1
    Proficient Member Ruezu is offline
    MemberRank
    Feb 2008 Join Date
    164Posts

    [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    I might as well release mine since I got it working perfectly.

    Skills.ccp

    Code:
      else if(strcmp(name, "end2311003") == 0) Skills::end2311003(player); // Holy Symbol
            else if(strcmp(name, "end5101002") == 0) Skills::end5101002(player); // GM Holy Symbol
    
                else if(skillid == 2311003){ // Holy Symbol
            timer->stop(player, "end2311003");
            end2311003(player);
        }
                else if(skillid == 5101002){ // GM Holy Symbol
            timer->stop(player, "end5101002");
            end5101002(player);
        }
    
                    else if(skillid == 2311003){  // Holy Symbol
            timer->stop(player, "end2311003");
            vals.push_back(skills[skillid][level].x);
            SkillsPacket::useSkill(player, Maps::info[player->getMap()].Players , skillid, skills[skillid][level].time*1000, 0, 0, 0, (char) 0x1, 0, 0, 0, 0, vals,  1);
            timer->setSkillTimer(player, "end2311003", skills[skillid][level].time*1000);
                    player->setHS(true);
        }
                    else if(skillid == 5101002){ // GM Holy Symbol
            vals.push_back(50);
    		for (unsigned int x=0; x<Maps::info[player->getMap()].Players.size(); x++){
            SkillsPacket::useSkill(Maps::info[player->getMap()].Players[x], Maps::info[player->getMap()].Players, skillid, 1800*1000, 0, 0, 0, (char) 0x1, 0, 0, 0, 0, vals,  1);
            Player *curplayer = Maps::info[player->getMap()].Players[x];
    		curplayer->setGHS(true);
    		timer->setSkillTimer(Maps::info[player->getMap()].Players[x], "end5101002", 1800*1000);
    		}
        }
    
    void Skills::end2311003(Player* player){ // Holy Symbol
        SkillsPacket::endSkill(player, Maps::info[player->getMap()].Players, 0, 0, 0, (char)0x1, 0, 0, 0, 0, 1);
            player->setHS(false);
    }
    void Skills::end5101002(Player* player){ // GM Holy Symbol
        SkillsPacket::endSkill(player, Maps::info[player->getMap()].Players, 0, 0, 0, (char)0x1, 0, 0, 0, 0, 1);
            player->setGHS(false);
    }
    Mobs.ccp

    Code:
    Find:
    Levels::giveEXP(player, mobinfo[mob->getMobID()].exp);
    
    Replace:
        float hsrate = 0;
        float exprate2 = 0;
            if (player->getHS() == true) {
            hsrate = Skills::skills[2311003][player->skills->getSkillLevel(2311003)].x;
        }
            
                    else if (player->getGHS() == true) {
            hsrate = 50;
    
        }
    
                                exprate2 = 1+(hsrate/100);
    Levels::giveEXP(player, mobinfo[mob->getMobID()].exp * exprate2);
    
    or for those of you who have the int EXPRATE at the top.
    
        float hsrate = 0;
        float exprate2 = 0;
            if (player->getHS() == true) {
            hsrate = Skills::skills[2311003][player->skills->getSkillLevel(2311003)].x;
        }
            
                    else if (player->getGHS() == true) {
            hsrate = 50;
    
        }
    
                                exprate2 = 1+(hsrate/100);
        Levels::giveEXP(player, mobinfo[mob->getMobID()].exp * EXPRATE * exprate2);
    Skills.h

    Code:
        static void end2311003(Player* player); // Holy Symbol
            static void end5101002(Player* player); // GM Holy Symbol
    Player.h
    Code:
    Player ()
    
            holysymbol=false;
            gholysymbol=false;
    
    Public:
    
            bool getHS() {
            return holysymbol;
        }
        void setHS(bool holysymbol) {
            this->holysymbol = holysymbol;
        } 
            bool getGHS() {
            return gholysymbol;
        }
        void setGHS(bool gholysymbol) {
            this->gholysymbol = gholysymbol;
        }
    
    Private:
    
          bool gholysymbol;
                bool holysymbol;


    Credits: Doyos and LeoDirk

    Ja Ne~
    Last edited by Ruezu; 01-05-08 at 10:59 PM.


  2. #2
    Account Upgraded | Title Enabled! Krytical is offline
    MemberRank
    Apr 2008 Join Date
    411Posts

    Re: Holy Symbol - Rev 7 - Working Version (Normal + GM)

    Then where are the getHS and getGHS coming from?

  3. #3
    Member DarkVenom2 is offline
    MemberRank
    Apr 2008 Join Date
    66Posts

    Re: Holy Symbol - Rev 7 - Working Version (Normal + GM)

    This wonnot work ! I just try it ~~

  4. #4
    Proficient Member Ruezu is offline
    MemberRank
    Feb 2008 Join Date
    164Posts

    Re: Holy Symbol - Rev 7 - Working Version (Normal + GM)

    Woops, I forgot some important stuff, editted.

  5. #5
    Account Upgraded | Title Enabled! Krytical is offline
    MemberRank
    Apr 2008 Join Date
    411Posts

    Re: Holy Symbol - Rev 7 - Working Version (Normal + GM)

    Now how are you going to get all players affected?
    ...................


    Code:
    		for (unsigned int x=0; x<Maps::info[player->getMap()].Players.size(); x++) {
            SkillsPacket::useSkill(Maps::info[player->getMap()].Players[x], Maps::info[player->getMap()].Players, skillid, 1800*1000, 0, 0, 0, (char) 0x1, 0, 0, 0, 0, vals,  1);
            timer->setSkillTimer(Maps::info[player->getMap()].Players[x], "end5101002", 1800*1000);
                    player->setGHS(true);
    		}
        }

  6. #6
    Proficient Member Ruezu is offline
    MemberRank
    Feb 2008 Join Date
    164Posts

    Re: Holy Symbol - Rev 7 - Working Version (Normal + GM)

    Quote Originally Posted by Krytical View Post
    Now how are you going to get all players affected?
    They already are affected...X_X? when you Super GM HS.

    Edit: I already put that code in on my 1st edit with all the stuff.

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

    Re: Holy Symbol - Rev 7 - Working Version (Normal + GM)

    No, you still have it wrong
    I doubt you tested it with a lot of ppl i currently doing it with my live test as we speak

  8. #8
    Proficient Member Ruezu is offline
    MemberRank
    Feb 2008 Join Date
    164Posts

    Re: Holy Symbol - Rev 7 - Working Version (Normal + GM)

    Work on my server...maybe I didn't write something here...I'll check.

    Edit: Yeah, I didn't write a line correctly...I did code on my home computer
    Then had to retype the code here at cafe from memory o.O

    Thank Q very much - Ari~

  9. #9
    Account Upgraded | Title Enabled! DarkZero88 is offline
    MemberRank
    Apr 2008 Join Date
    357Posts

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    hmm your code are messed up like you should wrap them in dif PHP, not all in the same >_>

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

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    I had to fix it but I got it working perfectly , thanks

  11. #11
    Member lanbo is offline
    MemberRank
    Apr 2008 Join Date
    53Posts

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    this doesnt work for me:

    else if(skillid == 5101002){ // GM Holy Symbol
    timer->stop(player, "end5101002");
    vals.push_back(50);
    for (unsigned int x=0; xgetMap()].Players.size(); x++) {
    SkillsPacket::useSkill(Maps::info[player->getMap()].Players[x], Maps::info[player->getMap()].Players, skillid, 1800*1000, 0, 0, 0, (char) 0x1, 0, 0, 0, 0, vals, 1);
    timer->setSkillTimer(Maps::info[player->getMap()].Players[x], "end5101002", 1800*1000);
    player->setGHS(true);
    }
    }
    player->setGHS(true);
    }
    }

    gives me an error

  12. #12
    Valued Member LeoDirk is offline
    MemberRank
    Apr 2008 Join Date
    140Posts

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    Quote Originally Posted by lanbo View Post
    this doesnt work for me:

    else if(skillid == 5101002){ // GM Holy Symbol
    timer->stop(player, "end5101002");
    vals.push_back(50);
    for (unsigned int x=0; xgetMap()].Players.size(); x++) {
    SkillsPacket::useSkill(Maps::info[player->getMap()].Players[x], Maps::info[player->getMap()].Players, skillid, 1800*1000, 0, 0, 0, (char) 0x1, 0, 0, 0, 0, vals, 1);
    timer->setSkillTimer(Maps::info[player->getMap()].Players[x], "end5101002", 1800*1000);
    player->setGHS(true);
    }
    }
    player->setGHS(true);
    }
    }

    gives me an error
    lmao is the kid even trying anymore? x.x that script isnt even close to coded correctly, the last part " player->setGHS(true);
    }
    }" isn't even included in anything, thats what the error is.

  13. #13
    Valued Member NeverGiveUp315 is offline
    MemberRank
    Sep 2007 Join Date
    123Posts

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    nice release can u code it for rev 008 please

  14. #14
    Valued Member LeoDirk is offline
    MemberRank
    Apr 2008 Join Date
    140Posts

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    Quote Originally Posted by NeverGiveUp315 View Post
    nice release can u code it for rev 008 please
    -cough- this is the second rev7 remake from the original rev8 that was posted by Doyos. Find it on the forum, I'm too lazy to find it and repost it for you.

  15. #15
    Member lanbo is offline
    MemberRank
    Apr 2008 Join Date
    53Posts

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    Quote Originally Posted by LeoDirk View Post
    lmao is the kid even trying anymore? x.x that script isnt even close to coded correctly, the last part " player->setGHS(true);
    }
    }" isn't even included in anything, thats what the error is.
    i took it out and i still get

    1>------ Build started: Project: MapleStoryServer, Configuration: Release Win32 ------
    1>Compiling...
    1>Skills.cpp
    1>.\Skills.cpp(370) : warning C4305: 'argument' : truncation from 'int' to 'bool'
    1>.\Skills.cpp(412) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>.\Skills.cpp(590) : error C3861: 'xgetMap': identifier not found
    1>.\Skills.cpp(590) : error C2143: syntax error : missing ';' before ']'
    1>.\Skills.cpp(590) : error C2143: syntax error : missing ')' before ']'
    1>.\Skills.cpp(590) : error C2143: syntax error : missing ';' before ']'
    1>.\Skills.cpp(590) : error C2065: 'x' : undeclared identifier
    1>.\Skills.cpp(590) : error C2059: syntax error : ')'
    1>.\Skills.cpp(590) : error C2143: syntax error : missing ';' before '{'
    1>.\Skills.cpp(591) : error C2065: 'x' : undeclared identifier
    1>.\Skills.cpp(592) : error C2065: 'x' : undeclared identifier
    1>.\Skills.cpp(844) : warning C4305: 'argument' : truncation from 'int' to 'bool'
    1>Build log was saved at "file://c:\LanboMs\MapleStoryServer\Release\BuildLog.htm"
    1>MapleStoryServer - 9 error(s), 3 warning(s)
    ========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========


    o-O

  16. #16
    Valued Member LeoDirk is offline
    MemberRank
    Apr 2008 Join Date
    140Posts

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    Quote Originally Posted by lanbo View Post
    i took it out and i still get

    1>------ Build started: Project: MapleStoryServer, Configuration: Release Win32 ------
    1>Compiling...
    1>Skills.cpp
    1>.\Skills.cpp(370) : warning C4305: 'argument' : truncation from 'int' to 'bool'
    1>.\Skills.cpp(412) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>.\Skills.cpp(590) : error C3861: 'xgetMap': identifier not found
    1>.\Skills.cpp(590) : error C2143: syntax error : missing ';' before ']'
    1>.\Skills.cpp(590) : error C2143: syntax error : missing ')' before ']'
    1>.\Skills.cpp(590) : error C2143: syntax error : missing ';' before ']'
    1>.\Skills.cpp(590) : error C2065: 'x' : undeclared identifier
    1>.\Skills.cpp(590) : error C2059: syntax error : ')'
    1>.\Skills.cpp(590) : error C2143: syntax error : missing ';' before '{'
    1>.\Skills.cpp(591) : error C2065: 'x' : undeclared identifier
    1>.\Skills.cpp(592) : error C2065: 'x' : undeclared identifier
    1>.\Skills.cpp(844) : warning C4305: 'argument' : truncation from 'int' to 'bool'
    1>Build log was saved at "file://c:\LanboMs\MapleStoryServer\Release\BuildLog.htm"
    1>MapleStoryServer - 9 error(s), 3 warning(s)
    ========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========


    o-O
    lmfao, not at you lanbo, the kid that did the script.. He seriously doesn't know what he was doing with that code at all, look for " for (unsigned int x=0; xgetMap()].Players.size(); x++) {" in it, replace with "for (unsigned int x=0; x<Maps::info[player->getMap()].Players.size(); x++) {"

  17. #17
    Proficient Member Ruezu is offline
    MemberRank
    Feb 2008 Join Date
    164Posts

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    You didn't know what you were doing with your code, child.

    Like I said I typed it up while in boredom at Internet Cafe

    - Fixed Script Up :D (Copied from My Rev, So It Is 100% Working) - Please Update it! Krytical's Fix Makes The Player Have HS Icon on Top for GM HS BUT no HS Effect. I've fixed it so it has an HS effect now.

  18. #18
    Member lanbo is offline
    MemberRank
    Apr 2008 Join Date
    53Posts

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    Quote Originally Posted by LeoDirk View Post
    lmfao, not at you lanbo, the kid that did the script.. He seriously doesn't know what he was doing with that code at all, look for " for (unsigned int x=0; xgetMap()].Players.size(); x++) {" in it, replace with "for (unsigned int x=0; x<Maps::info[player->getMap()].Players.size(); x++) {"
    thx, fixed it <3 but the GM HS doesnt work :(

  19. #19
    Novice shijobaby is offline
    MemberRank
    Nov 2009 Join Date
    3Posts

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)


  20. #20
    Member sockerkids is offline
    MemberRank
    May 2008 Join Date
    51Posts

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    Lol.. u bumped last year's thread..

  21. #21
    Valued Member GoldenKevin is offline
    MemberRank
    Oct 2008 Join Date
    117Posts

    Re: [Release]Holy Symbol - Rev 7 - Working Version (Normal + GM)

    Lol, titanms.



Advertisement