Newbie Spellweaver
- Joined
- Jan 3, 2017
- Messages
- 70
- Reaction score
- 12
Hey ragezs, do you know how to create a broadcast when new character create ?
I make this one script to view new last character on roles, but i didn't know to broadcast this in game
This is the code :
Actually i know but without cron jobs -_-, if you execute this script automatically please contact mett:
I make this one script to view new last character on roles, but i didn't know to broadcast this in game
This is the code :
PHP:
<?php
mysql_connect("localhost", "root", "xxxxxxxxxxxxxxx") or die(mysql_error());
mysql_select_db("pw") or die(mysql_error());
$data = mysql_query("SELECT role_name,role_occupation FROM roles ORDER BY account_id DESC LIMIT 1") or die(mysql_error());
while($info = mysql_fetch_array( $data )) {
$role_name = $info['role_occupation'];
if ($role_name == "0") { $ras = "Warrior";
} elseif ($role_name == "1") { $ras = "Mage";
} elseif ($role_name == "2") { $ras = "Psychic";
} elseif ($role_name == "3") { $ras = "FoxLady";
} elseif ($role_name == "4") { $ras = "Bestial";
} elseif ($role_name == "5") { $ras = "Assassin";
} elseif ($role_name == "6") { $ras = "Archer";
} elseif ($role_name == "7") { $ras = "Priest";
} elseif ($role_name == "8") { $ras = "Seeker";
} elseif ($role_name == "9") { $ras = "Mystic";
} elseif ($role_name == "10") { $ras = "Dudskblade";
} elseif ($role_name == "11") { $ras = "Stormbringer";
} else { echo "Tidak diketahui!";
}
$bacot = "Hy nama saya : ".$info['role_name'] . " , saya adalah seorang ".$ras . " pemula, saya harap anda dapat membimbing saya :D";
}
echo $bacot;
?>
Actually i know but without cron jobs -_-, if you execute this script automatically please contact mett: