Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Suggestions and Feature Requests (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=21)
-   -   Experience points (http://www.mysidiaadoptables.com/forum/showthread.php?t=1063)

SleepWalker 08-20-2009 08:22 AM

Experience points
 
Hi!
I'm planning a fighting and an experience point system,because I'm planning a MMORPG with the petsite script.The adopt must have a field named exp_points.You can increase the EXP with leveling.But there is an owner-only
function,fighting.The database will choose from different monsters.The chance of wins:your warrior's level is 5.If the monster's level:
-lower than the warrior's actual level -70% to win,30% to lose 20 EXP
-equals to the warrior's actual level - 50% to win,50% to lose 30 EXP
-higher than the warrior's actual level - 30% to win,70% to lose 30 EXP +10 EXP varies to the level highness,example a level 5 warrior defeats a lv.8 monster,he/she gets 60 EXP(30 EXP +30 EXP because the monsters level is higher with 3).If the warrior lose,he/she couldn't get any EXP.The monsters are need a field called adopts_monsters,and the fields are:
-monster_ID
-name
-level
.
Plus,somebody will fight at 36 times per day.

Bloodrun 08-20-2009 10:42 AM

RE: Experience points
 
This is something more for the Trading Section.

Because other then answering some of your questions, it would require us to code it for you.

But, why don't you just use the Leveling Points that are already there, for experience.
Because there is an easier, less confusing, and quicker way to do the whole EXP/Winning-Losing Percentage etc. By not incorporating it with the actual leveling system.

I say this, because again, it would require us to code it for you, that is time off our hands, without anything in return, and plus, its not a "modification" that everyone else would use.


I am not trying to discourage you here, just trying to give you some helpful pointers. But I do have a question for you, do you have any experience in coding with PHP?

SleepWalker 08-20-2009 11:39 AM

RE: Experience points
 
In the first version,there is that method:the variables is:
$level=the level of the adopt
$mlevel=the level of the monster.
PHP Code:

$plusexp currentexp 20

//Set EXP in the database

$query "UPDATE " .$prefix."owned_adoptables SET
currentexp='"
.$plusexp"' WHERE aid='".$id."'";
    
mysql_query($query); 

This code needs updates,and it works when is a win.
EDIT:I found a random link script in PHP.


All times are GMT -5. The time now is 09:01 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.