Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation php Execute or whatever..

    Hello, there is a multiplayer game that i play called Zwinky.
    Now, obviously it has a stores to buy items and stuff and it's expensive.

    i know how to make it free, but there is one and only problem.

    i'm not that experienced with php, there is an XML files that should be edited:

    (A)9.xml which is the main store file that has all the items in it and that's where the Prices should be changed.

    (B)Purchase.xml which is everything in your wardrobe that you Bought.

    (C)I've downloaded their items which is (SWF Files) so it's like i have their stores locally in my host.

    Now what i'm planning to do is editing the 9.xml and setting all the items to free, then uploading the 9.xml file to my own website but there is only one thing left that some peoples told me it can be done with php.

    I need a php script or something that for example if i click "Add" a specific item to my Purchase.xml it automatically makes the changes in the game's real website and not locally.

    i'm not really experienced with php but i had a developer who made my loginform connect with their database so that peoples can't login randomly to my site. it has to be their real game accounts.

    this is What he used:
    $h = array(
    'method' => 'POST',
    'header' => 'Content-type: application/x-www-form-urlencoded'
    );

    $fields_string = "";

    foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
    rtrim($fields_string, '&');

    $a = cURL("http://registration.zwinky.com/registration/loginAjax.jhtml",true, null, $fields_string, $h);
    $line = getLastLines($a, 1);
    if(strstr($a, "user_info"))
    {
    return true;
    }
    else
    {
    return false;
    }

    Now i want to use the same method like connecting my website with the games wardrobes so that if i made any changes to my own wardrobe i can see it in the game, i been looking for this everywhere and i hope to find it here

    There was some guy who made a website for this game, where you Login and you can purchase everything in the game for free through his website, that's why i believe it's Possible.
    -thanks.
    Last edited by Spookster; 11-09-2012 at 06:35 PM.

  • #2
    Regular Coder Redcoder's Avatar
    Join Date
    May 2012
    Location
    /dev/null
    Posts
    334
    Thanks
    2
    Thanked 48 Times in 47 Posts
    Quote Originally Posted by KeyTrix View Post
    Hello, there is a multiplayer game that i play called Zwinky.

    I need a php script or something that for example if i click "Add" a specific item to my Purchase.xml it automatically makes the changes in the game's real website and not locally.

    ........
    There was some guy who made a website for this game, where you Login and you can purchase everything in the game for free through his website, that's why i believe it's Possible.
    -thanks.
    Try the Web Projects forum.

    But if you want to o the XML handling yourself, read up on it starting with the XML parser functions.

  • #3
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    So, you're asking how to compromise of a server you don't own, so that you can get free stuff in a childs' game? That slaps me on the knee.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •