Item mall V2

This is guide mostly for website tools and code, for example CMS or registration scripts.
There can also be tools.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Rate this script

0-2
8
28%
3-4
0
No votes
5-6
2
7%
7-8
3
10%
9-10
16
55%
 
Total votes : 29

Re: Item mall V2

Postby Razzrage on Wed Sep 03, 2014 7:20 pm

If you upload it, i would take a look on it for sure!
Working On Sea of Souls Online, http://portal.restylegamerz.net with dagnarus!
Razzrage
Jelly Bean
Jelly Bean
 
Posts: 17
Joined: Mon Aug 11, 2014 5:12 pm

Re: Item mall V2

Postby Tartie on Fri Jan 15, 2016 11:42 am

Rifke wrote:Item mall version 2
Response to: viewtopic.php?f=28&t=137
I’ve written this new version of the item mall because the previous one was just bad… To heavy and crappy coded. This one is better. I’ve removed pretty much of the HTML code, all tables are handled within a self-written table class. So that cleared up a lot or old code, it just needs to be tested. If anyone is willing to sacrifice their free time feel free.
Code should be easy readable.

Quick how-to:
table: mall_category
Make a list of all your categories etc
  • cid : Category ID – auto increment
  • ctitle: Category title
  • cdesc: Description of category
  • cparent: -1 to show on the main page, an different number referring to the cid from an other category, so you’ll get a sub category.
  • cminlevel: To get like VIP – Only items. Or GM only items for GMs that can’t make items or something. Or to create different levels like 101, 104 etc…
  • chidden: 0 to show, 1 to hide the category (like if you’re adding stuff so it won’t show up for other users. But you can also set the cminlevel to 300+ or so depending on what you like)
table: mall_items
Put the available items in here. Tables speak for them self. Field image is not used.. Could be added when necessary.
The other things speak for them self eg
  • item_id: 337
  • item_type: 11
  • item_name: Topaz [7]
  • item_desc: +35int
table: mall_forsale
This holds all the items you’re about to sell.
  • cid: Category id -> from mall_category
  • iid: item id -> from mall_items
  • price: INTEGER format, could also be negative to increase someone’s money?! Be warned! Lol
  • payment: Z for zully, D: for donationpoints
  • quantity: amount of that items, eg: 999 and for bullets would give you 999 bullets off course.
  • ref_able: is the item refineable if yes add a number between 1-9 for the grade to give
  • soc_able: does the item contain a socket?



To make it load in as a module
It has to be included in an other page (or to make it standalone it requires a random parameters to make the url checking posible eg: itemmall_v2.php?p=itemmall_or_what_ever

In the itemmall_v2 You'll find:
// Configuring some data
$item_mall->setlog(true); // enable/disable to create an information stream of who bought what
$item_mall->setaccount_id(1); // set the users account ID
$item_mall->setalevel(100); // set the users access level

You'll have to retrieve the account id, and the access level to get the stuff to work fine.




Download: DOWNLOAD NOW!
Password: myrose


Dynasty CMS plugin
Add this file to your administrator's dir, and than you can add a new link to in your administrator's panel.
  1. <a href="?op=add_dpts">Add Donation Points</a>

:ugeek: Warning: Don't forget to change the SQL queries if you use an the other donation field.

add_dpts.zip


Raf sir it has a password when I click the DOWNLOAD NOW! can I try this one sir?? if its okey to have this file?? :? :oops:
Image
User avatar
Tartie
Pomic
Pomic
 
Posts: 72
Joined: Sat Nov 12, 2011 11:15 am
Location: Philippines

Re: Item mall V2

Postby PurpleYouko on Fri Jan 15, 2016 4:17 pm

Good luck getting a response from Rafke.
Nobody has seen him for about 5 years. Sorry.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Item mall V2

Postby Vetyst on Fri Jan 15, 2016 5:02 pm

Tartie wrote:Raf sir it has a password when I click the DOWNLOAD NOW! can I try this one sir?? if its okey to have this file?? :? :oops:


You can use it, it was published on osRose and thus free to use. If you are feeling uncomfortable downloading it using a password feel free to use my link: http://files.vetyst.com/ROSE%20Online/itemmall_v2_by_rifke.zip
User avatar
Vetyst
osRose dev
osRose dev
 
Posts: 146
Joined: Sat Jun 18, 2011 10:56 am
Location: The Netherlands

Re: Item mall V2

Postby Tartie on Tue Jan 19, 2016 11:24 am

PurpleYouko wrote:Good luck getting a response from Rafke.
Nobody has seen him for about 5 years. Sorry.


:shock: Waaaaa!!! well okey...thanks PY...
Image
User avatar
Tartie
Pomic
Pomic
 
Posts: 72
Joined: Sat Nov 12, 2011 11:15 am
Location: Philippines

Re: Item mall V2

Postby Tartie on Tue Jan 19, 2016 11:25 am

Vetyst wrote:
Tartie wrote:Raf sir it has a password when I click the DOWNLOAD NOW! can I try this one sir?? if its okey to have this file?? :? :oops:


You can use it, it was published on osRose and thus free to use. If you are feeling uncomfortable downloading it using a password feel free to use my link:
http://files.vetyst.com/ROSE%20Online/itemmall_v2_by_rifke.zip


Gee~ thank sir Vetyst...thank you for the help....
Image
User avatar
Tartie
Pomic
Pomic
 
Posts: 72
Joined: Sat Nov 12, 2011 11:15 am
Location: Philippines

Previous

Return to PHP / Web Guides, Scripts and tools.

Who is online

Users browsing this forum: No registered users and 4 guests