wpdev-commits Mailing List for Wolfpack Emu (Page 4)
Brought to you by:
rip,
thiagocorrea
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(14) |
Aug
(121) |
Sep
(256) |
Oct
(59) |
Nov
(73) |
Dec
(120) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(259) |
Feb
(381) |
Mar
(501) |
Apr
(355) |
May
(427) |
Jun
(270) |
Jul
(394) |
Aug
(412) |
Sep
(724) |
Oct
(578) |
Nov
(65) |
Dec
|
From: Sebastian H. <dar...@us...> - 2004-10-30 11:04:53
|
Update of /cvsroot/wpdev/wolfpack/network In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6840/network Modified Files: uosocket.cpp Log Message: Fixed shop restock. Index: uosocket.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v retrieving revision 1.434 retrieving revision 1.435 diff -C2 -d -r1.434 -r1.435 *** uosocket.cpp 29 Oct 2004 23:44:05 -0000 1.434 --- uosocket.cpp 30 Oct 2004 11:04:43 -0000 1.435 *************** *** 2647,2659 **** bool restockNow = false; ! if ( pItem->layer() == cBaseChar::BuyRestockContainer ) ! { if ( pItem->hasTag( "last_restock_time" ) ) { ! if ( uint( pItem->getTag( "last_restock_time" ).toInt() ) + Config::instance()->shopRestock() * 60 * MY_CLOCKS_PER_SEC < Server::instance()->time() ) restockNow = true; ! } ! else pItem->setTag( "last_restock_time", cVariant( int( Server::instance()->time() ) ) ); } --- 2647,2660 ---- bool restockNow = false; ! if (pItem->layer() == cBaseChar::BuyRestockContainer) { if ( pItem->hasTag( "last_restock_time" ) ) { ! if ( uint( pItem->getTag( "last_restock_time" ).toInt() ) + Config::instance()->shopRestock() * 60 * MY_CLOCKS_PER_SEC < Server::instance()->time() ) { restockNow = true; ! pItem->setTag( "last_restock_time", cVariant( int( Server::instance()->time() ) ) ); ! } ! } else { pItem->setTag( "last_restock_time", cVariant( int( Server::instance()->time() ) ) ); + } } |
From: Sebastian H. <dar...@us...> - 2004-10-30 11:04:53
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6840 Modified Files: ChangeLog serverconfig.cpp Log Message: Fixed shop restock. Index: serverconfig.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/serverconfig.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** serverconfig.cpp 15 Oct 2004 00:53:10 -0000 1.16 --- serverconfig.cpp 30 Oct 2004 11:04:42 -0000 1.17 *************** *** 160,164 **** tamedDisappear_ = getNumber( "General", "Tamed Disappear", 0, true ); houseInTown_ = getNumber( "General", "House In Town", 0, true ); ! shopRestock_ = getNumber( "General", "Shop Restock", 1, true ); quittime_ = getNumber( "General", "Char Time Out", 300, true ); cacheMulFiles_ = getBool( "General", "Cache Mul Files", true, true ); --- 160,164 ---- tamedDisappear_ = getNumber( "General", "Tamed Disappear", 0, true ); houseInTown_ = getNumber( "General", "House In Town", 0, true ); ! shopRestock_ = getNumber( "General", "Shop Restock", 30, true ); quittime_ = getNumber( "General", "Char Time Out", 300, true ); cacheMulFiles_ = getBool( "General", "Cache Mul Files", true, true ); Index: ChangeLog =================================================================== RCS file: /cvsroot/wpdev/wolfpack/ChangeLog,v retrieving revision 1.126 retrieving revision 1.127 diff -C2 -d -r1.126 -r1.127 *** ChangeLog 29 Oct 2004 23:44:04 -0000 1.126 --- ChangeLog 30 Oct 2004 11:04:42 -0000 1.127 *************** *** 15,18 **** --- 15,19 ---- - Implemented onSnooping that is called for the owner and for the player trying to open a container. + - Fixed shop restock. Wolfpack 12.9.12 Beta (18. October 2004) |
From: Sebastian H. <dar...@us...> - 2004-10-29 23:44:21
|
Update of /cvsroot/wpdev/wolfpack/network In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20446/network Modified Files: uosocket.cpp Log Message: Source Updates for Player vendors. Index: uosocket.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v retrieving revision 1.433 retrieving revision 1.434 diff -C2 -d -r1.433 -r1.434 *** uosocket.cpp 26 Oct 2004 18:37:35 -0000 1.433 --- uosocket.cpp 29 Oct 2004 23:44:05 -0000 1.434 *************** *** 3129,3148 **** } ! // Cant use stuff that isn't in your pack. ! if ( item->container() && item->container()->isItem() && item->type() != 1 && !item->isInWorld() ) { ! P_CHAR pc_p = item->getOutmostChar(); ! if ( pc_p && _player != pc_p ) ! return false; } ! else if ( item->container() && item->container()->isChar() && item->type() != 1 && !item->isInWorld() ) ! { ! // in a character. ! P_CHAR pc_p = dynamic_cast<P_CHAR>( item->container() ); ! if ( pc_p != NULL ) ! if ( pc_p != _player && item->layer() != 15 && item->type() != 1 ) ! return false; } // Criminal for looting an innocent corpse & unhidden if not owner... if ( item->corpse() ) --- 3129,3170 ---- } ! // Dead ppl can only use ankhs ! if ( _player->isDead() && item->type() != 16 ) { ! sysMessage( tr( "Your ghostly hand passes trough the object." ) ); ! return false; } ! ! // Cant use stuff that isn't in your pack. ! P_CHAR pOutmostChar = item->getOutmostChar(); ! ! // It's not a container and not on use, assume it has a special behaviour that is not activated ! // using snooping ! if (pOutmostChar && pOutmostChar != _player && item->type() != 1) { ! bool allowed = false; ! ! PyObject *args = Py_BuildValue("(NN)", _player->getPyObject(), item->getPyObject()); ! ! if (_player->callEventHandler(EVENT_REMOTEUSE, args)) { ! allowed = true; ! } ! ! if (!allowed && pOutmostChar->callEvent(EVENT_REMOTEUSE, args)) { ! allowed = true; ! } ! ! Py_DECREF(args); ! ! if (!allowed) ! return false; } + // Call both events here + if ( _player->onUse( item ) ) + return true; + + if ( item->onUse( _player ) ) + return true; + // Criminal for looting an innocent corpse & unhidden if not owner... if ( item->corpse() ) *************** *** 3182,3192 **** } - // Dead ppl can only use ankhs - if ( _player->isDead() && item->type() != 16 ) - { - sysMessage( tr( "Your ghostly hand passes trough the object." ) ); - return false; - } - // You can only use equipment on your own char if ( !_player->isGM() && item->container() && item->container()->isChar() && item->container() != _player ) --- 3204,3207 ---- *************** *** 3199,3209 **** } - // Call both events here - if ( _player->onUse( item ) ) - return true; - - if ( item->onUse( _player ) ) - return true; - // Check item behaviour by it's tpye switch ( item->type() ) --- 3214,3217 ---- |
From: Sebastian H. <dar...@us...> - 2004-10-29 23:44:20
|
Update of /cvsroot/wpdev/wolfpack/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20446/python Modified Files: item.cpp Log Message: Source Updates for Player vendors. Index: item.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/python/item.cpp,v retrieving revision 1.139 retrieving revision 1.140 diff -C2 -d -r1.139 -r1.140 *** item.cpp 17 Oct 2004 01:20:20 -0000 1.139 --- item.cpp 29 Oct 2004 23:44:05 -0000 1.140 *************** *** 317,320 **** --- 317,321 ---- \param color Defaults to 0. The color of the object to consume + \return How many items have not been deleted. */ static PyObject* wpItem_useresource( wpItem* self, PyObject* args ) *************** *** 681,685 **** QString name = self->pItem->getName( true ); ! return PyString_FromString( name.latin1() ); } --- 682,686 ---- QString name = self->pItem->getName( true ); ! return QString2Python( name ); } |
From: Sebastian H. <dar...@us...> - 2004-10-29 23:44:19
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20446 Modified Files: ChangeLog pythonscript.cpp pythonscript.h skills.cpp Log Message: Source Updates for Player vendors. Index: pythonscript.h =================================================================== RCS file: /cvsroot/wpdev/wolfpack/pythonscript.h,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** pythonscript.h 27 Oct 2004 14:06:53 -0000 1.45 --- pythonscript.h 29 Oct 2004 23:44:04 -0000 1.46 *************** *** 92,95 **** --- 92,97 ---- EVENT_CHECKVICTIM, EVENT_DODAMAGE, + EVENT_SNOOPING, + EVENT_REMOTEUSE, EVENT_COUNT, }; Index: skills.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/skills.cpp,v retrieving revision 1.234 retrieving revision 1.235 diff -C2 -d -r1.234 -r1.235 *** skills.cpp 21 Oct 2004 12:11:18 -0000 1.234 --- skills.cpp 29 Oct 2004 23:44:04 -0000 1.235 *************** *** 285,288 **** --- 285,312 ---- void cSkills::Snooping( P_PLAYER player, P_ITEM container ) { + P_CHAR owner = container->getOutmostChar(); + + if (!owner) + return; // Snooping into something thats not equipped?! + + PyObject *args = Py_BuildValue("(NNN)", owner->getPyObject(), container->getPyObject(), player->getPyObject()); + + // Event prüfen + if (player->canHandleEvent(EVENT_SNOOPING)) { + if (player->callEventHandler(EVENT_SNOOPING, args)) { + Py_DECREF(args); + return; + } + } + + if (owner->canHandleEvent(EVENT_SNOOPING)) { + if (owner->callEventHandler(EVENT_SNOOPING, args)) { + Py_DECREF(args); + return; + } + } + + Py_DECREF(args); + cUOSocket* socket = player->socket(); Index: pythonscript.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/pythonscript.cpp,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** pythonscript.cpp 27 Oct 2004 14:37:25 -0000 1.57 --- pythonscript.cpp 29 Oct 2004 23:44:04 -0000 1.58 *************** *** 580,583 **** --- 580,604 ---- "onDoDamage", + /* + \event onSnooping + \param owner The owner of the container that is trying to be looked into. + \param item The item that is being snooped into. + \param player The player trying to snoop into the container. + \return True if you want to handle this skill use. + \condition Triggered for the player trying to snoop first, then for the owner of the + container that is being snooped into. + */ + "onSnooping", + + /* + \event onRemoteUse + \param player The player who used the item. + \param item The item that was used. + \return Return True if the item may be used, False otherwise. + \condition Triggered when a player tries to use an item that is within the belongings of another character. + \notes This even is called for the using player, then for the current owner of the item. + */ + "onRemoteUse", + 0 }; Index: ChangeLog =================================================================== RCS file: /cvsroot/wpdev/wolfpack/ChangeLog,v retrieving revision 1.125 retrieving revision 1.126 diff -C2 -d -r1.125 -r1.126 *** ChangeLog 27 Oct 2004 16:19:42 -0000 1.125 --- ChangeLog 29 Oct 2004 23:44:04 -0000 1.126 *************** *** 10,13 **** --- 10,18 ---- - Implemented a walktest command for testing walking. - Fixed several other walking bugs. + - Implemented onRemoteUse for checking if an object that is in the belonging + of another char may be used. First called for the using char, then for the + owner of the object. + - Implemented onSnooping that is called for the owner and for the player trying to + open a container. Wolfpack 12.9.12 Beta (18. October 2004) |
From: Richard M. <dr...@us...> - 2004-10-29 23:30:42
|
Update of /cvsroot/wpdev/xmlscripts/documentation/webroot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17607/documentation/webroot Modified Files: FAQ.html Log Message: Update, on Correa's advise :) Index: FAQ.html =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/documentation/webroot/FAQ.html,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** FAQ.html 29 Oct 2004 22:12:31 -0000 1.13 --- FAQ.html 29 Oct 2004 23:30:31 -0000 1.14 *************** *** 475,479 **** The definition files, or all the *.xml files you receive with the xmlscripts package are controlled through a tree style system.<br /> <br /> ! The base of the tree is:<br /> -> ./definitions/index.xml<br /> <br /> --- 475,479 ---- The definition files, or all the *.xml files you receive with the xmlscripts package are controlled through a tree style system.<br /> <br /> ! The root of the tree is:<br /> -> ./definitions/index.xml<br /> <br /> |
From: Richard M. <dr...@us...> - 2004-10-29 22:12:41
|
Update of /cvsroot/wpdev/xmlscripts/documentation/webroot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32554/documentation/webroot Modified Files: ChangeLog.wolfpack FAQ.html Log Message: FAQ.html updates. Index: FAQ.html =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/documentation/webroot/FAQ.html,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** FAQ.html 22 Aug 2004 04:35:43 -0000 1.12 --- FAQ.html 29 Oct 2004 22:12:31 -0000 1.13 *************** *** 19,22 **** --- 19,23 ---- <br /> Table of Contents<br /> + <!-- Begin Table of Contents --> <ul class="toc"> <li><a href="./FAQ.html#01">What is new in Wolfpack 13.x.x?</a></li> *************** *** 45,49 **** --- 46,63 ---- <li><a href="./FAQ.html#19">Why is _______ feature is not working the same as on Sphere?</a></li> <li><a href="./FAQ.html#20">I'm using the CVS scripts with a release binary, why do I get errors?</a></li> + <li><a href="./FAQ.html#21">Why does nothing (vendors, npcs, items) spawn?</a></li> + <li><a href="./FAQ.html#22">How do I add/edit/remove accounts?</a></li> + <li><a href="./FAQ.html#23">How do I manage my definition (*.xml) files?</a></li> + <li><a href="./FAQ.html#24">How do I manage my script (*.py) files?</a></li> + <!-- + <li><a href="./FAQ.html#25"></a></li> + <li><a href="./FAQ.html#26"></a></li> + <li><a href="./FAQ.html#27"></a></li> + <li><a href="./FAQ.html#28"></a></li> + <li><a href="./FAQ.html#29"></a></li> + <li><a href="./FAQ.html#30"></a></li> + --> </ul> + <!-- End Table of Contents --> </div> <br /><hr /><br /> *************** *** 272,276 **** </li> <!-- Answer 11 --> ! <li><a name="11" class="question">I found a bug! What can I do?</a><br /> <div class="answer"> Before anything, we recommend that you check the bug tracker to see if it has already been reported.<br /> --- 286,290 ---- </li> <!-- Answer 11 --> ! <li><a name="11" class="question">I found a bug! What can I do?</a><br /> <div class="answer"> Before anything, we recommend that you check the bug tracker to see if it has already been reported.<br /> *************** *** 285,289 **** </li> <!-- Answer 12 --> ! <li><a name="12" class="question">I wrote some scripts that were missing! What can I do with it?</a><br /> <div class="answer"> First of all, we are trying to conform to an OSI like world. So please check that your creation(s) are along --- 299,303 ---- </li> <!-- Answer 12 --> ! <li><a name="12" class="question">I wrote some scripts that were missing! What can I do with it?</a><br /> <div class="answer"> First of all, we are trying to conform to an OSI like world. So please check that your creation(s) are along *************** *** 301,305 **** <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> <!-- Answer 13 --> ! <li><a name="13" class="question">Where can I find the latest CVS Snapshots?</a><br /> <div class="answer"> You can find the latest CVS snapshots at: --- 315,319 ---- <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> <!-- Answer 13 --> ! <li><a name="13" class="question">Where can I find the latest CVS Snapshots?</a><br /> <div class="answer"> You can find the latest CVS snapshots at: *************** *** 309,313 **** </li> <!-- Answer 14 --> ! <li><a name="14" class="question">How do I connect to Wolfpack?</a><br /> <div class="answer"> The easiest way is to make sure your server settings and client settings are correctly configured.<br /> --- 323,327 ---- </li> <!-- Answer 14 --> ! <li><a name="14" class="question">How do I connect to Wolfpack?</a><br /> <div class="answer"> The easiest way is to make sure your server settings and client settings are correctly configured.<br /> *************** *** 344,348 **** </li> <!-- Answer 15 --> ! <li><a name="15" class="question">Help! I can't login?!</a><br /> <div class="answer"> First of all, please check out "<a href="./FAQ.html#14">How do I connect to Wolfpack?</a>" to see if that --- 358,362 ---- </li> <!-- Answer 15 --> ! <li><a name="15" class="question">Help! I can't login?!</a><br /> <div class="answer"> First of all, please check out "<a href="./FAQ.html#14">How do I connect to Wolfpack?</a>" to see if that *************** *** 358,362 **** </li> <!-- Answer 16 --> ! <li><a name="16" class="question">What ports should I have open?</a><br /> <div class="answer"> By default, Wolfpack uses TCP ports 2592 and 2593.<br /> --- 372,376 ---- </li> <!-- Answer 16 --> ! <li><a name="16" class="question">What ports should I have open?</a><br /> <div class="answer"> By default, Wolfpack uses TCP ports 2592 and 2593.<br /> *************** *** 366,370 **** </li> <!-- Answer 17 --> ! <li><a name="17" class="question">How can I route to my server behind a router?</a><br /> <div class="answer"> Please Note the following: --- 380,384 ---- </li> <!-- Answer 17 --> ! <li><a name="17" class="question">How can I route to my server behind a router?</a><br /> <div class="answer"> Please Note the following: *************** *** 393,397 **** </li> <!-- Answer 18 --> ! <li><a name="18" class="question">When will _______ bug or problem be fixed?</a><br /> <div class="answer"> The simple answer to this is, when they get fixed.<br /><br /> --- 407,411 ---- </li> <!-- Answer 18 --> ! <li><a name="18" class="question">When will _______ bug or problem be fixed?</a><br /> <div class="answer"> The simple answer to this is, when they get fixed.<br /><br /> *************** *** 406,410 **** </li> <!-- Answer 19 --> ! <li><a name="19" class="question">Why is _______ feature is not working the same as on Sphere?</a><br /> <div class="answer"> Wolfpack is <span style="font-weight:bold;">NOT</span> Sphere.<br /><br /> --- 420,424 ---- </li> <!-- Answer 19 --> ! <li><a name="19" class="question">Why is _______ feature is not working the same as on Sphere?</a><br /> <div class="answer"> Wolfpack is <span style="font-weight:bold;">NOT</span> Sphere.<br /><br /> *************** *** 416,420 **** </li> <!-- Answer 20 --> ! <li><a name="20" class="question">I'm using the CVS scripts with a release binary, why do I get errors?</a><br /> <div class="answer"> This is a common problem we see. People need to understand that CVS scripts are meant to be --- 430,434 ---- </li> <!-- Answer 20 --> ! <li><a name="20" class="question">I'm using the CVS scripts with a release binary, why do I get errors?</a><br /> <div class="answer"> This is a common problem we see. People need to understand that CVS scripts are meant to be *************** *** 427,430 **** --- 441,560 ---- <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> </li> + <!-- Answer 21 --> + <li><a name="21" class="question">Why does nothing (vendors, npcs, items) spawn?</a><br /> + <div class="answer"> + By default, spawn scripts are not enabled with the Wolfpack Beta releases. + Spawn scripts are incomplete right now, with the exception of most vendors.<br /> + However, if you wish to enable them look in:<br /> + ./definitions/spawnregions/facet_name/index.xml for a list of enabled scripts.<br /> + </div> + <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> + </li> + <!-- Answer 22 --> + <li><a name="22" class="question">How do I add/edit/remove accounts?</a><br /> + <div class="answer"> + By default, Wolfpack will create a default account with the following properties:<br /> + Username: admin<br /> + Password: admin<br /> + <br /> + Using this, there are two ways to modify accounts.<br /> + The first, and easiest would be to use the Web Admin control panel.<br /> + To access Web Admin type in http://127.0.0.1:2594/ into your browser of choice.<br /> + <br /> + Substitue 127.0.0.1 for your shard's IP if it is not on your current system. + The rest should be obvious.<br /> + <br /> + The second method would be to login with your UO client, and use the + <a href="http://doc.wpdev.org/command_account.html">account command</a> to modify accounts. + </div> + <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> + </li> + <!-- Answer 23 --> + <li><a name="23" class="question">How do I manage my definition (*.xml) files?</a><br /> + <div class="answer"> + The definition files, or all the *.xml files you receive with the xmlscripts package are controlled through a tree style system.<br /> + <br /> + The base of the tree is:<br /> + -> ./definitions/index.xml<br /> + <br /> + From this file, you will find a list of included files, and in every sub folder + there should be another index.xml file that contains the files within that folder.<br /> + <br /> + Example:<br /> + -> ./definitions/index.xml<br /> +   -> ./definitions/spawnregions/index.xml<br /> +     -> ./definitions/spawnregions/trammel/index.xml<br /> +       -> ./definitions/spawnregions/trammel/vendors.xml<br /> + <br /> + You can also define the master index file in wolfpack.xml, as well as add custom ones.<br /> + <br /> + Example in wolfpack.xml:<br /> + <div class="bash"> +   <group name="General"><br /> +     <option key="Definitions" value="definitions/index.xml;custom/definitions/index.xml" /><br /> +   </group><br /> + </div> + </div> + <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> + </li> + <!-- Answer 24 --> + <li><a name="24" class="question">How do I manage my script (*.py) files?</a><br /> + <div class="answer"> + Script files are based off the + <a href="http://www.python.org/doc/">Python language</a>.<br /> + So before tampering with them you may want to understand what you are doing.<br /> + Also, please read the <a href="http://doc.wpdev.org/">Wolfpack Documentation</a> on script events.<br /> + <br /> + However, to manage them, the default active script index is found in:<br /> + -> ./definitions/index.xml<br /> +   -> ./definitions/scripts.xml<br /> + <br /> + However, all scripts are contained in the ./scripts/ folder.<br /> + <br /> + There is a setting in wolfpack.xml where you can add python search paths. This is for importing scripts. + <br /> + Example in wolfpack.xml:<br /> + <div class="bash"> +   <group name="General"><br /> +     <option key="Python Searchpath" value="./scripts;./custom;." /><br /> +   </group><br /> + </div> + <br /> + Again, things are in a tree style form for organization. + </div> + <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> + </li> + <!-- + <li><a name="25" class="question"></a><br /> + <div class="answer"> + </div> + <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> + </li> + <li><a name="26" class="question"></a><br /> + <div class="answer"> + </div> + <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> + </li> + <li><a name="27" class="question"></a><br /> + <div class="answer"> + </div> + <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> + </li> + <li><a name="28" class="question"></a><br /> + <div class="answer"> + </div> + <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> + </li> + <li><a name="29" class="question"></a><br /> + <div class="answer"> + </div> + <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> + </li> + <li><a name="30" class="question"></a><br /> + <div class="answer"> + </div> + <a href="./FAQ.html#top" style="font-size:9pt;">Return To Questions</a><br /><br /> + </li> + --> </ul> <a href="index.html" style="font-size:9pt;">Return To Overview</a> Index: ChangeLog.wolfpack =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/documentation/webroot/ChangeLog.wolfpack,v retrieving revision 1.175 retrieving revision 1.176 diff -C2 -d -r1.175 -r1.176 *** ChangeLog.wolfpack 29 Oct 2004 16:52:29 -0000 1.175 --- ChangeLog.wolfpack 29 Oct 2004 22:12:31 -0000 1.176 *************** *** 25,28 **** --- 25,29 ---- - Implemented shrink command. * Misc. Changes: + - FAQ Updates. * Known Issues, Bugs, and Missing Features: - Some skills are still incomplete. |
From: Klaus M. <nad...@us...> - 2004-10-29 16:53:10
|
Update of /cvsroot/wpdev/xmlscripts/documentation/webroot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26254/documentation/webroot Modified Files: ChangeLog.wolfpack Log Message: implemented shrink command Index: ChangeLog.wolfpack =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/documentation/webroot/ChangeLog.wolfpack,v retrieving revision 1.174 retrieving revision 1.175 diff -C2 -d -r1.174 -r1.175 *** ChangeLog.wolfpack 28 Oct 2004 19:17:19 -0000 1.174 --- ChangeLog.wolfpack 29 Oct 2004 16:52:29 -0000 1.175 *************** *** 23,26 **** --- 23,27 ---- - Fixed a skill check bug with lumberjacking. - Implemented shrink potions. + - Implemented shrink command. * Misc. Changes: * Known Issues, Bugs, and Missing Features: |
From: Klaus M. <nad...@us...> - 2004-10-29 16:52:53
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26254/scripts Modified Files: figurine.py Log Message: implemented shrink command Index: figurine.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/figurine.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** figurine.py 28 Oct 2004 19:13:17 -0000 1.4 --- figurine.py 29 Oct 2004 16:52:30 -0000 1.5 *************** *** 1,4 **** import wolfpack ! from wolfpack import console from wolfpack.consts import SND_IDLE, ANIM_CASTDIRECTED --- 1,4 ---- import wolfpack ! from wolfpack import console, tr from wolfpack.consts import SND_IDLE, ANIM_CASTDIRECTED *************** *** 76,80 **** # def shrink(socket, command, arguments): ! pass # --- 76,116 ---- # def shrink(socket, command, arguments): ! socket.sysmessage( 'What do you want to shrink?' ) ! socket.attachtarget( 'figurine.shrinktarget', [] ) ! #pass ! ! def shrinktarget( char, args, target ): ! if not target.char: ! char.socket.sysmessage(tr('You can only shrink characters.')) ! return ! if target.char.player: ! char.socket.sysmessage(tr('You cannot shrink other players.')) ! return ! ! bodyinfo = wolfpack.bodyinfo(target.char.id) ! ! if bodyinfo['figurine'] <= 0 or bodyinfo['figurine'] >= 0x4000: ! char.socket.sysmessage(tr('You cannot shrink that.')) ! return ! ! target.char.sound(SND_IDLE) ! ! # Create a new figurine and make it newbie ! figurine = wolfpack.additem('%x' % bodyinfo['figurine']) ! figurine.newbie = True ! figurine.addscript('figurine') ! figurine.settag('pet', target.char.serial) ! figurine.color = target.char.skin ! figurine.name = target.char.name ! figurine.update() ! figurine.moveto(target.char.pos) ! #char.getbackpack().additem(figurine, True, False) # Random pos, no auto stacking ! figurine.update() ! ! target.char.removefromview() ! target.char.owner = None ! target.char.stablemaster = figurine.serial ! target.char.addscript('figurine') # This is a figurined NPC ! # |
From: Sebastian H. <dar...@us...> - 2004-10-29 14:49:37
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31000 Modified Files: potions.py Log Message: Fix for shrink potions, the input system and the alchemy tools Index: potions.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/potions.py,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** potions.py 28 Oct 2004 19:13:17 -0000 1.60 --- potions.py 29 Oct 2004 14:49:12 -0000 1.61 *************** *** 670,673 **** --- 670,674 ---- figurine.addscript('figurine') figurine.settag('pet', target.char.serial) + figurine.color = target.char.skin figurine.name = target.char.name figurine.update() |
From: Sebastian H. <dar...@us...> - 2004-10-29 14:49:37
|
Update of /cvsroot/wpdev/xmlscripts/scripts/skills In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31000/skills Modified Files: alchemy.py Log Message: Fix for shrink potions, the input system and the alchemy tools Index: alchemy.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/skills/alchemy.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** alchemy.py 16 Jul 2004 07:09:27 -0000 1.6 --- alchemy.py 29 Oct 2004 14:49:12 -0000 1.7 *************** *** 36,39 **** --- 36,40 ---- else: item.settag('remaining_uses', uses - 1) + item.resendtooltip() return True |
From: Sebastian H. <dar...@us...> - 2004-10-29 14:49:36
|
Update of /cvsroot/wpdev/xmlscripts/scripts/system In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31000/system Modified Files: input.py Log Message: Fix for shrink potions, the input system and the alchemy tools Index: input.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/system/input.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** input.py 21 Oct 2004 21:40:25 -0000 1.1 --- input.py 29 Oct 2004 14:49:13 -0000 1.2 *************** *** 12,15 **** --- 12,17 ---- import wolfpack + from wolfpack import console + from wolfpack.consts import * # *************** *** 27,35 **** def callEvent(item, event, args): scripts = item.scripts + item.basescripts.split(',') # Build the scriptlist for script in scripts: ! if not wolfpack.hasnamedevent(script, event): continue ! result = wolfpack.callnamedevent(script, event, args) if result: --- 29,45 ---- def callEvent(item, event, args): scripts = item.scripts + item.basescripts.split(',') # Build the scriptlist + for script in scripts: ! if len(script) == 0: continue ! try: ! if not wolfpack.hasnamedevent(script, event): ! continue ! ! result = wolfpack.callnamedevent(script, event, args) ! except: ! console.log(LOG_ERROR, "Error processing script %s.\n" % script) ! raise if result: |
From: Sebastian H. <dar...@us...> - 2004-10-29 14:49:36
|
Update of /cvsroot/wpdev/xmlscripts/definitions/items/equipment In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31051/items/equipment Modified Files: potions.xml Log Message: Fix for shrink potions Index: potions.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/items/equipment/potions.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** potions.xml 28 Oct 2004 19:13:08 -0000 1.14 --- potions.xml 29 Oct 2004 14:49:16 -0000 1.15 *************** *** 371,374 **** --- 371,375 ---- <item id="potion_shrink" inherit="potion_base"> <id>0xf0b</id> + <color>0x763</color> <name>a Shrink Potion</name> <category>Equipment\Potions\Shrink</category> *************** *** 381,385 **** <tag name="potiontype" value="25" type="int" /> <tag name="kegfill" value="100" type="int" /> ! <color>0x21</color> </item> --- 382,386 ---- <tag name="potiontype" value="25" type="int" /> <tag name="kegfill" value="100" type="int" /> ! <color>0x763</color> </item> |
From: Sebastian H. <dar...@us...> - 2004-10-29 06:23:47
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21785 Modified Files: equipment.py Log Message: fix Index: equipment.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/equipment.py,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** equipment.py 28 Oct 2004 16:04:40 -0000 1.48 --- equipment.py 29 Oct 2004 06:23:18 -0000 1.49 *************** *** 667,671 **** # Try to equip an item after calling onWearItem for it def onUse(player, item): ! if not char.gm and item.movable == 3: player.objectdelay = 0 return True --- 667,671 ---- # Try to equip an item after calling onWearItem for it def onUse(player, item): ! if not player.gm and item.movable == 3: player.objectdelay = 0 return True |
From: Sebastian H. <dar...@us...> - 2004-10-28 19:17:34
|
Update of /cvsroot/wpdev/xmlscripts/documentation/webroot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31290/webroot Modified Files: ChangeLog.wolfpack Log Message: Shrinking Index: ChangeLog.wolfpack =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/documentation/webroot/ChangeLog.wolfpack,v retrieving revision 1.173 retrieving revision 1.174 diff -C2 -d -r1.173 -r1.174 *** ChangeLog.wolfpack 28 Oct 2004 16:04:40 -0000 1.173 --- ChangeLog.wolfpack 28 Oct 2004 19:17:19 -0000 1.174 *************** *** 7,10 **** --- 7,11 ---- - Fixed leatherworkers and tanners not buying leather and hides. - Male NPCs now have a 75% chance of getting a beard when created. + - Made shrink potions craftable. * Python Script Changes: - Fixed bug #0000369. (Equip possible although item.movable = 3) *************** *** 21,24 **** --- 22,26 ---- - Fixed gainfactor for skills always beeing 1.0 - Fixed a skill check bug with lumberjacking. + - Implemented shrink potions. * Misc. Changes: * Known Issues, Bugs, and Missing Features: |
From: Sebastian H. <dar...@us...> - 2004-10-28 19:15:40
|
Update of /cvsroot/wpdev/xmlscripts/definitions/menus/crafting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30859/menus/crafting Modified Files: alchemy.xml Log Message: Shrink potions Index: alchemy.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/menus/crafting/alchemy.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** alchemy.xml 21 Sep 2004 13:18:35 -0000 1.4 --- alchemy.xml 28 Oct 2004 19:15:23 -0000 1.5 *************** *** 18,21 **** --- 18,27 ---- <menu id="ALCHEMY_CURE" /> <menu id="ALCHEMY_EXPLOSION" /> + <craft definition="potion_shrink" name="Shrink Potion"> + <alchemy min="800" max="1300" /> + <material id="f7a" amount="8" name="Black Pearls" /> + <material id="f86" amount="8" name="Mandrake Root" /> + <material id="f0e" amount="1" name="Empty Bottle" /> + </craft> </menu> |
From: Sebastian H. <dar...@us...> - 2004-10-28 19:13:57
|
Update of /cvsroot/wpdev/xmlscripts/scripts/commands In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30343/commands Modified Files: import.py Log Message: Shrink Index: import.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/import.py,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** import.py 22 Oct 2004 23:18:59 -0000 1.15 --- import.py 28 Oct 2004 19:13:17 -0000 1.16 *************** *** 97,101 **** warnings = '' count = 0 - for line in file: # Replace \r and \n's --- 97,100 ---- *************** *** 103,106 **** --- 102,106 ---- line = line.replace( "\n", "" ) + if len(line.split(' ')) != 5: continue |
From: Sebastian H. <dar...@us...> - 2004-10-28 19:13:44
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30343 Modified Files: figurine.py potions.py Log Message: Shrink Index: potions.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/potions.py,v retrieving revision 1.59 retrieving revision 1.60 diff -C2 -d -r1.59 -r1.60 *** potions.py 13 Oct 2004 22:38:29 -0000 1.59 --- potions.py 28 Oct 2004 19:13:17 -0000 1.60 *************** *** 1,3 **** --- 1,4 ---- + from wolfpack import tr import wolfpack import wolfpack.time *************** *** 7,15 **** from wolfpack.utilities import hex2dec, throwobject, energydamage, checkLoS from system import poison ! from wolfpack.consts import RED, ALCHEMY, STRENGTH_TIME, ANIM_FIDGET3, \ ! SOUND_DRINK1, SOUND_AGILITY_UP, AGILITY_TIME, POTION_GREATERHEAL_RANGE, \ ! POTION_HEAL_RANGE, POTION_LESSERHEAL_RANGE, MAGERY, \ ! POTION_LESSEREXPLOSION_RANGE, POTION_GREATEREXPLOSION_RANGE, \ ! POTION_EXPLOSION_RANGE, SOUND_STRENGTH_UP, HEAL_POT_DELAY --- 8,12 ---- from wolfpack.utilities import hex2dec, throwobject, energydamage, checkLoS from system import poison ! from wolfpack.consts import * *************** *** 41,45 **** 22: [ 1, 0, 0, 'Lesser Mana', 'A keg of Lesser Mana potions', 'potion_lessermana' ], # lesser mana 23: [ 1, 0, 0, 'Mana', 'A keg of Mana potions', 'potion_mana' ], # mana ! 24: [ 1, 0, 0, 'Greater Mana', 'A keg of Greater Mana potions', 'potion_greatermana' ] # greater mana } --- 38,43 ---- 22: [ 1, 0, 0, 'Lesser Mana', 'A keg of Lesser Mana potions', 'potion_lessermana' ], # lesser mana 23: [ 1, 0, 0, 'Mana', 'A keg of Mana potions', 'potion_mana' ], # mana ! 24: [ 1, 0, 0, 'Greater Mana', 'A keg of Greater Mana potions', 'potion_greatermana' ], # greater mana ! 25: [ True, False, True, 'Shrink', 'A keg of Shrink potions', 'potion_shrink' ], # shrink } *************** *** 58,62 **** socket = char.socket # Potions need to be on your body to use them, or in arms reach. ! if item.getoutmostchar() != char: char.message( "This potion is out of your reach..." ) return False --- 56,60 ---- socket = char.socket # Potions need to be on your body to use them, or in arms reach. ! if not char.canreach(item, -1): char.message( "This potion is out of your reach..." ) return False *************** *** 81,84 **** --- 79,85 ---- socket.sysmessage( 'You should throw this now!', RED ) socket.attachtarget( "potions.targetexplosionpotion", [ item ] ) + elif potiontype == 25: + socket.sysmessage( 'What do you want to shrink?' ) + socket.attachtarget( 'potions.shrinktarget', [ item.serial ] ) # We just drink this potion... *************** *** 626,629 **** --- 627,685 ---- return True + + # + # Shrink a char in range + # + def shrinktarget(player, arguments, target): + potion = wolfpack.finditem(arguments[0]) + if not potion or not player.canreach(potion, -1): + player.socket.sysmessage(tr('The shrink potion has to be in your backpack to use it.')) + return + + if not target.char: + player.socket.sysmessage(tr('You can only shrink pets owned by you.')) + return + + if not player.canreach(target.char, 1): + player.socket.clilocmessage(500312) + return + + if target.char.player: + player.socket.sysmessage(tr('You cannot shrink other players.')) + return + + if target.char.owner != player: + player.socket.sysmessage(tr("You don't own that creature.")) + return + + if target.char.id in [0x190, 0x191, 0x192, 0x193, 0x3db]: + player.socket.sysmessage(tr('You can only shrink animals and monsters!')) + return + + bodyinfo = wolfpack.bodyinfo(target.char.id) + + if bodyinfo['figurine'] <= 0 or bodyinfo['figurine'] >= 0x4000: + player.socket.sysmessage(tr('You cannot shrink that.')) + return + + target.char.sound(SND_IDLE) + + # Create a new figurine and make it newbie + figurine = wolfpack.additem('%x' % bodyinfo['figurine']) + figurine.newbie = True + figurine.addscript('figurine') + figurine.settag('pet', target.char.serial) + figurine.name = target.char.name + figurine.update() + player.getbackpack().additem(figurine, True, False) # Random pos, no auto stacking + figurine.update() + + target.char.removefromview() + target.char.owner = None + target.char.stablemaster = figurine.serial + target.char.addscript('figurine') # This is a figurined NPC + + consumePotion(player, potion) + # INVIS POTION # 502179 Your skin becomes extremely sensitive to light, changing to mirror the colors of things around you. Index: figurine.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/figurine.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** figurine.py 9 Jul 2004 21:47:45 -0000 1.3 --- figurine.py 28 Oct 2004 19:13:17 -0000 1.4 *************** *** 32,36 **** item.delete() ! pet.stablemaster = -1 pet.moveto(player.pos) pet.update() --- 32,40 ---- item.delete() ! pet.removescript('figurine') ! pet.owner = player ! pet.stablemaster = 0 ! pet.wandertype = 0 # Stay where you are... ! pet.direction = player.direction pet.moveto(player.pos) pet.update() |
From: Sebastian H. <dar...@us...> - 2004-10-28 19:13:20
|
Update of /cvsroot/wpdev/xmlscripts/definitions/items/equipment In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30298/items/equipment Modified Files: potions.xml Log Message: shrink Index: potions.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/items/equipment/potions.xml,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** potions.xml 22 Sep 2004 06:11:00 -0000 1.13 --- potions.xml 28 Oct 2004 19:13:08 -0000 1.14 *************** *** 367,370 **** --- 367,386 ---- <color>0x21</color> </item> + + <!-- Shrink --> + <item id="potion_shrink" inherit="potion_base"> + <id>0xf0b</id> + <name>a Shrink Potion</name> + <category>Equipment\Potions\Shrink</category> + <tag name="potiontype" value="25" type="int" /> + <!-- Pricing information --> + </item> + + <item id="potion_keg_shrink" inherit="potion_keg_empty"> + <name>A keg of Shrink potions</name> + <tag name="potiontype" value="25" type="int" /> + <tag name="kegfill" value="100" type="int" /> + <color>0x21</color> + </item> </definitions> |
From: Klaus M. <nad...@us...> - 2004-10-28 16:04:49
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13538/scripts Modified Files: equipment.py Log Message: equip bugfix (bug #0000369) Index: equipment.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/equipment.py,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** equipment.py 13 Oct 2004 18:45:42 -0000 1.47 --- equipment.py 28 Oct 2004 16:04:40 -0000 1.48 *************** *** 388,392 **** else: player.socket.clilocmessage(500213) ! return 1 if wearer.dexterity < req_dex: --- 388,392 ---- else: player.socket.clilocmessage(500213) ! return True if wearer.dexterity < req_dex: *************** *** 395,399 **** else: player.socket.clilocmessage(502077) ! return 1 if wearer.intelligence < req_int: --- 395,399 ---- else: player.socket.clilocmessage(502077) ! return True if wearer.intelligence < req_int: *************** *** 402,406 **** else: player.socket.sysmessage('You are not ingellgent enough to equip this item.') ! return 1 # Reject equipping an item with durability 1 or less --- 402,406 ---- else: player.socket.sysmessage('You are not ingellgent enough to equip this item.') ! return True # Reject equipping an item with durability 1 or less *************** *** 412,418 **** if (armor or weapon or shield) and item.health < 1: player.socket.sysmessage('You need to repair this before using it again.') ! return 1 ! return 0 # --- 412,418 ---- if (armor or weapon or shield) and item.health < 1: player.socket.sysmessage('You need to repair this before using it again.') ! return True ! return False # *************** *** 667,682 **** # Try to equip an item after calling onWearItem for it def onUse(player, item): if item.container == player: ! return 0 tile = wolfpack.tiledata(item.id) if not tile.has_key('layer'): ! return 0 layer = tile['layer'] if layer == 0 or not (tile['flag3'] & 0x40): ! return 0 previous = player.itemonlayer(layer) --- 667,686 ---- # Try to equip an item after calling onWearItem for it def onUse(player, item): + if not char.gm and item.movable == 3: + player.objectdelay = 0 + return True + if item.container == player: ! return False tile = wolfpack.tiledata(item.id) if not tile.has_key('layer'): ! return False layer = tile['layer'] if layer == 0 or not (tile['flag3'] & 0x40): ! return False previous = player.itemonlayer(layer) *************** *** 703,707 **** # Check if there is another dclick handler # in the eventchain somewhere. if not, ! # return 1 to handle the equip event. scripts = item.scripts --- 707,711 ---- # Check if there is another dclick handler # in the eventchain somewhere. if not, ! # return True to handle the equip event. scripts = item.scripts *************** *** 710,714 **** result = wolfpack.callevent(script, EVENT_WEARITEM, (player, player, item, layer)) if result: ! return 1 player.additem(layer, item) --- 714,718 ---- result = wolfpack.callevent(script, EVENT_WEARITEM, (player, player, item, layer)) if result: ! return True player.additem(layer, item) *************** *** 722,726 **** for script in scripts[scripts.index("equipment")+1:]: if wolfpack.hasevent(script, EVENT_USE): ! return 0 ! return 1 --- 726,730 ---- for script in scripts[scripts.index("equipment")+1:]: if wolfpack.hasevent(script, EVENT_USE): ! return False ! return True |
From: Klaus M. <nad...@us...> - 2004-10-28 16:04:49
|
Update of /cvsroot/wpdev/xmlscripts/documentation/webroot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13538/documentation/webroot Modified Files: ChangeLog.wolfpack Log Message: equip bugfix (bug #0000369) Index: ChangeLog.wolfpack =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/documentation/webroot/ChangeLog.wolfpack,v retrieving revision 1.172 retrieving revision 1.173 diff -C2 -d -r1.172 -r1.173 *** ChangeLog.wolfpack 27 Oct 2004 14:05:54 -0000 1.172 --- ChangeLog.wolfpack 28 Oct 2004 16:04:40 -0000 1.173 *************** *** 8,11 **** --- 8,12 ---- - Male NPCs now have a 75% chance of getting a beard when created. * Python Script Changes: + - Fixed bug #0000369. (Equip possible although item.movable = 3) - Fixed bug #0000361. (Pets don't follow trough gate) - Added xoffset, yoffset and zoffset to socket.attachmultitarget. (housing.deed) |
From: Sebastian H. <dar...@us...> - 2004-10-27 16:54:10
|
Update of /cvsroot/wpdev/xmlscripts/definitions/system In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16298/system Modified Files: bodyinfo.xml Log Message: fix for sewer rats Index: bodyinfo.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/system/bodyinfo.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** bodyinfo.xml 26 Oct 2004 20:32:26 -0000 1.7 --- bodyinfo.xml 27 Oct 2004 16:54:01 -0000 1.8 *************** *** 269,273 **** <body id="234" basesound="0x82" figurine="0x20d4" soundmode="2" type="3" /> <!-- TODO: Unknown --> <body id="237" basesound="0x82" figurine="0x20d4" soundmode="2" type="3" /> <!-- TODO: Unknown --> ! <body id="238" basesound="204" figurine="0x2123" type="3" mountid="16034" /> <!-- Sewer Rat --> <!-- <body id="210" mountid="16035" /> --> --- 269,273 ---- <body id="234" basesound="0x82" figurine="0x20d4" soundmode="2" type="3" /> <!-- TODO: Unknown --> <body id="237" basesound="0x82" figurine="0x20d4" soundmode="2" type="3" /> <!-- TODO: Unknown --> ! <body id="238" basesound="204" figurine="0x2123" type="3" /> <!-- Sewer Rat --> <!-- <body id="210" mountid="16035" /> --> |
From: Sebastian H. <dar...@us...> - 2004-10-27 16:38:44
|
Update of /cvsroot/wpdev/xmlscripts/scripts/magic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11185/magic Modified Files: __init__.py nightsight.py Log Message: Possible fix for nightsight problems. Index: nightsight.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/magic/nightsight.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** nightsight.py 25 Aug 2004 17:03:05 -0000 1.7 --- nightsight.py 27 Oct 2004 16:38:34 -0000 1.8 *************** *** 26,29 **** --- 26,30 ---- def onLogout(player): wearout(player) + return False # *************** *** 32,35 **** --- 33,37 ---- def onLogin(player): wearout(player) + return False # Index: __init__.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/magic/__init__.py,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** __init__.py 20 Oct 2004 19:40:30 -0000 1.23 --- __init__.py 27 Oct 2004 16:38:34 -0000 1.24 *************** *** 208,209 **** --- 208,210 ---- def onLogin(char): fizzle(char) + return False |
From: Sebastian H. <dar...@us...> - 2004-10-27 16:38:44
|
Update of /cvsroot/wpdev/xmlscripts/scripts/npc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11185/npc Modified Files: poison.py Log Message: Possible fix for nightsight problems. Index: poison.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/npc/poison.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** poison.py 27 Oct 2004 14:06:34 -0000 1.1 --- poison.py 27 Oct 2004 16:38:35 -0000 1.2 *************** *** 2,6 **** from wolfpack.consts import * import system.poison ! impot random def onDoDamage(npc, damagetype, amount, victim): --- 2,6 ---- from wolfpack.consts import * import system.poison ! import random def onDoDamage(npc, damagetype, amount, victim): *************** *** 14,17 **** --- 14,24 ---- hit_poison_chance = npc.getintproperty('hit_poison_chance', 50) + # There is a special poison level 5 which has a 80% chance for greater and a 20% chance for deadly + if hit_poison_level == 5: + if 0.20 >= random.random(): + hit_poison_level = 3 # Deadly + else: + hit_poison_level = 2 # Greater + if hit_poison_level < 0 or hit_poison_level > 4: return amount *************** *** 22,26 **** # Check the poisoning chance if hit_poison_chance > random.randint(0, 99): ! system.poison(victim, hit_poison_level) return amount --- 29,33 ---- # Check the poisoning chance if hit_poison_chance > random.randint(0, 99): ! system.poison.poison(victim, hit_poison_level) return amount |
From: Sebastian H. <dar...@us...> - 2004-10-27 16:38:44
|
Update of /cvsroot/wpdev/xmlscripts/scripts/system In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11185/system Modified Files: players.py poison.py trading.py Log Message: Possible fix for nightsight problems. Index: trading.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/system/trading.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** trading.py 8 Sep 2004 15:09:27 -0000 1.11 --- trading.py 27 Oct 2004 16:38:35 -0000 1.12 *************** *** 27,30 **** --- 27,31 ---- player.deltag('trade_button') player.removescript('system.trading') + return False # Index: poison.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/system/poison.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** poison.py 27 Oct 2004 14:06:33 -0000 1.7 --- poison.py 27 Oct 2004 16:38:35 -0000 1.8 *************** *** 52,56 **** damage = 1 + int(char.hitpoints * poison[3]) damage = min(poison[2], max(poison[1], damage)) ! energydamage(char, char, damage, poison=100) # See if we should add another timer --- 52,56 ---- damage = 1 + int(char.hitpoints * poison[3]) damage = min(poison[2], max(poison[1], damage)) ! energydamage(char, None, damage, poison=100) # See if we should add another timer *************** *** 124,127 **** --- 124,128 ---- char.deltag('poison_strokes') + return False def poison_target(player, arguments, target): Index: players.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/system/players.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** players.py 8 Oct 2004 19:59:51 -0000 1.8 --- players.py 27 Oct 2004 16:38:35 -0000 1.9 *************** *** 10,13 **** --- 10,14 ---- player.update() socket.resendplayer() + return False def onLogout( player ): |