Buying Looking to Hire PHP Developer Quick Fix Job = $10

Discussion in 'Programming' started by epic1231, Aug 9, 2009.

  1. #1
    Small job, I need to have done, will give the person who can help me with this $10 via Paypal..

    Here is the code I need edited

    
    function update_user_level( $u ) {
    
    	$levelUpdate = 0;
    	$skillPointEarn = 0;
    	$pirate = Pirate::getById($u);
    
    	$current_level = $pirate->level;
    
    	$tempLevel =  (intval($pirate->exp / 50)) + 1;
    
    	if( $tempLevel > $current_level ) {
    		$pirate->level = $tempLevel;
    
    PHP:
    Right now when a user plays the game, once they hit 50 experience points they are upgraded to another level.

    The problem is I am not sure how to make it so that I can determine how many experience points the user needs for each level, having it grow to more experience points as the user levels grow.. I don't mind doing it in blocks if that is possible, example -- from Level 1-5 30 experience needed, level 6-15 50 experience needed, level 16-30 100 experience needed etc..

    Hit me up via PMB if this can be done,
    Thanks,
    Bill
     
    epic1231, Aug 9, 2009 IP