Jump to content


Excuse me~I want to know about Avatar or Mall system


9 replies to this topic

#1 Bear.IQ200

    Young Padawan

  • Members
  • Pip
  • 15 posts

Posted 05 December 2006 - 01:34 PM

I had seen many site in China , Korea and Japan, they have the avatar zone and mall for buy clothing , accessories and background or pet for show in display on webboard.

I want to know how to make it, or you can explain a little bit details for me.

it was made from Java Script, that right ? and php, can make it?


Sorry, my english is not good. really sad :(

#2 Donna

    Retired P2L Queen!

  • P2L Staff
  • PipPipPipPip
  • 12,330 posts
  • Gender:Female
  • Location:B.C Canada

Posted 05 December 2006 - 01:56 PM

Hi Bear.IQ200,

post some examples so someone can see what your asking for please.

#3 Bear.IQ200

    Young Padawan

  • Members
  • Pip
  • 15 posts

Posted 05 December 2006 - 02:03 PM

OK! just here, let's see example.

I love it, so lovely.

Attached Files


Edited by Bear.IQ200, 05 December 2006 - 02:10 PM.


#4 Donna

    Retired P2L Queen!

  • P2L Staff
  • PipPipPipPip
  • 12,330 posts
  • Gender:Female
  • Location:B.C Canada

Posted 05 December 2006 - 02:07 PM

View PostBear.IQ200, on Dec 5 2006, 11:03 AM, said:

OH!! i'm so glad that admin came in my topic.

I will back here to post example.


I see it in your topic title sorry

http://www.roiworld.com/avatar/

No idea how they do that, someone here will probably have an idea.

#5 Bear.IQ200

    Young Padawan

  • Members
  • Pip
  • 15 posts

Posted 05 December 2006 - 02:20 PM

Yes, sir!!

I will wait for someone can help me ^^

#6 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 05 December 2006 - 05:55 PM

Shame the translator can't seem to decode it correctly, so I can't really understand any of it. :mellow:

From the code I am guessing the errors I keep getting have to do with registering or something.

What is it exactly on the site that you are trying to ask about? All I see is simple listing of items, with buttons allowing the user to buy the item for themself, for a friend, or to put on a wishlist, as well as some kind of flash avatar at the bottom that might be used for a preview if I was registered or something.

#7 Bear.IQ200

    Young Padawan

  • Members
  • Pip
  • 15 posts

Posted 06 December 2006 - 03:44 AM

i wanna ask about how to do mall system when you buy something it will keep in your inventory and you can wear it for show in avatar.

#8 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 06 December 2006 - 04:35 PM

Ah!

Well, you can begin with simple tutorials on using a money-based system, which can be simple PHP with a database (MySQL for example) and using a shopping-cart mechanic to work it all, with the usual membership script.
PHP Coding Membership Scripts Tutorials
PHP Coding Shopping Carts Tutorials

Then, what I would do (if I were any good at Flash) is have a Flash application that pulls the stats from the database on a given member. It can retrieve the user's items, money, status, and whatever other stats it may need, and dynamically throws the items together. The method of putting those items together would have to be up to you of course, and you could probably make another table in the database of all the possible items, and what stacking order (or z-index) that particular item should have. The script could then match those variables together, and draft the character avatar. :)
Since I'm no good with Flash, I would have to use base files, having each item as a seperate image in folders, then using a loop and layering the images together.
If you're interested in the Flash route, you could dynamically create a class with each object that the script can draw in Flash, if you didn't want to have image files everywhere; would be more tedious, but still a possibility if needed. Either way, these functions may be of some use.
PHP: Shockwave Flash Functions
PHP: Image Functions

Hope that helps to put some outline on the sort of things involved. B)

#9 influct

    Young Padawan

  • Members
  • Pip
  • 63 posts

Posted 07 December 2006 - 07:15 AM

thats a awsome idea:D

Use phpbb as your bulletin board, you can then add a cash modification which allows users to earn virtual cash for their posts.

Then you could install a shop modification which allows users to spend their virtual cash. Submit items they bought to a mysql db so they have an option of what their avatar can wear, then allow them to choose what the avatar can wear. Create some extra rows in the users table in phpbb like:
Shoes, socks, tshirt, jumper, trousers
Have these link to the image location of the items (don't forget to set defaults)
Then use GD to compile these images into one large image.

This would be very very tricky.
But really cool.

#10 Bear.IQ200

    Young Padawan

  • Members
  • Pip
  • 15 posts

Posted 07 December 2006 - 08:45 AM

Thank a lot , Demonslay and influct. you helped me clearly but it's so hard for me then I will try to do that.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users