i need Script Help me!!

Results 1 to 3 of 3
  1. #1
    Member diegoalefru is offline
    MemberRank
    Jun 2007 Join Date
    72Posts

    i need Script Help me!!

    I'm looking to get a script when the players come they already are with the items in status,help me...

    ;D

    :2gunsfiring_v1:SpArKs CO:2gunsfiring_v1:


  2. #2
    Sorcerer Supreme lizzio is offline
    Member +Rank
    May 2008 Join Date
    Belgium[BE]Location
    291Posts

    Re: i need Script Help me!!

    Huh :S you mean saving char's??

    or that all char already have items??

    try 2 explaine it beter please..

  3. #3
    C# Developer stealarcher is offline
    Grand MasterRank
    Jan 2008 Join Date
    571Posts

    Re: i need Script Help me!!

    lol a script so that they enter the game and already have items? well, not going to make one for you, but this is how you would do it.

    1. Actually go on game, get put the items that u want them to start with on a character, log out, and open up ur MySQL (or Postgres).
    2. Open up your "characters" table, and under your character name, should be a field called "equiptment"
    3. Copy ALL of those numbers (under your character)
    4. Make a register where you can create an account and a character.
    5. While making the register, there is a query that you have to make called mysql_query. what it does is retrieve the information from your mysql, and then it also inserts new information there. What you have to do is insert 'user', 'pass', '2' into AccountID, and then into characters you have to put 'user' etc. and then under the equiptment, you want it to insert the item code that you got earlier.



    *Edit- ALSO, you would have to make if statements for all of the mysql_query's. Such as
    if($character == "Archer") {
    $equipt = "000000~0000000~000000000~000000000~00000000~000000"
    }
    if($character == "Trojan") {
    $equipt = "00000~00000000000~000000000~00000000~0000000~000000000"
    }

    etc, etc, etc for all of the jobs.

    Then when making your query, you will use $equipt to insert the code into the equiptment column



Advertisement