Newbie Spellweaver
- Joined
- Jul 22, 2005
- Messages
- 39
- Reaction score
- 0
To be honest, the webshop right now only has 1 item for sale. :/
Just yesterday I recieved quite some work from my study and sadly I barely have time left for myself.. Now I have to be honest that I rather spend time with my girlfriend then be coding all day, you all agree, right?
Anyways, I have done the hardest part though, so all someone else who would like to continue my PangYa Webshop project has to do is make the rest of the pages and insert the item's TypeID's.
Webshop V0.1 was; 3 files for each item.
File1 = check.asp //Checks if the user has enough money, if user does - redirect to purchase.asp, if not redirect to error.asp. -> Error.asp = Text. "You do not have enough money."
File2 = purchase.asp //Adds item to the user.
File3 = reduce.asp //reduces the money off of the user's ID.
But thank god I have now fixed every mess up and have made all 3 files into 1 file. I managed to let 1 file to check the money amount, add the item to the account if user has the amount of money - if not redirecting to error page and reducing the money off of the user ID's account. Or rather said Webshop V1.0 lol..
In my Attachment I bring you all WebshopV1.0. Open <DIRECTORY>\pangya-shop PARTIAL\shop\hana\TOPS\indiantop.asp in dreamweaver or notepad and check the file out. Take your time to observe and see what I have done. Since I already was very busy I have just taken the files that came with the Webmanager of PangYa and have made the webshop out of it. It DOES work, heck it works PERFECTLY, but all there has to be added are the other character's files. Simply you can make them.
The rar file I attached also has the itemtypelist, so all items of the characters, their typeID's AND the prices. (By the way, with the prices.. P = Pang -C = Cookies) So lets say you simply copy the indiantop.asp and rename it to another item name and then open it and change the values inside.
I have to say though that reducing Pang and Cookies happens trough other tables, thats why I have added redcarrotonepiece.asp as well;
indiantop.asp = Reduce Pang
redcarrotonepiece.asp = Reduce Cookies
So when you have an item that costs pang or cookies, then you know what file to copy and rename.
One warning though with the files, when editting the;
<%if x_cookie > 37 then%>
or
<%if x_pang > 23999 then%>
watch out since if the item costs 24000 pang or 38 cookies you HAVE to reduce 1pang/cookie from its price. Cause as you can see it says "if_cookie > 37", that means; IF COOKIE IS GREATER THEN 37. If the item would cost 38 cookies, and you would change 37 to 38 the item would be priced as 39 since GREATER THEN 38 is 39 lol..
Once you check out the files it's pretty easy to continue my project, I kept it as user-friendly as possible.. Maybe this could be stickied so everyone can create their own webshop or something, the choice I leave here.
I did my best, I really am sad that I don't have time to finish it anymore, but as everyone knows and would agree (hopefully..) that real life, school and family goes first.
Oh and as a desert I have added files that add characters to your account, so people who want to play as KOOH, download it, change the ID in the file(s) (which is 31) to your userID - or implement your own "IDRequest" script in it and KOOH or any other desired character will be added. It even can add the character MAX, only for supported clients though..
Edit: place the files inside the folder "pangya-shop" into your PangYa WebManager directory and overwrite member.asp. and the images..
Again I deeply appoligise for leaving the project like this, but I hope to see it finished soon/someday. Or if I find the time soon I will finish it..
For more information feel free to PM or E-mail (atlanta.star@hotmail.com) me about it.
Thank you all for the support and hopefully you all can forgive me.. :bye2:
But hey, at least I did the hardest part and figured out the hardest parts.. ;p
Greets,
Peace out.
~Destinykity
Just yesterday I recieved quite some work from my study and sadly I barely have time left for myself.. Now I have to be honest that I rather spend time with my girlfriend then be coding all day, you all agree, right?
Anyways, I have done the hardest part though, so all someone else who would like to continue my PangYa Webshop project has to do is make the rest of the pages and insert the item's TypeID's.
Webshop V0.1 was; 3 files for each item.
File1 = check.asp //Checks if the user has enough money, if user does - redirect to purchase.asp, if not redirect to error.asp. -> Error.asp = Text. "You do not have enough money."
File2 = purchase.asp //Adds item to the user.
File3 = reduce.asp //reduces the money off of the user's ID.
But thank god I have now fixed every mess up and have made all 3 files into 1 file. I managed to let 1 file to check the money amount, add the item to the account if user has the amount of money - if not redirecting to error page and reducing the money off of the user ID's account. Or rather said Webshop V1.0 lol..
In my Attachment I bring you all WebshopV1.0. Open <DIRECTORY>\pangya-shop PARTIAL\shop\hana\TOPS\indiantop.asp in dreamweaver or notepad and check the file out. Take your time to observe and see what I have done. Since I already was very busy I have just taken the files that came with the Webmanager of PangYa and have made the webshop out of it. It DOES work, heck it works PERFECTLY, but all there has to be added are the other character's files. Simply you can make them.
The rar file I attached also has the itemtypelist, so all items of the characters, their typeID's AND the prices. (By the way, with the prices.. P = Pang -C = Cookies) So lets say you simply copy the indiantop.asp and rename it to another item name and then open it and change the values inside.
I have to say though that reducing Pang and Cookies happens trough other tables, thats why I have added redcarrotonepiece.asp as well;
indiantop.asp = Reduce Pang
redcarrotonepiece.asp = Reduce Cookies
So when you have an item that costs pang or cookies, then you know what file to copy and rename.
One warning though with the files, when editting the;
<%if x_cookie > 37 then%>
or
<%if x_pang > 23999 then%>
watch out since if the item costs 24000 pang or 38 cookies you HAVE to reduce 1pang/cookie from its price. Cause as you can see it says "if_cookie > 37", that means; IF COOKIE IS GREATER THEN 37. If the item would cost 38 cookies, and you would change 37 to 38 the item would be priced as 39 since GREATER THEN 38 is 39 lol..
Once you check out the files it's pretty easy to continue my project, I kept it as user-friendly as possible.. Maybe this could be stickied so everyone can create their own webshop or something, the choice I leave here.
I did my best, I really am sad that I don't have time to finish it anymore, but as everyone knows and would agree (hopefully..) that real life, school and family goes first.
Oh and as a desert I have added files that add characters to your account, so people who want to play as KOOH, download it, change the ID in the file(s) (which is 31) to your userID - or implement your own "IDRequest" script in it and KOOH or any other desired character will be added. It even can add the character MAX, only for supported clients though..
Edit: place the files inside the folder "pangya-shop" into your PangYa WebManager directory and overwrite member.asp. and the images..
Again I deeply appoligise for leaving the project like this, but I hope to see it finished soon/someday. Or if I find the time soon I will finish it..
For more information feel free to PM or E-mail (atlanta.star@hotmail.com) me about it.
Thank you all for the support and hopefully you all can forgive me.. :bye2:
But hey, at least I did the hardest part and figured out the hardest parts.. ;p
Greets,
Peace out.
~Destinykity
Attachments
You must be registered for see attachments list
Last edited: