Magictibiaman
New Member
- Joined
- May 25, 2009
- Messages
- 371
- Reaction score
- 0
how go create god/gm in php?
<?php
mysql_connect("localhost", "(your mysql username)", "(your sql pass)");
mysql_select_db("(your ot database name)");
$AccID = " " //ID of account GM/GOD will be going on
$GroupID = "6" //Group the player will be in (here i have 6 for GOD)
$CharName = " "//Name of the GM/GOD your creating
mysql_query("INSERT INTO `players` (`id`, `name`, `world_id`, `group_id`, `account_id`, `level`, `vocation`, `health`, `healthmax`, `experience`, `lookbody`, `lookfeet`, `lookhead`, `looklegs`, `looktype`, `lookaddons`, `maglevel`, `mana`, `manamax`, `manaspent`, `soul`, `town_id`, `posx`, `posy`, `posz`, `cap`, `sex`, `lastlogin`, `lastip`, `save`, `skull`, `skulltime`, `rank_id`, `guildnick`, `lastlogout`, `blessings`, `balance`, `stamina`, `direction`, `loss_experience`, `loss_mana`, `loss_skills`, `loss_containers`, `loss_items`, `premend`, `online`, `marriage`, `promotion`, `deleted`, `description`)
VALUES
(NULL, '$CharName', '0', '$GroupID', '$AccID', '1', '0', '150', '150', '0', '0', '0', '0', '0', '136', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '', '0', '0', '0', '151200000', '2', '100', '100', '100', '100', '100', '0', '0', '0', '0', '0', '');");
?php>