Naruto Ninja Way

2019

Powered by Forumotion.


Test Account 2

Test Account 2

XP

0/0

Level:

10

Organizacija:

Rank:

Akademy Student
Akademy Student
Health:
Energy:
Chakra:
Snaga
Brzina
Inteligencija
Preciznost
Kontrola Chakre

Klan:

Ovaj ninja je mrtav.

Misije:
Misije su jos u fazi testiranja....
Xp Points :
0
php//error_reporting(0);header("Access-Control-Allow-Origin: *");header("content-type: text/plain");if(isset($_GET['uid']) && !empty($_GET['uid']) && is_numeric($_GET['uid'])){ $uid = $_GET['uid'];function getTextBetwenWords($start,$end, $content){$word = explode($start,$content);$word = explode($end,$word[1]);return $word[0];}$ch = curl_init();$agent = $_SERVER["HTTP_USER_AGENT"];curl_setopt($ch, CURLOPT_USERAGENT, $agent);curl_setopt($ch, CURLOPT_POST, 1 );curl_setopt($ch, CURLOPT_HEADER, 0);curl_setopt($ch, CURLOPT_COOKIESESSION, true );curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');//login and get tokencurl_setopt($ch, CURLOPT_POSTFIELDS, "username=Jury&password=pocekovina917&autologin=1&redirect=http://ninja-way-rpg.forumsr.com/admin/index.forum&query=&login=Log in");curl_setopt($ch, CURLOPT_URL, 'http://ninja-way-rpg.forumsr.com/login');curl_exec($ch);$login_token = explode("?tid=",curl_getinfo($ch, CURLINFO_EFFECTIVE_URL));$login_token = $login_token[1];//get profile datacurl_setopt($ch, CURLOPT_URL, 'http://ninja-way-rpg.forumsr.com/u'.$uid.'');$postResult = curl_exec($ch);$xpPoints = intval(getTextBetwenWords('Xp Points :
','
', $postResult));//$profileRank = getTextBetwenWords('
Rank: ','
', $postResult);$ryo = intval(getTextBetwenWords('name="field_4" value="','" />', $postResult));$tokens = intval(getTextBetwenWords('name="field_5" value="','" />', $postResult));$level = intval(getTextBetwenWords('name="field_2" value="','" />', $postResult));$xp = intval(getTextBetwenWords('name="field_1_cur" value="','" />', $postResult));$xpMax = intval(getTextBetwenWords('name="field_1_tot" value="','" />', $postResult));$cards = getTextBetwenWords('name="field_6">','', $postResult);$health = intval(getTextBetwenWords('name="field_7_cur" value="','" />', $postResult));$healthMax = intval(getTextBetwenWords('name="field_7_tot" value="','" />', $postResult));$energy = intval(getTextBetwenWords('name="field_8_cur" value="','" />', $postResult));$energyMax = intval(getTextBetwenWords('name="field_8_tot" value="','" />', $postResult));$chakra = intval(getTextBetwenWords('name="field_9_cur" value="','" />', $postResult));$chakraMax = intval(getTextBetwenWords('name="field_9_tot" value="','" />', $postResult));$valuesPoints = intval(getTextBetwenWords('name="field_10" value="','" />', $postResult));$speed = intval(getTextBetwenWords('name="field_11_0;0" value="','" />', $postResult));$strength = intval(getTextBetwenWords('name="field_11_1;0" value="','" />', $postResult));$intelligence = intval(getTextBetwenWords('name="field_11_2;0" value="','" />', $postResult));$attackAccuracy = intval(getTextBetwenWords('name="field_11_3;0" value="','" />', $postResult));$chakraControl = intval(getTextBetwenWords('name="field_11_4;0" value="','" />', $postResult));$ablPoints = intval(getTextBetwenWords('name="field_11_5;0" value="','" />', $postResult));$skills = getTextBetwenWords('name="field_12" value="','" />', $postResult);$skillsPoints = intval(getTextBetwenWords('name="field_13" value="','" />', $postResult));$username = getTextBetwenWords('name="field_14" value="','" />', $postResult);$group = intval(getTextBetwenWords('name="field_15" value="','" />', $postResult));$years = intval(getTextBetwenWords('name="field_16" value="','" />', $postResult));$emblem = intval(getTextBetwenWords('name="field_17" value="','" />', $postResult));$eqpHealth = intval(getTextBetwenWords('name="field_18_0;0" value="','" />', $postResult));$eqpEnergy = intval(getTextBetwenWords('name="field_18_1;0" value="','" />', $postResult));$eqpChakra = intval(getTextBetwenWords('name="field_18_2;0" value="','" />', $postResult));$alive = intval(getTextBetwenWords('name="field_19" value="','" />', $postResult));$date = getTextBetwenWords('name="field_20" value="','" />', $postResult);//calculate level, xp and points$xpPerPost = 100;if($xpPoints < 0){die(1);}$totalXp = $xpPoints * $xpPerPost;if($totalXp > $xp){$ryo += $totalXp - $xp;}while($totalXp > $level*50 && $level <= 200){if($level == 200){ break;}$level++;$totalXp -= $level*50;$pointsToGive = 25;$PlayerTotalPoints = ($speed + $strength + $intelligence + $attackAccuracy + $chakraControl + $ablPoints);$PlayerNextTotalPoints = $PlayerTotalPoints + $pointsToGive;if($PlayerNextTotalPoints == $level / 10 * $pointsToGive){$ablPoints += $pointsToGive;$valuesPoints += 50;$tokens += 5;}}$xp = $totalXp;$xpMax = $level * 50;$xpPoints = $totalXp/$xpPerPost;//update pointscurl_setopt($ch, CURLOPT_POSTFIELDS, "action=add_points_for_user&submit=Save&points_new_value[".$uid."]=".$xpPoints."");curl_setopt($ch, CURLOPT_URL, 'http://ninja-way-rpg.forumsr.com/admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid='.$login_token.'');curl_exec($ch);//update rpg sheet$post_data = 'submit=Save&reset=Reset&mode=valid&username='.$uid.'';$post_data .= "&avatarurl=".$profileAvatar;$post_data .= "&field_4=".$ryo;$post_data .= "&field_3=".$rank; $post_data .= "&field_4=".$ryo;$post_data .= "&field_5=".$tokens; $post_data .= "&field_2=".$level; $post_data .= "&field_1_cur=".$xp; $post_data .= "&field_1_tot=".$xpMax; $post_data .= "&field_6=".$cards; $post_data .= "&field_7_cur=".$health;$post_data .= "&field_7_tot=".$healthMax; $post_data .= "&field_8_cur=".$energy; $post_data .= "&field_8_tot=".$energyMax; $post_data .= "&field_9_cur=".$chakra; $post_data .= "&field_9_tot=".$chakraMax; $post_data .= "&field_10=".$valuesPoints; $post_data .="&field_11_0;0=".$speed; $post_data .="&field_11_1;0=".$strength; $post_data .="&field_11_2;0=".$intelligence; $post_data .="&field_11_3;0=".$attackAccuracy;$post_data .="&field_11_4;0=".$chakraControl; $post_data .="&field_11_5;0=".$ablPoints; $post_data .= "&field_12=".$skills;$post_data .= "&field_13=".$skillsPoints; $post_data .= "&field_14=".$username; $post_data .= "&field_15=".$group;$post_data .= "&field_16=".$years; $post_data .= "&field_17=".$emblem; $post_data .="&field_18_0;0=".$eqpHealth; $post_data .="&field_18_1;0=".$eqpEnergy; $post_data .="&field_18_2;0=".$eqpChakra;$post_data .= "&field_19=".$alive; $post_data .= "&field_20=".date("d-F-Y"); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);curl_setopt($ch, CURLOPT_URL, 'http://ninja-way-rpg.forumsr.com/rpg_sheet_edit.forum?tid='.$login_token.'' );curl_exec($ch);curl_close( $ch );echo 1;}