Merge branch 'master' of mojotrollz.eu:wow-server/mojo_zero_web

This commit is contained in:
Tobi 2014-10-27 00:24:17 +01:00
commit 8143e0593b
11 changed files with 649 additions and 2 deletions

View File

@ -5,3 +5,4 @@ SYSTEM\autoload::registerFolder(dirname(__FILE__).'/realm','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/world',''); SYSTEM\autoload::registerFolder(dirname(__FILE__).'/world','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/database',''); SYSTEM\autoload::registerFolder(dirname(__FILE__).'/database','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/charcreation',''); SYSTEM\autoload::registerFolder(dirname(__FILE__).'/charcreation','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/client','');

View File

@ -0,0 +1,16 @@
<?php
class AuthCmd
{
//AUTH_NO_CMD = 0xFF,
const AUTH_LOGON_CHALLENGE = 0x00;
const AUTH_LOGON_PROOF = 0x01;
//AUTH_RECONNECT_CHALLENGE = 0x02,
//AUTH_RECONNECT_PROOF = 0x03,
//update srv =4
const REALM_LIST = 0x10;
const XFER_INITIATE = 0x30;
const XFER_DATA = 0x31;
const XFER_ACCEPT = 0x32;
const XFER_RESUME = 0x33;
const XFER_CANCEL = 0x34;
};

View File

@ -0,0 +1,20 @@
<?php
class AuthResults
{
const REALM_AUTH_SUCCESS = 0;
const REALM_AUTH_FAILURE=0x01; ///< Unable to connect
const REALM_AUTH_UNKNOWN1=0x02; ///< Unable to connect
const REALM_AUTH_ACCOUNT_BANNED=0x03; ///< This <game> account has been closed and is no longer available for use. Please go to <site>/banned.html for further information.
const REALM_AUTH_NO_MATCH=0x04; ///< The information you have entered is not valid. Please check the spelling of the account name and password. If you need help in retrieving a lost or stolen password, see <site> for more information
const REALM_AUTH_UNKNOWN2=0x05; ///< The information you have entered is not valid. Please check the spelling of the account name and password. If you need help in retrieving a lost or stolen password, see <site> for more information
const REALM_AUTH_ACCOUNT_IN_USE=0x06; ///< This account is already logged into <game>. Please check the spelling and try again.
const REALM_AUTH_PREPAID_TIME_LIMIT=0x07; ///< You have used up your prepaid time for this account. Please purchase more to continue playing
const REALM_AUTH_SERVER_FULL=0x08; ///< Could not log in to <game> at this time. Please try again later.
const REALM_AUTH_WRONG_BUILD_NUMBER=0x09; ///< Unable to validate game version. This may be caused by file corruption or interference of another program. Please visit <site> for more information and possible solutions to this issue.
const REALM_AUTH_UPDATE_CLIENT=0x0a; ///< Downloading
const REALM_AUTH_UNKNOWN3=0x0b; ///< Unable to connect
const REALM_AUTH_ACCOUNT_FREEZED=0x0c; ///< This <game> account has been temporarily suspended. Please go to <site>/banned.html for further information
const REALM_AUTH_UNKNOWN4=0x0d; ///< Unable to connect
const REALM_AUTH_UNKNOWN5=0x0e; ///< Connected.
const REALM_AUTH_PARENTAL_CONTROL=0x0f; ///< Access to this account has been blocked by parental controls. Your settings may be changed in your account preferences at <site>
};

View File

