Jump to content

Recommended Posts

Hello, I need help creating a free php + curl shopping cart for a virtual world browser-game that I play to buy a free stuff from it.

the game is based on xml,swf and some peoples have already made a shopping cart for it.

 

Idea:

 

there is a multiplayer game that i Play called Zwinky and i as i said it's similar to Habbo hotel, Club pengiun. Now, obviously it has a stores to buy items and stuff and it's expensive.[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]i know how to make it free, but there is one and only problem.[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]i'm not that experienced with php, there is an XML files that should be edited:[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]9.xml which is the main store file that has all the items in it and that's where the Prices should be changed.[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]Purchase.xml which is everything in your wardrobe that you Bought and every new item you purchase goes immediately there.[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]I've downloaded their items which is (SWF Files) so it's like i have their stores locally in my host.[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]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.[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]something like Mysite/assets3/fds/Whatever.swf from my own database to their server but let's call it a zwinky php shopping cart "a free one"[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]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.[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]Im not really experienced with php and simplexml but i believe it requires some "cURL"[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]Now i want to use the same method like connecting my website with the games wardrobes so that i can make any changes to my in-game wardrobe through my website, there was a guy who made a site where you login and purchase everything in the game for free through his site, that's why I believe it's possible.[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]The game's store link is: zwinky.co...lothing/923.xml[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]i'm gonna edit the 923.xml so i can change the prices and make them 0 so from My website it's gonna be Mysite.com/zwinky-world/catalog/clothing/923.xml Because you definately can't make the local changes take effect on the game ( not without having a server-side access) and that's so far.[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]zwinky.co...heckout.jhtml < this is the link you get Once you purchase an item.[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]and it goes to outfits.zwink...y/purchased.xml < after the Checkout..purchased.xml shows Everything you have purchased in your wardrobe.[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]Extra links that might be useful for you guys to get my point hxxp://wxw.zwinky.com/zwinky-world/Checkout.jhtml?items=[[{id:20017510,species:babe,z:0,name:Whatever,url="assets.zwinky.com/assets3/fds/templates/stud/misc/5.swf"}]]&storeId=[0]&pType=[0]
^this one works but only from one store that I dont really need that much which is "assets3/fds/"[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]So basically I wanna use my own php shopping cart for a game that I don't own in order to get the items for free, and if you think it's Impossible I would like to tell you it is impossible because 2 peoples have made 2 successful sites like this[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]one of them[/size][/font][/color]


