Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-09-2012, 06:51 AM   PM User | #1
KeyTrix
New to the CF scene

 
Join Date: Nov 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
KeyTrix is an unknown quantity at this point
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 05:35 PM..
KeyTrix is offline   Reply With Quote
Old 11-09-2012, 08:06 PM   PM User | #2
Redcoder
Regular Coder

 
Redcoder's Avatar
 
Join Date: May 2012
Location: /dev/couch
Posts: 309
Thanks: 2
Thanked 46 Times in 45 Posts
Redcoder has a little shameless behaviour in the past
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.
__________________
For professional Hosting and Web design.....


NetEssentials.co.uk
Redcoder is offline   Reply With Quote
Old 11-10-2012, 12:05 AM   PM User | #3
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
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.
Custard7A is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:55 AM.


Advertisement
Log in to turn off these ads.