@ -0,0 +1,348 @@
<?php
//http://arcemu.org/wiki/Logon_Process
/*
2014-08-02 23:44:18 Accepting connection from '37.24.148.225'
2014-08-02 23:44:18 [Auth] got data for cmd 0 recv length 47
2014-08-02 23:44:18 Entering _HandleLogonChallenge
2014-08-02 23:44:18 [AuthChallenge] got header, body is 0x2b bytes
2014-08-02 23:44:18 [AuthChallenge] got full packet, 0x2b bytes
2014-08-02 23:44:18 [AuthChallenge] name(13): 'ADMINISTRATOR'
2014-08-02 23:44:18 [AuthChallenge] Account 'ADMINISTRATOR' is not locked to ip
2014-08-02 23:44:18 database authentication values: v='092F9FB72C46AD5847B6166E8D6C0C2B36F416CDE6D277BA896DA56950A734B7' s='8DD0BD0A1E0C894E7B24A4264E50F1AE4456DA8C25195B1895D6DF1EBAB840F9'
2014-08-02 23:44:18 [AuthChallenge] account ADMINISTRATOR is using 'enGB' locale (0)
2014-08-02 23:44:18 [Auth] got data for cmd 1 recv length 75
2014-08-02 23:44:18 Entering _HandleLogonProof
2014-08-02 23:44:18 User 'ADMINISTRATOR' successfully authenticated
2014-08-02 23:44:18 [Auth] got data for cmd 16 recv length 5
2014-08-02 23:44:18 Entering _HandleRealmList
2014-08-02 23:44:18 Updating Realm List...
2014-08-03 00:29:16 Accepting connection from '127.0.0.1'
2014-08-03 00:29:16 [Auth] got data for cmd 0 recv length 47
2014-08-03 00:29:16 Entering _HandleLogonChallenge
2014-08-03 00:29:16 [AuthChallenge] got header, body is 0x2b bytes
2014-08-03 00:29:16 [AuthChallenge] got full packet, 0x2b bytes
2014-08-03 00:29:16 [AuthChallenge] name(13): 'ADMINISTRATOR'
2014-08-03 00:29:16 [AuthChallenge] Account 'ADMINISTRATOR' is not locked to ip
2014-08-03 00:29:16 database authentication values: v='092F9FB72C46AD5847B6166E8D6C0C2B36F416CDE6D277BA896DA56950A734B7' s='8DD0BD0A1E0C894E7B24A4264E50F1AE4456DA8C25195B1895D6DF1EBAB840F9'
2014-08-03 00:29:16 [AuthChallenge] account ADMINISTRATOR is using 'enUS' locale (0)
*/
class client {
//http://arcemu.org/wiki/Client_Logon_Challenge
/*
uint8 cmd;
uint8 error;
uint16 size;
uint8 gamename[4];
uint8 version1;
uint8 version2;
uint8 version3;
uint16 build;
uint8 platform[4];
uint8 os[4];
uint8 country[4];
uint32 timezone_bias;
uint32 ip;
uint8 I_len;
uint8 I[50];
*/
private static function logon_challenge(){
return pack('HHvHHHHHHHvHHHHHHHHCCCChhhhhhhhh', //'H21L4H9',
AuthCmd::AUTH_LOGON_CHALLENGE,//'00',//.
0x06,//error
43,//size
dechex(ord('W')),dechex(ord('o')),dechex(ord('W')),'00', //WoW\0
0x02,0x0C,0x01, //V 1.12.1
5875,// build 5875
dechex(ord('6')),dechex(ord('8')),dechex(ord('x')),'00', //x86\0
dechex(ord('n')),dechex(ord('i')),dechex(ord('W')),'00', //Win\0
ord('S'),ord('U'),ord('n'),ord('e'), //enUS
'3C','00','00','00', //60 timezone
'01','00','00','7F', //ip
dechex(13)).// '0D').//accname length
'ADMINISTRATOR';
}
//http://arcemu.org/wiki/Server_Logon_Challenge
/*
uint8 cmd;
uint8 error;
uint8 unk2;
uint8 B[32];
uint8 g_len;
uint8 g;
uint8 N_len;
uint8 N[32];
uint8 s[32];
uint8 unk3[16];
uint8 unk4;
*/
private static function server_logon_challenge($data){
return unpack('hcmd/herror/hunk1/h32B/hglen/hg/hNlen/h32N/h32S/h16salt/hunk2', $data);}
/*
uint8 cmd;
uint8 A[32];
uint8 M1[20];
uint8 crc_hash[20];
uint8 number_of_keys;
uint8 unk;
*/
private static function logon_proof($N,$B,$salt,$unk2){
/*
* bekannt: B,g,N,S
* gesucht: A, M1, crc
*
// now lets start calculating
BigNumber N,A,B,a,u,x,v,S,salt,unk1,g,k(3); // init BNs, default k to 3
user=stringToUpper( _accname );
_authstr=stringToUpper( user +":"+_accpass );
B.SetBinary(lc.B,32);
g.SetBinary(lc.g,lc.g_len);
N.SetBinary(lc.N,lc.N_len);
salt.SetBinary(lc.salt,32);
unk1.SetBinary(lc.unk3,16);
logdebug("== My Bignums ==");
a.SetRand(19*8);
ASSERT(a.AsDword() > 0);
logdebug("--> a=%s",a.AsHexStr());
Sha1Hash userhash,xhash,uhash;
userhash.UpdateData(_authstr);
userhash.Finalize();
xhash.UpdateData(salt.AsByteArray(),salt.GetNumBytes());
xhash.UpdateData(userhash.GetDigest(),userhash.GetLength());
xhash.Finalize();
x.SetBinary(xhash.GetDigest(),xhash.GetLength());
logdebug("--> x=%s",x.AsHexStr());
v=g.ModExp(x,N);
logdebug("--> v=%s",v.AsHexStr());
A=g.ModExp(a,N);
logdebug("--> A=%s",A.AsHexStr());
uhash.UpdateBigNumbers(&A, &B, NULL);
uhash.Finalize();
u.SetBinary(uhash.GetDigest(), 20);
logdebug("--> u=%s",u.AsHexStr());
S=(B - k*g.ModExp(x,N) ).ModExp((a + u * x),N);
logdebug("--> S=%s",S.AsHexStr());
ASSERT(S.AsDword() > 0);
// calc M1 & M2
unsigned int i=0;
char S1[16+1],S2[16+1]; // 32/2=16 :) +1 for \0
// split it into 2 seperate strings, interleaved
for(i=0;i<16;i++){
S1[i]=S.AsByteArray()[i*2];
S2[i]=S.AsByteArray()[i*2+1];
}
// hash each one:
Sha1Hash S1hash,S2hash;
S1hash.UpdateData((const uint8*)S1,16);
S1hash.Finalize();
S2hash.UpdateData((const uint8*)S2,16);
S2hash.Finalize();
// Re-combine them
char S_hash[40];
for(i=0;i<20;i++){
S_hash[i*2]=S1hash.GetDigest()[i];
S_hash[i*2+1]=S2hash.GetDigest()[i];
}
_key.SetBinary((uint8*)S_hash,40); // used later when authing to world
logdebug("--> SessionKey=%s",_key.AsHexStr());
char Ng_hash[20];
Sha1Hash userhash2,Nhash,ghash;
userhash2.UpdateData((const uint8*)user.c_str(),user.length());
userhash2.Finalize();
//printchex((char*)userhash2.GetDigest(),userhash2.GetLength(),true);
Nhash.UpdateBigNumbers(&N,NULL);
Nhash.Finalize();
ghash.UpdateBigNumbers(&g,NULL);
ghash.Finalize();
for(i=0;i<20;i++)Ng_hash[i] = Nhash.GetDigest()[i]^ghash.GetDigest()[i];
//printchex(Ng_hash,20,true);
BigNumber t_acc,t_Ng_hash;
t_acc.SetBinary((const uint8*)userhash2.GetDigest(),userhash2.GetLength());
t_Ng_hash.SetBinary((const uint8*)Ng_hash,20);
Sha1Hash M1hash,M2hash;
M1hash.UpdateBigNumbers(&t_Ng_hash,&t_acc,&salt,&A,&B,NULL);
M1hash.UpdateData((const uint8*)S_hash,40);
M1hash.Finalize();
M2hash.UpdateBigNumbers(&A,NULL);
M2hash.UpdateData((const uint8*)M1hash.GetDigest(),M1hash.GetLength());
M2hash.UpdateData((const uint8*)S_hash,40);
M2hash.Finalize();
logdebug("== Common Hashes ==");
logdebug("--> M1=%s",toHexDump(M1hash.GetDigest(),M1hash.GetLength(),false).c_str());
logdebug("--> M2=%s",toHexDump(M2hash.GetDigest(),M2hash.GetLength(),false).c_str());
// Calc CRC & CRC_hash
// i don't know yet how to calc it, so set it to zero
char crc_hash[20];
memset(crc_hash,0,20);
logdebug("--> CRC=%s",toHexDump((uint8*)crc_hash,20,false).c_str());
// now lets prepare the packet
ByteBuffer packet;
packet << (uint8)AUTH_LOGON_PROOF;
packet.append(A.AsByteArray(),A.GetNumBytes());
packet.append(M1hash.GetDigest(),M1hash.GetLength());
packet.append(crc_hash,20);
packet << (uint8)0; // number of keys = 0
packet << (uint8)0; // 1.11.x compatibility (needs one more 0)
A = g^a
B = kv + g^b
u = H(A, B)
x = H(s, p)
S = (B - kg^x) ^ (a + ux)
K = H(S)
M = H(H(N) xor H(g), H(I), s, A, B, K)
*/
$N = self::bchexdec($N);
$B = self::bchexdec($B);
$a = rand(1,19*8);
$x = 0;
$v = 0;
//$S = self::bchexdec($read['S']);
$salt = self::bchexdec($salt);
$unk2 = self::bchexdec($unk2);
$g = self::bchexdec($g);
$k = 3;// init BNs, default k to 3
$user = 'ADMINISTRATOR'; // upper
$user_pass = 'ADMINISTRATOR'; // upper
$auth_str = $user.":".$user_pass;
$userhash = sha1($auth_str);
$x = sha1($salt.$auth_str);
$v= bcpow($g, $x, $N);
$A = bcpow($g, $a, $N);
$u = sha1($A.$B);
$S= bcpow((bcsub($B, bcmul($k, bcpow($g, $x, $N)))),(bcadd($a, bcmul($u, $x))),$N); //(B - k*g.ModExp(x,N) ).ModExp((a + u * x),N);
// calc M1 & M2
$i = 0;
$S1 = '';
$S2 = '';
// split it into 2 seperate strings, interleaved
for($i=0;$i<16;$i++){
$S1 .= substr($S, ($i*2)*2,2);
$S2 .= substr($S, ($i*2+1)*2,2);
}
// hash each one:
$S1hash = sha1($S1);
$S2hash = sha1($S2);
// Re-combine them
$S_hash = '';
for($i=0;$i<20;$i++){
$S_hash .= substr($S1hash, $i*2,2);
$S_hash .= substr($S2hash, $i*2,2);
}
$key = $S_hash;// used later when authing to world(session key)
$userhash2 = sha1($user);
$Nhash = sha1($N);
$ghash = sha1($g);
$Ng_hash = '';
for($i=0;$i<20;$i++){
$Ng_hash .= hexdec(substr($Nhash, $i*2,2))^hexdec(substr($ghash, $i*2,2));};
$t_acc = $userhash2;
$t_Ng_hash = $Ng_hash;
$M1hash = sha1($t_Ng_hash.$t_acc.$salt.$A.$B);
$M2hash = sha1($M1hash.$S_hash);
$A_hex = self::bcdechex($A);
// Calc CRC & CRC_hash
// i don't know yet how to calc it, so set it to zero
//...
$res = array( 'N' => $N,
'A' => $A,
'B' => $B,
'g' => $g,
'a' => $a,
'u' => $u,
'x' => $x,
'v' => $v,
'S' => $S,
'salt' => $salt,
'unk2' => $unk2,
'user' => $user,
'user_pass' => $user_pass,
'auth_str' => $auth_str,
'A_hex' => $A_hex,
'M1hash' => $M1hash,
substr($A_hex,1,2), substr($A_hex,3,2),substr($A_hex,5,2),substr($A_hex,7,2),substr($A_hex,9,2),substr($A_hex,11,2),substr($A_hex,13,2),substr($A_hex,15,2),substr($A_hex,17,2),substr($A_hex,19,2),substr($A_hex,21,2),substr($A_hex,23,2),substr($A_hex,25,2),substr($A_hex,27,2),substr($A_hex,29,2),substr($A_hex,31,2),substr($A_hex,33,2),substr($A_hex,35,2),substr($A_hex,37,2),substr($A_hex,39,2),substr($A_hex,41,2),substr($A_hex,43,2),substr($A_hex,45,2),substr($A_hex,47,2),substr($A_hex,49,2),substr($A_hex,51,2),substr($A_hex,53,2),substr($A_hex,55,2),substr($A_hex,57,2),substr($A_hex,59,2),substr($A_hex,61,2),substr($A_hex,63,2));
new WARNING(print_r($res,true));
$out = pack('hh32h20hhhhhhhhhhhhhhhhhhhhhh', //'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh',//'hh32h20hhhhhhhhhhhhhhhhhhhhhh',
AuthCmd::AUTH_LOGON_PROOF, //Command
$A_hex,//substr($A_hex,1,2), substr($A_hex,3,2),substr($A_hex,5,2),substr($A_hex,7,2),substr($A_hex,9,2),substr($A_hex,11,2),substr($A_hex,13,2),substr($A_hex,15,2),substr($A_hex,17,2),substr($A_hex,19,2),substr($A_hex,21,2),substr($A_hex,23,2),substr($A_hex,25,2),substr($A_hex,27,2),substr($A_hex,29,2),substr($A_hex,31,2),substr($A_hex,33,2),substr($A_hex,35,2),substr($A_hex,37,2),substr($A_hex,39,2),substr($A_hex,41,2),substr($A_hex,43,2),substr($A_hex,45,2),substr($A_hex,47,2),substr($A_hex,49,2),substr($A_hex,51,2),substr($A_hex,53,2),substr($A_hex,55,2),substr($A_hex,57,2),substr($A_hex,59,2),substr($A_hex,61,2),substr($A_hex,63,2), //A self::bcdechex($A), substr($A_hex,1,64),// $A_hex,//
$M1hash, //0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, //M1 $M1hash,//substr($M1hash,1,40),//$M1hash,//
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //CRC
0x00, //Keys
0x00 //unk
);
return $out;
}
public static function import($ip){
new INFO('Tryin to Connect to '.$ip);
$errno = $errstr = '';
$fp = fsockopen($ip , 3724, $errno, $errstr, 1000);
//socket_set_blocking( $fp, false );
if (!$fp) {
new ERROR("ERROR: $errno - $errstr");
} else {
new INFO('Connection established');
$out = self::logon_challenge();
new WARNING($out);
//new WARNING(bin2hex($out));
fwrite($fp, $out);
$read = fread($fp, 119);//stream_get_contents($fp); //fread($fp, 1);
$read = self::server_logon_challenge($read);
new WARNING(print_r($read,true));
$out = self::logon_proof($read['N'],$read['B'],$read['salt'],$read['unk2']);
new WARNING($out);
fwrite($fp, $out);
fclose($fp);
new WARNING("success");
}
}
private static function bchexdec($hex)
{
$dec = 0;
$len = strlen($hex);
for ($i = 1; $i <= $len; $i++) {
$dec = bcadd($dec, bcmul(strval(hexdec($hex[$i - 1])), bcpow('16', strval($len - $i))));
}
return $dec;
}
private static function bcdechex($dec) {
$last = bcmod($dec, 16);
$remain = bcdiv(bcsub($dec, $last), 16);
if($remain == 0) {
return dechex($last);
} else {
return self::bcdechex($remain).dechex($last);
}
}
}

