Jump to content

maikash

Members
  • Posts

    31
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by maikash

  1. http://udbforums.org/index.php?topic=7730.0
  2. That particular spell requires several reagents and can't be used without them, that's what that error is from. Try .adding them to your inventory and then doing the script or w/e that is executed.
  3. AuthCodes.h (I think) has this line in it... #define EXPECTED_MANGOS_CLIENT_BUILD {Blah, 0} What client number are you trying to use? If you're trying 3.2 it'd be... #define EXPECTED_MANGOS_CLIENT_BUILD {10192, 0} but you'd have to revert some of the latest commits that made it 3.2.2 I can't check which ones right now cus githubs not up atm.
  4. It shouldn't crash if you add it into RewardHonor in Player.cpp. Just underneath "ModifyHonorPoints(int32(honor));" add "ModifyMoney(5000);"
  5. @Winslow I can't build on linux without this: diff --git a/src/game/Makefile.am b/src/game/Makefile.am index 1a587ea..fb226c2 100644 --- a/src/game/Makefile.am +++ b/src/game/Makefile.am @@ -222,6 +222,8 @@ libmangosgame_a_SOURCES = \\ PlayerbotHunterAI.h \\ PlayerbotMageAI.cpp \\ PlayerbotMageAI.h \\ + PlayerbotMgr.cpp \\ + PlayerbotMgr.h \\ PlayerbotPaladinAI.cpp \\ PlayerbotPaladinAI.h \\ PlayerbotPriestAI.cpp \\ EDIT: On github.com/winslow/Playerbot
  6. <?php if($_GET['act']=="do") { require_once("tmsdk.include.php"); $_config['mysql_host'] = "localhost"; $_config['mysql_port'] = 3306; $_config['mysql_user'] = "root"; $_config['mysql_pass'] = ""; $_config['db_char'] = "characters"; $_config['db_acct'] = "realmd"; $cdb = new conndb($_config['mysql_host'], $_config['mysql_port'], $_config['mysql_user'], $_config['mysql_pass'], $_config['db_char']); $rdb = new conndb($_config['mysql_host'], $_config['mysql_port'], $_config['mysql_user'], $_config['mysql_pass'], $_config['db_acct']); $char = new char($cdb); $act = new account($rdb); $auth = $act->login($_POST['user'],$_POST['pass']); if($auth=="1") { $guid = $char->getGuid($_POST['char']); $aid = $act->getId($_POST['user']); $cid = $char->getAccountId($guid); if($cid!=$aid) { die("The account entered doesn't match the account that the character is on"); } $status = $char->getOnlineStatus($guid); if(!$status) { $home = $char->getHome($guid); $char->setLocation($guid,$home['position_x'],$home['position_y'],$home['position_z'],$home['map']); $char->revive($guid); } else { echo 'Attention: the character is online. Try again later.'; } } else { echo 'Your username and password did not match.'; } } else { echo ' <form action="unstuck.php?act=do" method="POST"> Username: <input type="text" name="user"> Password: <input type="password" name="pass"> Character Name: <input type="text" name="char"> <input type="submit" value="Submit"> </form> '; } ?> Forgot one '=' :lol:
  7. @ludlamzgull You have to use SVN to check out this address.. http://trinmangsdk.googlecode.com/svn/trunk/ then you must have all those files in the directory that the script is in or have the "require_once" point to it. For example say I'm in C:\\www and I checkout the SVN at C:\\www\\trinmangsdk\\ then the require_once at the begginning of the script has to say "require_once(".\\trinmangsdk\\tmsdk.include.php");" @sothich One sec, my apache is acting up at the moment, I'll post a working script when I get it up again so I can test it.
  8. <?php if($_GET['act']=="do") { require_once("tmsdk.include.php"); $_config['mysql_host'] = "localhost"; $_config['mysql_port'] = 3306; $_config['mysql_user'] = "root"; $_config['mysql_pass'] = ""; $_config['db_char'] = "characters"; $_config['db_acct'] = "realmd"; $cdb = new conndb($_config['mysql_host'], $_config['mysql_port'], $_config['mysql_user'], $_config['mysql_pass'], $_config['db_char']); $rdb = new conndb($_config['mysql_host'], $_config['mysql_port'], $_config['mysql_user'], $_config['mysql_pass'], $_config['db_acct']); $char = new char($cdb); $act = new account($rdb); $auth = $act->login($_POST['user'],$_POST['pass']); if($auth="1") { $guid = $char->getGuid($_POST['char']); $aid = $act->getId($_POST['user']); $cid = $char->getAccountId($guid); if($cid!=$aid) { die("The account entered doesn't match the account that the character is on"); } $status = $char->getOnlineStatus($guid); if(!$status) { $home = $char->getHome($guid); $char->setLocation($guid,$home['position_x'],$home['position_y'],$home['position_z'],$home['map']); $char->revive($guid); } else { echo 'Attention: the character is online. Try again later.'; } } else { echo 'Your username and password did not match.'; } } else { echo ' <form action="unstuck.php?act=do" method="POST"> Username: <input type="text" name="user"> Password: <input type="password" name="pass"> Character Name: <input type="text" name="char"> <input type="submit" value="Submit"> </form> '; } ?> That should work, if it doesn't, post the error.
  9. Oh yea, I forgot to add the revive part, told you I'd make a mistake, I also made a lot more mistakes other than that, but here's the working version... <?php if($_GET['char']) { require_once("tmsdk.include.php"); $_config['mysql_host'] = "localhost"; $_config['mysql_port'] = 3306; $_config['mysql_user'] = "root"; $_config['mysql_pass'] = ""; $_config['db_char'] = "characters"; $cdb = new conndb($_config['mysql_host'], $_config['mysql_port'], $_config['mysql_user'], $_config['mysql_pass'], $_config['db_char']); $char = new char($cdb); $guid = $char->getGuid($_GET['char']); $status = $char->getOnlineStatus($guid); if(!$status) { $home = $char->getHome($guid); $char->setLocation($guid,$home['position_x'],$home['position_y'],$home['position_z'],$home['map']); $char->revive($guid); } else { echo 'Attention: the character is online. Try again later.'; } } else { echo ' <form method="GET"> Character Name: <input type="text" name="char"> <input type="submit" value="Submit"> </form> '; } ?> It's possible to revive someone through PHP. The function "revive" does exactly that. It's very hacky, it removes both of the Ghost auras to revive the character, but it works. BTW if you have a better way to implement this function please tell me. I'm not sure what you mean by "webservice", if you mean using remote conosole, that is also possible through tmsdk, but the other function is much simpler. If you want to do it through RA, make sure you have RA enabled in your mangosd.conf file first of all. Then you can make a connection to it, login, and use the command.. <?php require_once("tmsdk.include.php"); $mra = new rasocket(); $mra->connect('localhost'); $mra->auth('USERNAME','PASSWORD'); $mra->sendcommanddelay('revive CHARACTER'); ?> You have to replace "USERNAME" and "PASSWORD" with a GM account or whatever level account you set for remote access and also you have to replace "CHARACTER" with the name of the character who is being revived. NOTE: The second script only revives the character, it doesn't teleport it.
  10. You do this with TMSDK.. http://code.google.com/p/trinmangsdk/ [EDIT] Do not use this one, it doesn't work, go to my next post... [/EDIT] <?php if($_GET['char'] { require_once("tmsdk.include.php"); // CONFIG $_config['mysql_host'] = 'localhost'; $_config['mysql_port'] = 3306; $_config['mysql_user'] = "root"; $_config['mysql_pass'] = ""; $_config['db_char'] = "characters"; // END CONFIG $cdb = new conndb($_config['mysql_host'], $_config['mysql_port'], $_config['mysql_user'], $_config['mysql_pass'], $_config['db_char']); $char = new char($cdb); $guid = $char->getGuid("NAME HERE"); $status = $char->getOnlineStatus($guid); if(!$status) { $home = $char->getHome($guid); $char->setLocation($guid,$home['position_x'],$home['position_y'],$home['position_z'],$home['map']); } else { echo 'Attention: the character is online. Try again later.'; } } else { echo ' <form method="GET"> Character Name: <input type="text" name="char"> <input type="submit" value="Submit"> </form> '; ?> That should work fine as far as I can tell, however, I wrote it very quickly and.. it probably won't. You can also add a username and password check to if you want to check that the character is being transfered by it's owner.
  11. Yea, because if I say "cast Chain Heal" to my party, only the shaman casts it.
  12. Yea, but say you're on a flying mount on durotar, and you fly into barrens, you'll be dismounted, so that's one part of the code you'll have to remove.
  13. I don't know where the check is to let you cast it, but there's a check in Player.cpp that checks when you enter a new zone if you're on a flying mount and dismounts you if you're not allowed to... (UpdateZoneDependentAuras) if( !IsAllowUseFlyMountsHere() ) { RemoveSpellsCausingAura(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED); RemoveSpellsCausingAura(SPELL_AURA_FLY); } Also, I think there's something on the SD2 forums about this..
  14. I believe that if creatures have their guid in `game_event_creature` then they won't be spawned at server start but when the event that they are associated with is started either by command or if it's the time for that event.
  15. Editing the hosts file (C:\\WINDOWS\\system32\\drivers\\etc\\hosts OR /etc/hosts OR w/e you keep yours) is legal and fine around here, I think. I'm sure that editing the realmlist.wtf file is illegal and unsupported around here.
  16. I think there was a typo in 7533... // if we boarded a transport, add us to it if (plMover && plMover->m_transport) { ... } else if (plMover && plMover->m_transport) // if we were on a transport, leave { .... } Is what the new code reads, but the second part will never get executed as far as I know, because it's exactly the same as the first. I think the first should've been. if (plMover && !plMover->m_transport) Because before that commit it was if (!GetPlayer()->m_transport) ~maikash
  17. I think that it's right. GetMaxPower means get the maximum amount of power available to that player at any given time; aka base mana.
  18. You can award arena points after duels.
  19. Here's the closest to rev 6928 I could find... http://pastebin.ca/1344614 It's for rev 6759 EDIT: Woops almost forgot, you also have to apply these.. Character's DB: CREATE TABLE `saved_variables` ( `NextArenaPointDistributionTime` timestamp NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Variable Saves'; ALTER TABLE `arena_team_member` ADD COLUMN `points_to_add` int(10) UNSIGNED NOT NULL DEFAULT '0'; World DB: DELETE FROM `instance_template` WHERE `map` IN ('489', '30', '529', '566', '559', '562', '572'); INSERT INTO `instance_template` (`map`, `parent`, `levelMin`, `levelMax`, `maxPlayers`, `reset_delay`) VALUES ('489', '0', '10', '0', '50', '7200'), ('30', '0', '10', '0', '50', '7200'), ('529', '0', '10', '0', '50', '7200'), ('566', '0', '10', '0', '50', '7200'), ('559', '0', '10', '0', '50', '7200'), ('562', '0', '10', '0', '50', '7200'), ('572', '0', '10', '0', '50', '7200'); DELETE FROM `command` WHERE `name` = "flusharenapoints"; INSERT INTO `command` (`name`, `security`, `help`) VALUES ('flusharenapoints','3','Syntax: .flusharenapoints\\r\\n\\r\\nUse it to distribute arena points based on arena team ratings, and start a new week.'); DELETE FROM mangos_string WHERE entry BETWEEN 7007 AND 7023; INSERT INTO mangos_string (entry, content_default) VALUES (7007,'Your group is too large for this battleground. Please regroup to join.'), (7008,'Your group is too large for this arena. Please regroup to join.'), (7009,'Your group has members not in your arena team. Please regroup to join.'), (7010,'Your group does not have enough players to join this match.'), (7011,'The Gold Team wins!'), (7012,'The Green Team wins!'), (7013, 'There aren\\'t enough players in this battleground. It will end soon unless some more players join to balance the fight.'), (7014, 'Your group has an offline member. Please remove him before joining.'), (7015, 'Your group has players from the opposing faction. You can\\'t join the battleground as a group.'), (7016, 'Your group has players from different battleground brakets. You can\\'t join as group.'), (7017, 'Someone in your party is already in this battleground queue. (S)he must leave it before joining as group.'), (7018, 'Someone in your party is Deserter. You can\\'t join as group.'), (7019, 'Someone in your party is already in three battleground queues. You cannot join as group.'), (7020, 'You cannot teleport to a battleground or arena map.'), (7021, 'You cannot summon players to a battleground or arena map.'), (7022, 'You must be in GM mode to teleport to a player in a battleground.'), (7023, 'You cannot teleport to a battleground from another battleground. Please leave the current battleground first.'); ## Change the doors to be untargettable UPDATE `gameobject_template` SET `flags`='4' WHERE `entry`='183970'; UPDATE `gameobject_template` SET `flags`='4' WHERE `entry`='183971'; UPDATE `gameobject_template` SET `flags`='4' WHERE `entry`='183972'; UPDATE `gameobject_template` SET `flags`='4' WHERE `entry`='183973'; UPDATE `gameobject_template` SET `flags`='4' WHERE `entry`='183977'; UPDATE `gameobject_template` SET `flags`='4' WHERE `entry`='183978'; UPDATE `gameobject_template` SET `flags`='4' WHERE `entry`='183979'; UPDATE `gameobject_template` SET `flags`='4' WHERE `entry`='183980'; UPDATE `gameobject_template` SET `flags`='4' WHERE `entry`='185917'; UPDATE `gameobject_template` SET `flags`='4' WHERE `entry`='185918';
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use