Character Change Class Script

Results 1 to 15 of 15
  1. #1
    Valued Member FatalWorkz is offline
    MemberRank
    May 2011 Join Date
    PhilippinesLocation
    100Posts

    shout Character Change Class Script

    hello mates, can someone tell me some script for character change class which i can imply to the database?. some PHP Code? pls tell me. i really need this one . thank you


  2. #2
    Am i? ScriptKid is offline
    MemberRank
    Oct 2006 Join Date
    $Location="??";Location
    1,810Posts

    Re: Character Change Class Script

    like a module for a website or simple php code that let user change class?

  3. #3
    Valued Member FatalWorkz is offline
    MemberRank
    May 2011 Join Date
    PhilippinesLocation
    100Posts

    Re: Character Change Class Script

    Quote Originally Posted by ScriptKid View Post
    like a module for a website or simple php code that let user change class?
    yes its a kind of module an added query w/c user account will pay a credits sir? can you tell me? what php code it is to be implemented on webshop, about the launcher you offer on me sir, can you preview me some feature of it so i will gonna represent it and i will purchased your offer sir.?. thank you in advanced.

    Server Name: Professional MU
    Version: Season 6 Episode 3

  4. #4
    Valued Member FatalWorkz is offline
    MemberRank
    May 2011 Join Date
    PhilippinesLocation
    100Posts

    Re: Character Change Class Script

    any help? pls . help me expert mates. i need an script for the webshop that user will paid as credits when do used the change class function. pls

  5. #5
    Valued Member FatalWorkz is offline
    MemberRank
    May 2011 Join Date
    PhilippinesLocation
    100Posts

    Re: Character Change Class Script

    pls i need help. . . some script for this w/c i can imply on webshop..... kindly read my previous message thanks.

  6. #6
    -( . ) ( . )- clerigz is offline
    MemberRank
    Mar 2012 Join Date
    1,365Posts

    Re: Character Change Class Script

    can we get the script sir?

  7. #7
    Enthusiast kod-the-one is offline
    MemberRank
    Apr 2009 Join Date
    RomaniaLocation
    25Posts

    Re: Character Change Class Script

    Quote Originally Posted by clerigz View Post
    can we get the script sir?
    What webshop you using?

  8. #8
    Member blackdovevn is offline
    MemberRank
    Jul 2011 Join Date
    66Posts

    Re: Character Change Class Script

    Use a unusable item like "30 Day Pass", then code a module :
    If find this item in 1 place of character's inventory, change char's class to DK
    2 -> DW
    ....
    7 -> RF

    Sell this item in VipMoney shop or ur webshop.

  9. #9
    Alpha Member 2009x2014 is offline
    MemberRank
    Dec 2009 Join Date
    2,765Posts

    Re: Character Change Class Script

    Quote Originally Posted by blackdovevn View Post
    Use a unusable item like "30 Day Pass", then code a module :
    If find this item in 1 place of character's inventory, change char's class to DK
    2 -> DW
    ....
    7 -> RF

    Sell this item in VipMoney shop or ur webshop.
    isn't easier do a module for credits ?

    do the change class part

    & do html for module.
    Last edited by 2009x2014; 24-07-13 at 03:48 AM.

  10. #10
    Member blackdovevn is offline
    MemberRank
    Jul 2011 Join Date
    66Posts

    Re: Character Change Class Script

    it's easy but take long time to do best module. I have developped this module for muweb, it's work fine. In change class page, 1st combo box for choose class, then execute a script to decrease credit and change class.

  11. #11
    Valued Member FatalWorkz is offline
    MemberRank
    May 2011 Join Date
    PhilippinesLocation
    100Posts

    Re: Character Change Class Script

    Quote Originally Posted by blackdovevn View Post
    it's easy but take long time to do best module. I have developped this module for muweb, it's work fine. In change class page, 1st combo box for choose class, then execute a script to decrease credit and change class.
    hi sir, can i apply in on a webshop? a module for webshop w/c is charged a credits?

    pls sir tell me the right coded script for this. thank you

  12. #12
    Member blackdovevn is offline
    MemberRank
    Jul 2011 Join Date
    66Posts

    happy Re: Character Change Class Script

    1. U can choose a item like 14 116 "Character Relocation Service" and change to "Character Class Service"
    2. Sell it on ur Webshop for credits
    3. Code a module base on mucore module like that :
    - Query SQL Server and check if which character's inventory exist this item->Show Button "Choose Character", if not ->Don't show button.
    - When click "Choose Character" button-> go to display a combobox or radio buttons to choose a class different than original character's class.
    - Choose one and show the button "Change Class".
    - When click to the button "Change Class" go to execute :
    + check the condition -> error message if not correct
    + check if character is using some items -> error ( this items can be disappear when Change Class done )
    + if all right -> Execute a sql script to sql server to update character's class to new class + remove item "Character Class Service" from this character's inventory.

    My english isn't good. But i'll code this module. If i'm not busy, i'll share it here.

  13. #13
    Member zyghybr is offline
    MemberRank
    Aug 2012 Join Date
    55Posts

    Re: Character Change Class Script

    WebShop module change class!
    Download: class.php download - 2shared

  14. #14
    Isn't Komari-chan cute? nemoma is offline
    MemberRank
    Feb 2011 Join Date
    226Posts

    Re: Character Change Class Script

    Quote Originally Posted by zyghybr View Post
    WebShop module change class!
    Download: class.php download - 2shared
    PHP Code:
    $query    mssql_query("select [Class] from [Character] where [Name]='".secure($_POST['character'])."' and [AccountID]='".$GLOBALS['mu_user']."'"); 
    Yeah newer version of MUCore/PHP would get HTTP 500 error right there.

    Rewrite that in ODBC maybe.

  15. #15
    Member profesor08 is offline
    MemberRank
    Jan 2009 Join Date
    69Posts

    Re: Character Change Class Script

    And when you use this script, you lose some equiped items on character.

    1. First check if account is offline.
    2. Next if offline, if he has some equiped items.
    3. If not have equiped items, check if has necesary amount of creidts.
    4. If he has necesary amount of credits execute a query, to extract credits and to set required character class.

    online = online_check()
    has_items = check_equiped_items()
    not_have_credits = check_credits(necesary_credits)
    if (online) {error}
    else if (has_items) {error}
    else if (not_have_credits) {error}
    else {query}

    This will work with any character class change, from BK to ELF of SM and etc.

    If you just need to upgrade character class from DK to BK or BM step 2 is not necesary.
    Last edited by profesor08; 13-06-13 at 03:58 PM.



Advertisement