View File

@ -0,0 +1,205 @@
# Funktionality
- Login/Register (openid)
- Server Info
- Vote -> gain Mojo
(- Donate -> gain Mojo)
- News
- Server Status
- Accounts count
- Characters count
- Uptime
- Top 10
-Account
- Vote Stuff
- Accepte Votereward quests (no payment on website)
- Characters
- Inventory/Bank/GBank/Aditional Bank
- Model/Items/Stats...
- Skilltree(ig) -> share options?!
- Database (able 2 tag entrys for bugged/blizzlike/working...)
- Quests
- Creatures + Drop
- Items
- Skilltree(web)
- Archievements
- OnKill
- First kill mob
- Kill mob
- Kill Player
- OnQuestComplete
- OnRoll (100/1) (in lootroll)
- OnCraft
- OnLearn
- OnAHSell
- OnAHBuy
- OnAHCancel
- OnExplore
- OnDeath
- OnLoot (recieve any type of item)
- Minigames?!
- Low lvl materials
- lvling
- Round base duel
- Gm Tool
- Edit Database
- Deploy Database
- Servercontroll
- Shutdown
- Update
- Ticket Management
- Ingame Mail
- Character Management
- Backup
- Bugreports/Database error list/crashes
# Login
- Required Data of the User
- Nick
- Password
- Forgotten Password?
- EMail + Link
- if set ask Date of Birth, ICQ number, Name, Lastname, Charactername
- Allow openid for login
# Register
- Reuqired Data of the User
- Nickname
- Password x2
- Captcha
- EMail
- Optional Data of the User(can be set later in profile, not while registering)
- Name
- Lastname
- ICQ
- Date of Birth
- Allow openid for retriving informations/registering
# Server Info
- Name
- Game Version 2.4.3
- Client Download
- Realmlist (file or text)
- Rates + Custom Content
- Average Lvltime guessed
# Vote
- Set Charactername whom 2 send to. (if logged in -> character list is provided, if not you can type random name, leave blank or randomize for random character)
- Limitation of votes
# News
- Server news, chronologically, requires one picture! (no more posts without pictures)
# Server Status
- Accounts count
- Characters count
- Average Lvl time (only if its acceptable!)
- Uptime
- Top 10
- TOP PVE
- TOP PVP
- TOP Quest
- TOP Guild
- TOP Playtime
- TOP BossKills
- TOP Firstkills
- TOP Firstkills Boss
- TOP Duels
# Skilltree(web) -> costs mojo(how 2 transfere?) (should mostly start a quest to unlock the feature)
- Survival Tree - Character
- [C] Mojo Postbox (unlocks quest)
- [C] HS Cooldownreduction (unlocks quest)
- 3x
- [C/A] Dual Specc(changed on website/spell)
- on 8 x 1 chars
- [C/A] Dual Gear (changed on website/spell)
- on 8 x 1 chars
- [C] Tripple Gear
- on 1 char
- [C] Tripple Specc
- [C] Click on Button Spell -> to make ur char look nice -> buy skill click on button on website 2 gain shit
- [C] Tabarts(normal tabart quests)
- [C] Mana/Hp Pot quest(daily 5x pot on choise + task)
- [C] Scroll quests(daily 1x scroll of choise, insta completed)
- [C] Summon Trainer of ur Class 1d cd (spell?) (not in instances) (not indoor?)
- [C] Summon Trader
- [C] Summon Repairer
- [C] Multichar
- lvl 19 pvp
- lvl 39 pvp
- lvl 60 pvp/pve
+ normal 70.
- [C] Craft cooldownreduction
5% x 5
- [C] MoreQuests in Questlog
- 10x 1
- Trader Tree(Web Tree) - account
- [A] Database access
- Quests
- Items
- Creatures
- [A] AH Access (if Char is in City (CIIC))
- Buy(only bid/also buyout)
- Sell(only bid/also buyout)
- [A] Bank Access (CIIC)
- Put
- Pop
- [A] Guildbank Access (CIIC)
- Put
- Pop
- [A] AH fee reduction
- [A] AH item count+
- [A] Aditional Website bank per account(items are charbound)
- 5
- 10
- 15
- 20
- 25
x3 pages +1 per alt max 6
- [A] In between bank for characters on the same account (char in city can put/pop from that bank - not bop items ofc)
- 2 Slots
- 5 Slots
- 10 Slots
- [A] Permanent Auctions (1x bigger fee, keeps item in ah till all of that kind(or number) are sold)
- 1x 10
- [A] Permanent Auctions dont count as normal auctions
- [A] Send Mail/Read Mail
- normal
- with gold
- with item
- with cod
- [A] Mojo AH (items/chars) for mojo (chars for green)
- [A] Trade AH (offer item/s, request item/s)
- [A] Charbank (have more then 8 chars on 1 acc)
- [A] Lend Chars -> chars can be logged by authorized pplz, but will be restored to the version before logging -> temporary transfere
- [A] Log more chars from one account
- GM Tree - account
- Ability to mark a quest as working(giving mojo if confirmed)
- Ability to mark a quest as bugged
- Ability to mark a quest as blizzlike
- .g i command available (all chars)
- .s i command available (all chars)
- .player reputation available (all chars)
- Ability to mark a Item as working
- Ability to mark a Item as bugged
- Ability to mark a Item as blizzlike
- Ability to mark a Mob as working
- Ability to mark a Mob as bugged
- Ability to mark a Mob as blizzlike
- GM character (testserver)
- GM character (liveserver)
- Moderator Character (liveserver)
- ingame commands for bugreport?!
- Skills may require
- Approve
- Mojo(web)
- Bugreports / Accepted Bugreports
- Fixes / Accepted Fixes
- Playtime
- Gold
- Other Skills
- Character lvl x
- Achievement x
- Character Spell x
- Duel Win/loose