[color=#3BAE33][font=Verdana, Arial, sans-serif][size=1]Hope you guys can suggest or provide me with any tips or methods to get this complete, thanks

Pasted from another forum where I posted my problem I been trying to do this for a yeaarss but it never worked, some peoples said It can be done by decompiling the SWF item itself and changing the price of it to 0

 

also, I have tried all my best in soo many ways to purchase a zwinky item from my own website like this:

 

 

 

 

 

 

[[{id:20017510,species:stud,z:0,name:JustForTest,url=
"}]]&storeId=[0]&pType=[0]

Real url is: assets.zwinky.com/assets3/store/zwinky/stud/tops/01/Ptop16.swf

 

I could purchase it for free using this method but in wardrobe when I save the top it says "Error validating clothes"

 

so Is there any way that i can at least make it skip this error instead of changing the price?

 

 

 

Sorry for making it too long I just wanna make it as clear as possible because i'm really sick of looking for a solution in almost every forums and I never found a solution

 

hope I find it here, thanks.

Link to comment
https://forums.phpfreaks.com/topic/273700-help-phpsimplexml-curl/
Share on other sites

Who said I didn't made any effort? I did when i spent 4 days trying all the possible ways in the world to get it done, although i'm not even experienced with php but I still tried been up for a whole 4 days googling and collecting snippets to get it complete

I made effort when I posted this thread in like countless forums I didn't even asked for someone to make it for me, nor did I asked for a guide.

all I was asking for everywhere is a tip or a hint to go on

otherwise, please show me any rule in this forums that says you have to put effort in order to get help.

 

Thank you, at least for paying attention to this thread ;)

Edited by Rahorku

I was responding to you saying: "c'mon you didn't really expect me to type all this did u?"

 

You want help but your post isn't readable. Make the effort.

 

By the way, our rules DO state you must make an effort. But with our stupid new forum I have no idea what happened to our rules and TOS. 

I don't really mind making effort, I tried to edit the thread and clear it but the "edit" button is gone, also

 

Are you the only one who responds here? Because i noticed that you're the last poster in almost every section it's either you're highly active, or umm you're the only one who lives here o.o no offence :D

There are several people here --- your topic has been "viewed" 40 times. But it is next to impossible to read what your post says, and you have not posted anything to clarify that garbled text in the first post. So we all move on to other posts. Jessica at least tried to let you know that you need to provide a readable post if you expect any answers.

 

I tried to edit the thread and clear it but the "edit" button is gone

You could post a reply with the complete readable text of your problem.

 

:soapbox:

Am I the only person who has the "Preview Post" button on this site? I am constantly shocked and appalled by the horrific posts that would have been obvious garbage if the user had only used the "Preview Post" button to see what it would look like, and check for spelling / grammar errors

:soapbox:

I'm trying to make a free shopping cart for a virtual world browser-based game.

#Zwinky

 

I have been trying all the possible methods lately and none of them worked, before I clarify any further details I want everyone to think twice before and read my thread carefully Before just saying "It's impossible" and stuff.

 

I know 2 peoples who made a successful zwinky shopping cart, somehow it lets them purchase every item in zwinky stores for free through their sites, i'm not sure how they did it but all I know is they obviously used php + cURL

as I said before i'm not really experienced with php but I know a little bit about it.

 

somehow these 2 peoples could connect their sites with zwinky's database and made a shopping cart where they can purchase every item for free and have it in their real zwinky wardrobe immediately.

 

All i'm asking for is a hint or a method, or at least a suggestion to start with.

 

Now for those who wants to have an idea of how things looks like

 

Zwinky is based on SWF/Flash,jhtml,xml (client-sided) I been asking a lot of developers about this, most of them said I need a php form to modify my xml data (php,simplexml)

 

and other peoples said I need to decompile the SWF item itself and change the price in there (I personally think that's possible more than php,simplexml)

 

i'm gonna show you guys a few examples of how zwinky purchasing looks like so you can try and help me with.

 

*Logging in to Zwinky,Using Fiddler*

 

there is 3 types of zwinky items:

1. (Zcarded) items

which is a premium items that you need to buy a zwinky points "Zcards" with real money.

2. (Zbucks) items

which is a free points that you earn per visit you can buy the zbucks items with it, not the premium ones.

 

Assuming that I wanna buy a zcarded item for free from the "Cloud Nine" store.

 

Screenshot:

Untitled-12.png

 

Code:

 

<store id="17" name="Cloud Nine" p="1">

 

 

<species name="stud">

 

 

<FacialDecorations baseurl="stud/facialdecorations/01/" name="Facial Decorations" sc="1" z="42500">

<x c="0xb96259" c2="0xb96259" category="FacialDecorations" id="20094065" n="Tortured Soul Mask white_foxy_1357" pb="50" sc="1" species="stud" u="Vmsk8" z="36500"/>

<x c="0x1498c1" c2="0x1a1a1a" category="FacialDecorations" id="20094069" n="Toxic Love Mask ladytwist" pb="125" sc="1" species="stud" u="Vmsk7" z="36500"/>

<x c="0xc00718" category="FacialDecorations" id="20093788" n="Smoochie x-y4zzii33" pb="30" sc="1" species="stud" u="Vmsk3" z="36500"/>

<x c="0x00ccff" category="FacialDecorations" id="20093794" n="Foxy Gent Face white_foxy_1357" pb="50" sc="1" species="stud" u="Vmsk4" z="36500"/>

<x c="0x000000" category="FacialDecorations" id="20093802" n="Lil Luv Beast Face xxskullkidxx" pb="50" sc="1" species="stud" u="Vmsk5" z="36500"/>

<x c="0x9a0000" category="FacialDecorations" id="20093904" n="Torn Love Heart xxx_satan_xxx" p="100" sc="1" species="stud" u="Vmsk6" z="36500"/>

<x c="0xce0000" c2="0x990000" category="FacialDecorations" id="20074440" n="Crazy Luv Mask abnormal_07" pb="40" sc="1" species="stud" u="Vmsk1" z="36500"/>

<x c="0x33683a" c2="0x33683a" category="FacialDecorations" id="20074505" n="Frog Prince Mask mistressofmer" pb="65" sc="1" species="stud" u="Vmsk2" z="36500"/>

</FacialDecorations>

 

 

<Hairs baseurl="stud/hair/01/" name="Hair" sc="1" z="37000">

<x c="0x844d4e" category="Hairs" id="20094066" n="Tortured Soul Hair white_foxy_1357" pb="200" sc="1" species="stud" u="Vhr9"/>

<x c="0x1a1a1a" category="Hairs" id="20093962" n="Cupid Hunter Hair xx_louiee_xx" pb="200" sc="1" species="stud" u="Vhr8"/>

<x c="0x1e1e2a" c2="0xf38787" category="Hairs" id="20093793" n="Foxy Gent Hair white_foxy_1357" pb="200" sc="1" species="stud" u="Vhr4"/>

<x c="0x141414" c2="0x417c98" category="Hairs" id="20093797" n="Lil Luv Beast Hair xxskullkidxx" pb="165" sc="1" species="stud" u="Vhr5"/>

<x c="0x432200" category="Hairs" id="20093897" n="Hunky Cupid Hair xx_louiee_xx" pb="200" sc="1" species="stud" u="Vhr6"/>

<x c="0x1a1a1a" c2="0x9a0000" category="Hairs" id="20093902" n="Torn Love Hair xxx_satan_xxx" pb="225" sc="1" species="stud" u="Vhr7"/>

<x c="0x1a1a1a" category="Hairs" id="20074576" n="Mat Adore Hair ethereal_eyes" pb="165" sc="1" species="stud" u="Vhr3"/>

<x c="0x0099cc" c2="0x0099cc" category="Hairs" id="20074190" n="MoHawt" pb="350" sc="1" species="stud" u="Vhr1"/>

<x c="0x4b132b" category="Hairs" id="20074189" n="Hunk Hair" pb="400" sc="1" species="stud" u="Vhr2"/>

</Hairs>

 

 

<Costumes baseurl="stud/costumes/01/" name="Costumes" sc="1" z="31000">

<x c="0xb96259" c2="0x999999" category="Costumes" id="20094067" n="Tortured Soul Suit white_foxy_1357" pb="200" sc="1" species="stud" u="Vct20"/>

<x c="0xd60000" c2="0xcccccc" category="Costumes" id="20093961" n="Futuristic Cupid Costume brucie_adams" pb="250" sc="1" species="stud" u="Vct18"/>

<x c="0xd6001a" c2="0xf2f2f2" category="Costumes" id="20093965" n="Cupid Hunter Suit xx_louiee_xx" pb="250" sc="1" species="stud" u="Vct19" z="41500"/>

<x c="0x7f1800" c2="0x000000" category="Costumes" id="20074577" n="Mat Adore Suit ethereal_eyes" pb="150" sc="1" species="stud" u="Vct17"/>

<x c="0xfd0100" c2="0x333333" category="Costumes" id="20074425" n="Halfies Heart molly_polly" pb="125" sc="1" species="stud" u="Vct14" z="41500"/>

<x c="0xffffff" c2="0x990000" category="Costumes" id="20074439" n="King of Hearts perseph0ne" pb="65" sc="1" species="stud" u="Vct15" z="41500"/>

<x c="0x33683a" c2="0xd0295d" category="Costumes" id="20074497" n="Frog Prince mistressofmer" pb="125" sc="1" species="stud" u="Vct16"/>

<x c="0xcc0000" c2="0xffa0cf" category="Costumes" id="20035496" n="Kissing Booth" p="125" sc="1" species="stud" u="Vct13" z="41500"/>

<x c="0xffffff" c2="0xcccc33" category="Costumes" id="20012198" n="Cupid" p="100" sc="1" species="stud" u="Vct12" z="41500"/>

<x c="0x1e1e1e" c2="0x980101" category="Costumes" id="20012199" n="Evil Cupid" pb="60" sc="1" species="stud" u="Vct11" z="41500"/>

<x c="0xffffcc" c2="0xff0000" category="Costumes" id="20012200" n="Cute Bear" p="165" sc="1" species="stud" u="Vct10" z="41500"/>

<x c="0x333333" c2="0xcc0000" category="Costumes" id="20012201" n="Evil Bear" pb="100" sc="1" species="stud" u="Vct9" z="41500"/>

<x c="0xfcf094" c2="0xba0139" category="Costumes" id="20012202" n="Love U" p="80" sc="1" species="stud" u="Vct4"/>

<x c="0xffd5ff" c2="0xba0139" category="Costumes" id="20012203" n="Be Mine" p="80" sc="1" species="stud" u="Vct3"/>

<x c="0xccf5ff" c2="0xba0139" category="Costumes" id="20012204" n="You Rock" p="80" sc="1" species="stud" u="Vct2"/>

<x c="0xe1c4ff" c2="0xba0139" category="Costumes" id="20012205" n="I love you" p="80" sc="1" species="stud" u="Vct1"/>

<x c="0xff0000" c2="0xffffff" category="Costumes" id="20012206" n="You Suck" pb="60" sc="1" species="stud" u="Vct8"/>

<x c="0x687b97" c2="0xf2f1d9" category="Costumes" id="20012207" n="U R A Loser" pb="60" sc="1" species="stud" u="Vct7"/>

<x c="0x999999" c2="0xcc0000" category="Costumes" id="20012208" n="Go Away" pb="60" sc="1" species="stud" u="Vct6"/>

 

 

<x c="0x6c428a" c2="0xcccccc" category="Costumes" id="20012209" n="Bite Me" pb="60" sc="1" species="stud" u="Vct5"/>

 

 

 

As you all can see, p="25" for example is the free zbucks item.

pb="25" is the zcarded premium item.

 

u="Vct6" is the SWF file name.

 

I could purchase a free items by using address bar, adding some tricks to the Checkout link.

 

Screenshot:

Untitled-13.png

 

But this can only be used through the FDS Store only, "/assets3/fds/templates/stud/misc/5.swf"

 

Wish I knew why only this store works when I try to purchase items for free but unfortunately, I don't.

 

When I try to change the url=" " to a zcarded item instead of the FDS ones it either gives me an error in the checkout link "Error code 500" or It does checkout but in the wardrobe when I try to put the item on it says "Error validating Clothing for Rahorku"

 

Me and my friend tried to work out something using php,cURL which was this:

 

<?php[/size][/color]


[color=#000000][size=4]$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.zwinky.com/zwinky-world/Checkout.jhtml");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_USERAGENT, "MozillaXYZ/1.0");[/size][/color]


[color=#000000][size=4]$data = array(
'storeId' => '%5B26%5D',
'items' => '%5B%5B%7Bid%3A20036352%2Cspecies%3Ababe%2Cc%3A%220xffffff%22%7D%5D%5D',
'pType' => '%5B0%5D'
);
$cookies = array(
'anx' => 'u=D97FEEF6-DD3C-4382-80C3-E5DA38801AB1&fv=1352564145816&lv=1352564960737&nv=138&t=-&v=-&p=-&si=-&sn=dfprdzwinky13&od=zwinky.com&op=main.jhtml&ok=-&om=referral&ob=-&oc=-&os=-&w=1366&h=768&cd=32&f=11.5%20r31&g=%7B%22splitTest%22%3A%7B%22scc_count%22%3A%22a%22%7D%7D&xrp=ZJyyyyyyYYil&xi=CRXEXE&xtp=vhigh&xp=vicinio&xrt=YY&xrco=ZJ&xrca=yyyyyy&xrcc=il&xcid=31726a57761a4d0eb95daac19ea9cae3&xuer=2'
);[/size][/color]


[color=#000000][size=4]curl_setopt ($ch, CURLOPT_COOKIE,
"dcDirtyCookie=xsohax%3D1%3Bx_fallenangel_x%3D1; chromeToolbarInstalled=true; sessionData=UMG+iu/5X/dpyuywHP9YC+rmVuP3SDQebu8f//K47CJT+NbuPFMciQ+ZPzj+6uaKeHgoRsV+2Mu9cb9G+9E2nH7BjFRiTyBCn4vJMEKipPfSq34WYqlk7dwvEhNUR9moxuQWljAedxSdh+SiFsGi4BGjzo/T+NWwsOXTlYt7b+gZtvQs7O1ztS9tljQP93Qn; user_num=aI39%2F6NXy5HwjWGPw1VD6Q%3D%3D; user_nme=TS%2B9p5I9xE01mZmx8d%2B3RQ%3D%3D; gender=rbb7%2BhYSyhflaoAEJ%2FPjqQ%3D%3D; has_creator_assets=1; buckets=%7B%22zwinky%22%3A%7B%22scc_count%22%3A%22a%22%7D%7D; partner=ZJxdm128; user_info="1q5qd3vuGAtN2F4ngUXfFD6gGRikx5oc5g+jIOqMS4JM2QDkt4COPepCTbG6DRHxAnIxegBJD0OvZVL6yMug75XB0xLPKGaX6R4RtzAZ/SJMXPvN+Gmi6ONjuqvvgm0w"; qinfo="J9ogXUFPvXPSgj+VSSEVOA=="; mindsparktb_207521081=true; mindsparktbsupport_207521081=true; anx="u=21C1F3BA-B412-4456-9E77-4610607C7042&fv=1355215393751&lv=1355319595588&nv=2618&t=-&v=-&p=-&si=-&sn=dfprdzwinky13&od=zwinky.com&op=index.jsp&ok=-&om=referral&ob=-&oc=-&os=-&w=1920&h=1080&cd=32&f=11.5%20r31&g=%7B%22splitTest%22%3A%7B%22scc_count%22%3A%22a%22%7D%7D&xrp=%5EZJ%5Eyyyyyy%5EYY%5Eil&xh=1186&xi=CRXEXE&xtp=vhigh&xp=vicinio&xrt=YY&xrco=ZJ&xrca=yyyyyy&xrcc=il&xcid=dc80d05e0beb4ab4a743432586943081&xuer=3"; anxs="s=1135805835&sv=1355319200274&sd=none&sp=-&sk=-&sm=-&sb=-&sc=-&ss=-"
[/size][/color]


[color=#000000][size=4]curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$output = curl_exec($ch);
curl_close($ch);
$xml = simplexml_load_string($output);
print_r($xml,1);
echo("done\n");
echo($output);
?>

 

 

But for some reason, it doesn't work.

 

Do you guys think the zcarded SWF file itself is protected, or is there any other method I can use to change the prices of the items without getting errors?

 

I was also thinking about downloading the 17.xml which is the store, editing the pb prices all to 0 and uploading the swf items to my own website and check it out in zwinky

 

like this:

 

<x c="0xcc0000" c2="0xffffff" category="Shirts" id="20035499" n="Kiss Shirt" pb="45" species="stud" u="Vtop6" z="21000"/>

to

<x c="0xcc0000" c2="0xffffff" category="Shirts" id="20035499" n="Kiss Shirt"pb="0" species="stud" u="Vtop6" z="21000"/>

 

then using the purchase link:

 

zwinky.co...ut.jhtml?items=[[{id:20017510,species:stud,z:0,name:MyTest Wings,url="zwinky.com/assets3/store/zwinky/stud/tops/01/Vtop6.swf"}]]&storeId=[0]&pType=[0]

to

]zwinky.co...ut.jhtml?items=[[{id:20017510,species:stud,z:0,name:MyTest Wings,url="MyWebsite.com/assets3/store/zwinky/stud/tops/01/Vtop6.swf"}]]&storeId=[0]&pType=[0]

 

but then I thought how will I make the Checkout link use my edited 17.xml instead of zwinky's one so it loads the item as 0 price

by the way see that {id:20017510 in the Checkout link, that's an id of a free item from my wardrobe, it's like Replacing a zcarded SWF with a free item ID so I can have it for free.

 

 

Sorry for making it too long, I was just trying to make it as clear as possible, hope you guys can help me find a successful method to work on, Thanks.

Edited by Rahorku

If you want to interact with an existing website, your first step is talking to them and getting info about their API.

 

But it sounds like what you're trying to do is circumvent their shopping cart and let people buy "things" for "free". Sounds like it would be *way* against their TOS. We don't approve of that sort of thing. 

Watch it kid, I was never a "lazy coder" open your eyes while reading, I have said before i'm not looking for a whole guide or someone to do it for me, all i'm asking for is a hint or a tip to base my work on. Oh, by the way Jessica's replies aren't brilliant she just doesn't know the solution for my problem, that's why she said "we" do not approve this sort of "thing" lol she likes to play clever but unfortunately, it does not fit on her real personality that's why. and i'm sorry if you think i'm being offensive which i'm not but im just stating facts.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.