Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Gender Ratio Mod for Mys v1.3.2
Well my old gender ratio script is not compatible with the new script, so I decide to make a new one. It really isnt complicated, just a few minor edits and its up and running.
I've provided a zip file that contains all necessary modifications to make in your script file in order to get this to work. Incase you have a highly customized site, you may install this Mod manually by following the instruction below. To begin with, insert a new column into table prefix.adoptables as usual: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#2
|
||||
|
||||
Hey, HoF, I installed this (all went well), but I was just wondering how I actually set the ratio..? I know I set it when creating a new adoptable, but what is the format..? I mean, how do I type in the ratio..? I'm wanting it to be 1 male for every 4 females...so, how do I put this in..?
Thanks!
__________________
My Mods Site (1.3.4, 2020 Mods) |
#3
|
||||
|
||||
To set the ratio, enter a number between 0 to 100. 0 means 100% male, 100 means 100% female, the default value is 50.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#4
|
||||
|
||||
Er, okay...so 75 would make it 25% male..? (Or rather, 75% female..?)
__________________
My Mods Site (1.3.4, 2020 Mods) |
#5
|
||||
|
||||
Correct, you get the idea.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#6
|
||||
|
||||
Okay...so I'd like to use both this mod and your Item Drop mod...however I noticed that both edit the adopt.php file, so do you know how I'd go about making it so I can use both on my site?
__________________
My Mods Site (1.3.4, 2020 Mods) |
#7
|
||||
|
||||
Well they do not really bar each other. You need to create one new column for gender ratio and two columns for itemdrop. In adopt.php, the sql insert line will become something like this(assuming you add gender ratio column first):
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mys v1.3.4 Gender Ratio Mod for Mys v1.3.4 | Hall of Famer | Mys v1.3.x Mods | 14 | 06-17-2020 08:20 PM |
Mys v1.3.3 Gender Ratio Mod for Mys v1.3.3 | Hall of Famer | Mys v1.3.x Mods | 17 | 05-23-2019 04:34 PM |
Mys v1.3.1 Gender Ratio Mod for v1.3.1 | Hall of Famer | Mys v1.3.x Mods | 15 | 08-17-2012 04:25 AM |
Hall of Famer's Gender Ratio Mod v1.2 | Hall of Famer | Mys v1.2.x Mods | 45 | 04-02-2012 01:42 PM |
gender ratio script | maximillion | Questions and Supports | 16 | 06-27-2011 12:59 PM |
What's New? |
What's Hot? |
What's Popular? |