View File

@ -0,0 +1,13 @@
<?php
namespace DBD;
class DB_CREATURE_TEMPLATE_CREATURE_AI_SCRIPTS extends \SYSTEM\DB\QP {
protected static function query(){
return new \SYSTEM\DB\QQuery(get_class(),
//pg
'',
//mys
'SELECT * FROM creature_ai_scripts WHERE `creature_id` = ?;',
new \DBD\mangos_world()
);}}

View File

@ -0,0 +1,13 @@
<?php
namespace DBD;
class DB_CREATURE_TEMPLATE_CREATURE_EQUIP_TEMPLATE extends \SYSTEM\DB\QP {
protected static function query(){
return new \SYSTEM\DB\QQuery(get_class(),
//pg
'',
//mys
'SELECT * FROM creature_equip_template WHERE `Entry` = ?;',
new \DBD\mangos_world()
);}}

View File

@ -0,0 +1,13 @@
<?php
namespace DBD;
class DB_CREATURE_TEMPLATE_CREATURE_EQUIP_TEMPLATE_RAW extends \SYSTEM\DB\QP {
protected static function query(){
return new \SYSTEM\DB\QQuery(get_class(),
//pg
'',
//mys
'SELECT * FROM creature_equip_template_raw WHERE `Entry` = ?;',
new \DBD\mangos_world()
);}}

View File

@ -0,0 +1,13 @@
<?php
namespace DBD;
class DB_CREATURE_TEMPLATE_CREATURE_MOVEMENT_TEMPLATE extends \SYSTEM\DB\QP {
protected static function query(){
return new \SYSTEM\DB\QQuery(get_class(),
//pg
'',
//mys
'SELECT * FROM creature_movement_template WHERE `Entry` = ?;',
new \DBD\mangos_world()
);}}

View File

@ -11,7 +11,11 @@ class saimod_mojotrollz_db_creature extends \SYSTEM\SAI\SaiModule {
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_ONKILL_REPUTATION' => array('key' => 'Entry', 'caption' => 'Onkill Reputation'), '\DBD\DB_CREATURE_TEMPLATE_CREATURE_ONKILL_REPUTATION' => array('key' => 'Entry', 'caption' => 'Onkill Reputation'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_LINKING_TEMPLATE' => array('key' => 'Entry', 'caption' => 'Linking Template'), '\DBD\DB_CREATURE_TEMPLATE_CREATURE_LINKING_TEMPLATE' => array('key' => 'Entry', 'caption' => 'Linking Template'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_INVOLVEMENT_RELATION' => array('key' => 'Entry', 'caption' => 'Involvement Relation'), '\DBD\DB_CREATURE_TEMPLATE_CREATURE_INVOLVEMENT_RELATION' => array('key' => 'Entry', 'caption' => 'Involvement Relation'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_CREATURE' => array('key' => 'Entry', 'caption' => 'Spawns'),)); '\DBD\DB_CREATURE_TEMPLATE_CREATURE_CREATURE' => array('key' => 'Entry', 'caption' => 'Spawns'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_EQUIP_TEMPLATE_RAW' => array('key' => 'Entry', 'caption' => 'Equip Template Raw'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_EQUIP_TEMPLATE' => array('key' => 'Entry', 'caption' => 'Equip Template'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_AI_SCRIPTS' => array('key' => 'Entry', 'caption' => 'AI Scripts'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_MOVEMENT_TEMPLATE' => array('key' => 'Entry', 'caption' => 'Movement Template'),));
$result = '<table class="sai_table">'; $result = '<table class="sai_table">';
$base_row = \DBD\DB_CREATURE_TEMPLATE_CREATURE::Q1(array($id)); $base_row = \DBD\DB_CREATURE_TEMPLATE_CREATURE::Q1(array($id));

View File

@ -1,3 +1,4 @@
auxiliary.org-netbeans-modules-php-smarty.smarty-framework=true
file.reference.Webdesign-system=../system file.reference.Webdesign-system=../system
include.path=\ include.path=\
${php.global.include.path} ${php.global.include.path}