wpdev-commits Mailing List for Wolfpack Emu (Page 190)
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: <thi...@us...> - 2003-09-19 20:41:14
|
Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1:/tmp/cvs-serv12900/network
Modified Files:
asyncnetio.cpp asyncnetio.h listener.cpp uosocket.cpp
Log Message:
reworked Preferences class, nearly complete rewrite.
some fixes, and some cosmetic changes.
Index: asyncnetio.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/asyncnetio.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** asyncnetio.cpp 3 Sep 2003 20:58:17 -0000 1.34
--- asyncnetio.cpp 19 Sep 2003 20:41:08 -0000 1.35
***************
*** 34,37 ****
--- 34,38 ----
#include "../srvparams.h"
#include "../globals.h"
+ #include "../basics.h"
// Library Includes
***************
*** 40,43 ****
--- 41,46 ----
#include <qmap.h>
+ #include <algorithm>
+
#undef CONST
***************
*** 115,121 ****
Q_ULONG rindex, windex; // read/write index
QMutex wmutex; // write mutex
! bool skippedUOHeader; // Skip crypt key junk
! std::deque<cUOPacket*>* packets; // Complete UOPackets
QMutex packetsMutex;
QMutex cryptMutex;
--- 118,124 ----
Q_ULONG rindex, windex; // read/write index
QMutex wmutex; // write mutex
! bool skippedUOHeader; // Skip crypt key junk
! std::deque<cUOPacket*> packets; // Complete UOPackets
QMutex packetsMutex;
QMutex cryptMutex;
***************
*** 139,154 ****
rba.setAutoDelete( TRUE );
wba.setAutoDelete( TRUE );
- packets = new std::deque<cUOPacket*>;
}
cAsyncNetIOPrivate::~cAsyncNetIOPrivate()
{
! for ( uint i = 0; i < packets->size(); ++i )
{
/// QMutexLocker lock( &packetsMutex ); I think it's safe not to lock here.
! delete packets->front();
! packets->pop_front();
}
- delete packets;
delete encryption;
}
--- 142,155 ----
rba.setAutoDelete( TRUE );
wba.setAutoDelete( TRUE );
}
cAsyncNetIOPrivate::~cAsyncNetIOPrivate()
{
! for ( uint i = 0; i < packets.size(); ++i )
{
/// QMutexLocker lock( &packetsMutex ); I think it's safe not to lock here.
! delete packets.front();
! packets.pop_front();
}
delete encryption;
}
***************
*** 345,348 ****
--- 346,359 ----
/*!
+ Frees allocated buffer memory for the sockets
+ */
+ cAsyncNetIO::~cAsyncNetIO() throw()
+ {
+ QMap<QSocketDevice*, cAsyncNetIOPrivate*>::iterator it = buffers.begin();
+ for (; it != buffers.end(); ++it)
+ delete it.data();
+ }
+
+ /*!
Registers a \a socket for asyncronous services.
\a login determines whether the connection has been established to
***************
*** 596,600 ****
d->socket->close();
QMutexLocker lock(&d->packetsMutex);
! d->packets->push_back( packet );
}
else
--- 607,611 ----
d->socket->close();
QMutexLocker lock(&d->packetsMutex);
! d->packets.push_back( packet );
}
else
***************
*** 628,632 ****
d->socket->close();
QMutexLocker lock(&d->packetsMutex);
! d->packets->push_back( packet );
}
}
--- 639,643 ----
d->socket->close();
QMutexLocker lock(&d->packetsMutex);
! d->packets.push_back( packet );
}
}
***************
*** 717,725 ****
{
iterator it = buffers.find( socket );
! if ( it.data()->packets->size() )
{
QMutexLocker lock(&(it.data()->packetsMutex));
! cUOPacket* p = it.data()->packets->front();
! it.data()->packets->pop_front();
return p;
}
--- 728,736 ----
{
iterator it = buffers.find( socket );
! if ( it.data()->packets.size() )
{
QMutexLocker lock(&(it.data()->packetsMutex));
! cUOPacket* p = it.data()->packets.front();
! it.data()->packets.pop_front();
return p;
}
Index: asyncnetio.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/asyncnetio.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** asyncnetio.h 12 Jun 2003 02:19:38 -0000 1.13
--- asyncnetio.h 19 Sep 2003 20:41:08 -0000 1.14
***************
*** 55,59 ****
public:
cAsyncNetIO() : canceled_(false) {}
! ~cAsyncNetIO() throw() {}
bool registerSocket(QSocketDevice*, bool loginSocket);
--- 55,59 ----
public:
cAsyncNetIO() : canceled_(false) {}
! ~cAsyncNetIO() throw();
bool registerSocket(QSocketDevice*, bool loginSocket);
Index: listener.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/listener.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** listener.cpp 12 Jun 2003 02:19:38 -0000 1.13
--- listener.cpp 19 Sep 2003 20:41:08 -0000 1.14
***************
*** 30,33 ****
--- 30,36 ----
#include "listener.h"
+ #include "../basics.h"
+
+ #include <algorithm>
/*****************************************************************************
***************
*** 63,66 ****
--- 66,70 ----
cListener::~cListener() throw()
{
+ std::for_each( readyConnections.begin(), readyConnections.end(), destroy<QSocketDevice*>() );
}
Index: uosocket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v
retrieving revision 1.292
retrieving revision 1.293
diff -C2 -d -r1.292 -r1.293
*** uosocket.cpp 16 Sep 2003 18:15:42 -0000 1.292
--- uosocket.cpp 19 Sep 2003 20:41:08 -0000 1.293
***************
*** 108,111 ****
--- 108,114 ----
}
+ #include <functional>
+
+
/*!
Destructs the cUOSocket instance.
|
|
From: <xs...@us...> - 2003-09-17 19:15:39
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv26006
Modified Files:
combat.cpp coord.cpp wolf.dsp wolfpack.cpp
Log Message:
line of sight fix for surfaces
Index: combat.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/combat.cpp,v
retrieving revision 1.152
retrieving revision 1.153
diff -C2 -d -r1.152 -r1.153
*** combat.cpp 15 Sep 2003 16:49:03 -0000 1.152
--- combat.cpp 17 Sep 2003 19:15:33 -0000 1.153
***************
*** 303,307 ****
// Can we see our target.
- // I don't know what the +z 13 means...
bool los = pAttacker->pos().lineOfSight( pDefender->pos(), true );
--- 303,306 ----
Index: coord.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/coord.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** coord.cpp 7 Sep 2003 19:07:46 -0000 1.27
--- coord.cpp 17 Sep 2003 19:15:34 -0000 1.28
***************
*** 342,347 ****
tile = TileCache::instance()->getTile( msi->itemid );
if( ( (*pit).z >= msi->zoff && (*pit).z <= ( msi->zoff + tile.height ) ) )
! // || ( tile.height <= 2 && abs( (*pit).z - msi->zoff ) <= abs( dz ) ) )
! itemids.insert( msi->itemid );
++msi;
--- 342,356 ----
tile = TileCache::instance()->getTile( msi->itemid );
if( ( (*pit).z >= msi->zoff && (*pit).z <= ( msi->zoff + tile.height ) ) )
! {
! // dont take surfaces into account under certain circumstances
! if( tile.flag2 & 0x02 )
! {
! if( !(z >= target.z && target.z >= (*pit).z) &&
! !(z <= target.z && z >= (*pit).z) )
! itemids.insert( msi->itemid );
! }
! else
! itemids.insert( msi->itemid );
! }
++msi;
***************
*** 400,404 ****
// Touch & Impassable
! if( touch && tile.flag1 & 0x40 )
return false;
--- 409,413 ----
// Touch & Impassable
! if( touch && ( tile.flag1 & 0x40 ) )
return false;
Index: wolf.dsp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/wolf.dsp,v
retrieving revision 1.232
retrieving revision 1.233
diff -C2 -d -r1.232 -r1.233
*** wolf.dsp 13 Sep 2003 18:47:25 -0000 1.232
--- wolf.dsp 17 Sep 2003 19:15:34 -0000 1.233
***************
*** 1,23 ****
# Microsoft Developer Studio Project File - Name="wolf" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
! # ** NICHT BEARBEITEN **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=wolf - Win32 Debug
! !MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
! !MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl
!MESSAGE
!MESSAGE NMAKE /f "wolf.mak".
!MESSAGE
! !MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben
! !MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
!MESSAGE
!MESSAGE NMAKE /f "wolf.mak" CFG="wolf - Win32 Debug"
!MESSAGE
! !MESSAGE Für die Konfiguration stehen zur Auswahl:
!MESSAGE
! !MESSAGE "wolf - Win32 Release" (basierend auf "Win32 (x86) Console Application")
! !MESSAGE "wolf - Win32 Debug" (basierend auf "Win32 (x86) Console Application")
!MESSAGE
--- 1,23 ----
# Microsoft Developer Studio Project File - Name="wolf" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
! # ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=wolf - Win32 Debug
! !MESSAGE This is not a valid makefile. To build this project using NMAKE,
! !MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "wolf.mak".
!MESSAGE
! !MESSAGE You can specify a configuration when running NMAKE
! !MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "wolf.mak" CFG="wolf - Win32 Debug"
!MESSAGE
! !MESSAGE Possible choices for configuration are:
!MESSAGE
! !MESSAGE "wolf - Win32 Release" (based on "Win32 (x86) Console Application")
! !MESSAGE "wolf - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
***************
*** 52,56 ****
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
! # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib ws2_32.lib $(QTDIR)\lib\qt-mt320.lib shell32.lib /nologo /subsystem:windows /map /machine:I386 /out:"..\wolfpack.exe" /libpath:"lib\ZThread\lib" /libpath:"lib\Python\lib" /libpath:"lib\bugreport\lib" /libpath:"flatstore\Release" /opt:ref /opt:nowin98
# SUBTRACT LINK32 /pdb:none
--- 52,56 ----
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
! # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib ws2_32.lib $(QTDIR)\lib\qt-mt320.lib shell32.lib /nologo /subsystem:windows /map /machine:I386 /out:"Release\wolfpack.exe" /libpath:"lib\ZThread\lib" /libpath:"lib\Python\lib" /libpath:"lib\bugreport\lib" /libpath:"flatstore\Release" /opt:ref /opt:nowin98
# SUBTRACT LINK32 /pdb:none
***************
*** 64,68 ****
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
! # PROP Output_Dir "D:\wolfpack\"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
--- 64,68 ----
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
! # PROP Output_Dir "C:\Software Engineering\wolfpack\"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
***************
*** 77,81 ****
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
! # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib ws2_32.lib $(QTDIR)\lib\qt-mt320.lib shell32.lib /nologo /version:12.9 /subsystem:windows /map /debug /machine:I386 /out:"..\wolfpack.exe" /pdbtype:sept /libpath:"lib\bugreport\lib" /libpath:"flatstore\Debug"
# SUBTRACT LINK32 /pdb:none
--- 77,81 ----
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
! # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib ws2_32.lib $(QTDIR)\lib\qt-mt320.lib shell32.lib /nologo /version:12.9 /subsystem:windows /map /debug /machine:I386 /out:"C:\Software Engineering\wolfpack\wolfpack.exe" /pdbtype:sept /libpath:"lib\bugreport\lib" /libpath:"flatstore\Debug"
# SUBTRACT LINK32 /pdb:none
***************
*** 437,444 ****
SOURCE=.\console.h
- # End Source File
- # Begin Source File
-
- SOURCE=.\console_win.h
# End Source File
# Begin Source File
--- 437,440 ----
Index: wolfpack.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/wolfpack.cpp,v
retrieving revision 1.467
retrieving revision 1.468
diff -C2 -d -r1.467 -r1.468
*** wolfpack.cpp 14 Sep 2003 16:09:01 -0000 1.467
--- wolfpack.cpp 17 Sep 2003 19:15:34 -0000 1.468
***************
*** 539,542 ****
--- 539,544 ----
}
+ uiCurrentTime = getNormalizedTime();
+
// Python threading - end
PyEval_RestoreThread( _save );
|
|
From: <co...@us...> - 2003-09-16 18:16:59
|
Update of /cvsroot/wpdev/xmlscripts/scripts/wolfpack In directory sc8-pr-cvs1:/tmp/cvs-serv29800 Modified Files: consts.py Log Message: custom houses Index: consts.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/wolfpack/consts.py,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** consts.py 16 Sep 2003 12:51:34 -0000 1.23 --- consts.py 16 Sep 2003 18:16:56 -0000 1.24 *************** *** 226,229 **** --- 226,230 ---- EVENT_STATGAIN = 32 EVENT_CASTSPELL = 33 + EVENT_CHLEVELCHANGE = 34 # Effect Constants |
|
From: <co...@us...> - 2003-09-16 18:16:45
|
Update of /cvsroot/wpdev/xmlscripts/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv29739
Modified Files:
multideed.py signpost.py
Log Message:
custom houses
Index: multideed.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/multideed.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** multideed.py 28 Aug 2003 20:47:57 -0000 1.7
--- multideed.py 16 Sep 2003 18:16:42 -0000 1.8
***************
*** 146,149 ****
--- 146,150 ----
def foundation( char, target, width, height, multiid ):
multi = wolfpack.multi( CUSTOMHOUSE )
+ char.socket.sysmessage( str( multi.serial ) )
multi.id = multiid + 0x4000
multi.decay = FALSE
Index: signpost.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/signpost.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** signpost.py 28 Aug 2003 20:47:57 -0000 1.4
--- signpost.py 16 Sep 2003 18:16:42 -0000 1.5
***************
*** 1,6 ****
--- 1,26 ----
import wolfpack
+ from wolfpack.consts import *
from wolfpack.gumps import cGump
+ # Register as a global script
+ def onLoad():
+ wolfpack.registerglobal( HOOK_CHAR, EVENT_CHLEVELCHANGE, "signpost" )
+ def onCHLevelChange( char, level ):
+ if not char.hastag( 'customizing' ):
+ return
+ multi = wolfpack.findmulti( int( char.gettag( 'customizing' ) ) )
+
+ char.socket.sysmessage( 'multi at: ' + str( multi.pos.z ) )
+ char.socket.sysmessage( 'char at: ' + str( char.pos.z ) )
+ alt = (level-1) * 49
+ if level == 3:
+ char.moveto( wolfpack.coord( multi.pos.x, multi.pos.y, char.pos.z+1, multi.pos.map ) )
+ if level == 2:
+ char.moveto( wolfpack.coord( multi.pos.x+4, multi.pos.y+4, multi.pos.z+alt, multi.pos.map ) )
+ if level == 1:
+ char.moveto( wolfpack.coord( multi.pos.x, multi.pos.y, char.pos.z-1, multi.pos.map ) )
+ char.update()
+ return 1
def onUse( char, item ):
***************
*** 292,295 ****
--- 312,316 ----
multi = wolfpack.findmulti( int( item.gettag( 'house' ) ) )
multi.sendcustomhouse( char )
+ char.socket.sysmessage( str( multi.serial ) )
#char.socket.sysmessage( "Multi serial : %i" % multi.serial )
char.moveto( wolfpack.coord( multi.pos.x, multi.pos.y, multi.pos.z+7, multi.pos.map ) )
***************
*** 298,302 ****
#woodenpost.delete()
char.socket.customize( item )
! return
def switchgump( char, target, args ):
--- 319,325 ----
#woodenpost.delete()
char.socket.customize( item )
! char.settag( 'customizing', multi.serial )
!
! return 1
def switchgump( char, target, args ):
|
|
From: <co...@us...> - 2003-09-16 18:15:45
|
Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1:/tmp/cvs-serv29516
Modified Files:
uosocket.cpp
Log Message:
custom houses
Index: uosocket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v
retrieving revision 1.291
retrieving revision 1.292
diff -C2 -d -r1.291 -r1.292
*** uosocket.cpp 15 Sep 2003 19:56:54 -0000 1.291
--- uosocket.cpp 16 Sep 2003 18:15:42 -0000 1.292
***************
*** 1041,1045 ****
void cUOSocket::handleCHLevel( cUORxCHLevel *packet )
{
! player()->onCHLevelChange( packet->serial() );
}
void cUOSocket::handleCHRevert( cUORxAosMultiPurpose *packet )
--- 1041,1045 ----
void cUOSocket::handleCHLevel( cUORxCHLevel *packet )
{
! player()->onCHLevelChange( packet->level() );
}
void cUOSocket::handleCHRevert( cUORxAosMultiPurpose *packet )
|
|
From: <co...@us...> - 2003-09-16 18:15:28
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv29459
Modified Files:
basechar.cpp basechar.h pythonscript.cpp pythonscript.h
Log Message:
custom houses
Index: basechar.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/basechar.cpp,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** basechar.cpp 15 Sep 2003 19:56:23 -0000 1.44
--- basechar.cpp 16 Sep 2003 18:15:24 -0000 1.45
***************
*** 1221,1227 ****
return false;
}
! bool cBaseChar::onCHLevelChange( SERIAL multi_serial )
{
! cMulti* multi = dynamic_cast< cMulti* >( FindItemBySerial( multi_serial ) );
return false;
}
--- 1221,1248 ----
return false;
}
! bool cBaseChar::onCHLevelChange( uint level )
{
! if( scriptChain )
! {
! unsigned int i = 0;
! while( scriptChain[i] )
! {
! if( scriptChain[ i ]->onCHLevelChange( this, level ) )
! return true;
!
! ++i;
! }
! }
!
! // Try to process the hooks then
! QValueVector< cPythonScript* > hooks;
! QValueVector< cPythonScript* >::const_iterator it;
!
! hooks = ScriptManager->getGlobalHooks( OBJECT_CHAR, EVENT_CHLEVELCHANGE );
! for( it = hooks.begin(); it != hooks.end(); ++it )
! if( (*it)->onCHLevelChange( this, level ) )
! return true;
!
!
return false;
}
Index: basechar.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/basechar.h,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** basechar.h 15 Sep 2003 19:56:23 -0000 1.35
--- basechar.h 16 Sep 2003 18:15:24 -0000 1.36
***************
*** 170,174 ****
QString onShowPaperdollName( P_CHAR pOrigin ); // only change the viewed name
virtual bool onShowTooltip( P_PLAYER sender, cUOTxTooltipList* tooltip ); // Shows a tool tip for specific object
! virtual bool onCHLevelChange( SERIAL multi_serial ); // Fired when player moving trough levels
bool onSkillGain( UI08 Skill, SI32 min, SI32 max, bool success );
bool onStatGain( UI08 stat, SI08 amount );
--- 170,174 ----
QString onShowPaperdollName( P_CHAR pOrigin ); // only change the viewed name
virtual bool onShowTooltip( P_PLAYER sender, cUOTxTooltipList* tooltip ); // Shows a tool tip for specific object
! virtual bool onCHLevelChange( uint level ); // Fired when player moving trough levels
bool onSkillGain( UI08 Skill, SI32 min, SI32 max, bool success );
bool onStatGain( UI08 stat, SI08 amount );
Index: pythonscript.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/pythonscript.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** pythonscript.cpp 8 Sep 2003 10:58:47 -0000 1.9
--- pythonscript.cpp 16 Sep 2003 18:15:24 -0000 1.10
***************
*** 387,390 ****
--- 387,402 ----
}
+ bool cPythonScript::onCHLevelChange( P_CHAR pChar, uint level )
+ {
+ PyHasMethod( "onCHLevelChange" )
+
+ PyObject *tuple = PyTuple_New( 2 );
+ PyTuple_SetItem( tuple, 0, PyGetCharObject( pChar ) );
+ PyTuple_SetItem( tuple, 1, PyInt_FromLong( level ) );
+
+ return PyEvalMethod( "onCHLevelChange", tuple );
+ }
+
+
unsigned int cPythonScript::onDamage( P_CHAR pChar, unsigned char type, unsigned int amount, cUObject *source )
{
Index: pythonscript.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/pythonscript.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** pythonscript.h 30 Aug 2003 17:00:09 -0000 1.7
--- pythonscript.h 16 Sep 2003 18:15:24 -0000 1.8
***************
*** 112,115 ****
--- 112,117 ----
bool onShowToolTip( P_CHAR pChar, cUObject *pObject, cUOTxTooltipList* tooltip );
+ bool onCHLevelChange( P_CHAR pChar, uint level );
+
bool onSpeech( cUObject *listener, P_CHAR talker, const QString &text, const QValueVector< UINT16 >& keywords );
|
|
From: <dar...@us...> - 2003-09-16 12:51:38
|
Update of /cvsroot/wpdev/xmlscripts/scripts/wolfpack In directory sc8-pr-cvs1:/tmp/cvs-serv19024/wolfpack Modified Files: consts.py Log Message: Fixed Global Hook Constants Index: consts.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/wolfpack/consts.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** consts.py 15 Sep 2003 12:42:15 -0000 1.22 --- consts.py 16 Sep 2003 12:51:34 -0000 1.23 *************** *** 193,222 **** # Constants for the Events we can hook ! EVENT_USE = 0x00000001 ! EVENT_SINGLECLICK = 0x00000002 ! EVENT_COLLIDEITEM = 0x00000004 ! EVENT_COLLIDECHAR = 0x00000008 ! EVENT_WALK = 0x00000010 ! EVENT_CREATE = 0x00000020 ! EVENT_LOGIN = 0x00000040 ! EVENT_LOGOUT = 0x00000080 ! EVENT_TALK = 0x00000100 ! EVENT_WARMODETOGGLE = 0x00000200 ! EVENT_HELP = 0x00000400 ! EVENT_CHAT = 0x00000800 ! EVENT_SKILLUSE = 0x00001000 ! EVENT_SELECTCONTEXTMENU = 0x00002000 ! EVENT_REQUESTCONTEXTMENU = 0x00004000 ! EVENT_DROPONCHAR = 0x00008000 ! EVENT_DROPONITEM = 0x00010000 ! EVENT_DROPONGROUND = 0x00020000 ! EVENT_PICKUP = 0x00040000 ! EVENT_SPEECH = 0x00080000 ! EVENT_BEGINCAST = 0x00100000 ! EVENT_ENDCAST = 0x00200000 ! EVENT_SPELLCHECKTARGET = 0x00400000 ! EVENT_DAMAGE = 0x08000000 ! EVENT_SHOWTOOLTIP = 0x02000000 ! EVENT_CASTSPELL = 0x80000000 # Effect Constants --- 193,229 ---- # Constants for the Events we can hook ! EVENT_USE = 1 ! EVENT_SINGLECLICK = 2 ! EVENT_COLLIDE = 3 ! EVENT_WORLDSAVE = 4 ! EVENT_WORLDLOAD = 5 ! EVENT_WALK = 6 ! EVENT_CREATE = 7 ! EVENT_LOGIN = 8 ! EVENT_LOGOUT = 9 ! EVENT_TALK = 10 ! EVENT_WARMODETOGGLE = 11 ! EVENT_HELP = 12 ! EVENT_CHAT = 13 ! EVENT_SKILLUSE = 14 ! EVENT_SELECTCONTEXTMENU = 15 ! EVENT_REQUESTCONTEXTMENU = 16 ! EVENT_DROPONCHAR = 17 ! EVENT_DROPONITEM = 18 ! EVENT_DROPONGROUND = 19 ! EVENT_PICKUP = 20 ! EVENT_SPEECH = 21 ! EVENT_BEGINCAST = 22 ! EVENT_ENDCAST = 23 ! EVENT_SPELLCHECKTARGET = 24 ! EVENT_SPELLSUCCESS = 25 ! EVENT_SPELLFAILURE = 26 ! EVENT_SHOWTOOLTIP = 27 ! EVENT_SKILLGAIN = 28 ! EVENT_DAMAGE = 29 ! EVENT_SHOWPAPERDOLL = 30 ! EVENT_SHOWSKILLGUMP = 31 ! EVENT_STATGAIN = 32 ! EVENT_CASTSPELL = 33 # Effect Constants |
|
From: <co...@us...> - 2003-09-15 19:56:57
|
Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1:/tmp/cvs-serv13264
Modified Files:
uorxpackets.cpp uorxpackets.h uosocket.cpp uosocket.h
Log Message:
Custom houses constructor work
Index: uorxpackets.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uorxpackets.cpp,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** uorxpackets.cpp 30 Aug 2003 17:00:12 -0000 1.51
--- uorxpackets.cpp 15 Sep 2003 19:56:54 -0000 1.52
***************
*** 118,128 ****
cUOPacket *cUORxAosMultiPurpose::packet( const QByteArray& data )
{
cUOPacket temp( data );
!
switch( temp.getShort( 7 ) )
{
default:
{
! //qWarning("Unknown cUORxMultiPurpose subcommand");
//qWarning( cUOPacket::dump( data ) );
return new cUOPacket( data );
--- 118,132 ----
cUOPacket *cUORxAosMultiPurpose::packet( const QByteArray& data )
{
+ #pragma message(__FILE__ Reminder "Add CH packets creation for all commands")
+
cUOPacket temp( data );
!
switch( temp.getShort( 7 ) )
{
+ case CHLevel:
+ return new cUORxCHLevel( data ); break;
default:
{
! //qWarning("Unknown cUORxAosMultiPurpose subcommand");
//qWarning( cUOPacket::dump( data ) );
return new cUOPacket( data );
Index: uorxpackets.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uorxpackets.h,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** uorxpackets.h 3 Sep 2003 20:58:17 -0000 1.51
--- uorxpackets.h 15 Sep 2003 19:56:54 -0000 1.52
***************
*** 35,38 ****
--- 35,39 ----
#include "../typedefs.h"
#include "uopacket.h"
+ #include "../defines.h"
// Qt Includes
***************
*** 582,590 ****
uint z() const { return getInt( 25 ); }
};
// 0xD7 0x06 Build wall or other element when customizing house
! class cUORxCHBuild : public cUORxAosMultiPurpose
{
public:
! cUORxCHBuild( const QByteArray &data ): cUORxAosMultiPurpose( data ) {}
uint elementId() const { return getInt( 10 ); }
uint x() const { return getInt( 15 ); }
--- 583,592 ----
uint z() const { return getInt( 25 ); }
};
+
// 0xD7 0x06 Build wall or other element when customizing house
! class cUORxCHAddElement : public cUORxAosMultiPurpose
{
public:
! cUORxCHAddElement( const QByteArray &data ): cUORxAosMultiPurpose( data ) {}
uint elementId() const { return getInt( 10 ); }
uint x() const { return getInt( 15 ); }
Index: uosocket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v
retrieving revision 1.290
retrieving revision 1.291
diff -C2 -d -r1.290 -r1.291
*** uosocket.cpp 14 Sep 2003 16:31:48 -0000 1.290
--- uosocket.cpp 15 Sep 2003 19:56:54 -0000 1.291
***************
*** 287,290 ****
--- 287,292 ----
case 0xC8:
handleUpdateRange( dynamic_cast< cUORxUpdateRange* >( packet ) ); break;
+ case 0xD7:
+ handleAosMultiPurpose( dynamic_cast< cUORxAosMultiPurpose* >( packet ) ); break;
case 0x95:
handleDye( dynamic_cast< cUORxDye* >( packet ) ); break;
***************
*** 969,972 ****
--- 971,1050 ----
};
}
+
+ /*!
+ This method handles cUORxAosMultiPurpose packet types.
+ \sa cUORxAosMultiPurpose
+ */
+ void cUOSocket::handleAosMultiPurpose( cUORxAosMultiPurpose *packet )
+ {
+ if ( !packet ) // Happens if it's not inherited from cUORxAosMultiPurpose
+ return;
+
+ switch( packet->subCommand() )
+ {
+ case cUORxAosMultiPurpose::CHBackup:
+ handleCHBackup( packet ); break;
+ case cUORxAosMultiPurpose::CHRestore:
+ handleCHRestore( packet ); break;
+ case cUORxAosMultiPurpose::CHCommit:
+ handleCHCommit( packet ); break;
+ case cUORxAosMultiPurpose::CHDelete:
+ handleCHDelete( dynamic_cast< cUORxCHDelete* >( packet ) ); break;
+ case cUORxAosMultiPurpose::CHAddElement:
+ handleCHAddElement( dynamic_cast< cUORxCHAddElement* >( packet ) ); break;
+ case cUORxAosMultiPurpose::CHClose:
+ handleCHClose( packet ); break;
+ case cUORxAosMultiPurpose::CHStairs:
+ handleCHStairs( dynamic_cast< cUORxCHStairs* >( packet ) ); break;
+ case cUORxAosMultiPurpose::CHSync:
+ handleCHSync( packet ); break;
+ case cUORxAosMultiPurpose::CHClear:
+ handleCHClear( packet ); break;
+ case cUORxAosMultiPurpose::CHLevel:
+ handleCHLevel( dynamic_cast< cUORxCHLevel* >( packet ) ); break;
+ case cUORxAosMultiPurpose::CHRevert:
+ handleCHRevert( packet ); break;
+ /* case cUORxAosMultiPurpose::AbilitySelect:
+ handleAbilitySelect( dynamic_cast< */
+ default:
+ Console::instance()->log( LOG_WARNING, packet->dump( packet->uncompressed() ) );
+ };
+ }
+ #pragma message(__FILE__ Reminder "Implement Custom House subcommands here")
+ void cUOSocket::handleCHBackup( cUORxAosMultiPurpose *packet )
+ {
+ }
+ void cUOSocket::handleCHRestore( cUORxAosMultiPurpose *packet )
+ {
+ }
+ void cUOSocket::handleCHCommit( cUORxAosMultiPurpose *packet )
+ {
+ }
+ void cUOSocket::handleCHDelete( cUORxCHDelete *packet )
+ {
+ }
+ void cUOSocket::handleCHAddElement( cUORxCHAddElement *packet )
+ {
+ }
+ void cUOSocket::handleCHClose( cUORxAosMultiPurpose *packet )
+ {
+ }
+ void cUOSocket::handleCHStairs( cUORxCHStairs *packet )
+ {
+ }
+ void cUOSocket::handleCHSync( cUORxAosMultiPurpose *packet )
+ {
+ }
+ void cUOSocket::handleCHClear( cUORxAosMultiPurpose *packet )
+ {
+ }
+ void cUOSocket::handleCHLevel( cUORxCHLevel *packet )
+ {
+ player()->onCHLevelChange( packet->serial() );
+ }
+ void cUOSocket::handleCHRevert( cUORxAosMultiPurpose *packet )
+ {
+ }
+
void cUOSocket::handleCastSpell( cUORxCastSpell *packet )
Index: uosocket.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.h,v
retrieving revision 1.96
retrieving revision 1.97
diff -C2 -d -r1.96 -r1.97
*** uosocket.h 14 Sep 2003 16:09:01 -0000 1.96
--- uosocket.h 15 Sep 2003 19:56:54 -0000 1.97
***************
*** 168,171 ****
--- 168,183 ----
void handleProfile( cUORxProfile* packet );
void handleRename( cUORxRename* packet );
+ void handleAosMultiPurpose( cUORxAosMultiPurpose *packet );
+ void handleCHBackup( cUORxAosMultiPurpose *packet );
+ void handleCHRestore( cUORxAosMultiPurpose *packet );
+ void handleCHCommit( cUORxAosMultiPurpose *packet );
+ void handleCHDelete( cUORxCHDelete *packet );
+ void handleCHAddElement( cUORxCHAddElement *packet );
+ void handleCHClose( cUORxAosMultiPurpose *packet );
+ void handleCHStairs( cUORxCHStairs *packet );
+ void handleCHSync( cUORxAosMultiPurpose *packet );
+ void handleCHClear( cUORxAosMultiPurpose *packet );
+ void handleCHLevel( cUORxCHLevel *packet );
+ void handleCHRevert( cUORxAosMultiPurpose *packet );
// Utilities
|
|
From: <co...@us...> - 2003-09-15 19:56:28
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv13173
Modified Files:
basechar.cpp basechar.h defines.h res.rc scriptmanager.h
Log Message:
Custom houses constructor work
Index: basechar.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/basechar.cpp,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** basechar.cpp 11 Sep 2003 16:19:49 -0000 1.43
--- basechar.cpp 15 Sep 2003 19:56:23 -0000 1.44
***************
*** 1221,1225 ****
return false;
}
!
bool cBaseChar::onShowTooltip( P_PLAYER sender, cUOTxTooltipList* tooltip )
{
--- 1221,1229 ----
return false;
}
! bool cBaseChar::onCHLevelChange( SERIAL multi_serial )
! {
! cMulti* multi = dynamic_cast< cMulti* >( FindItemBySerial( multi_serial ) );
! return false;
! }
bool cBaseChar::onShowTooltip( P_PLAYER sender, cUOTxTooltipList* tooltip )
{
Index: basechar.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/basechar.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** basechar.h 11 Sep 2003 16:19:50 -0000 1.34
--- basechar.h 15 Sep 2003 19:56:23 -0000 1.35
***************
*** 46,54 ****
#include "territories.h"
#include "log.h"
class cUOTxTooltipList;
-
// This class is the base interface for all char objects.
class cBaseChar : public cUObject
--- 46,55 ----
#include "territories.h"
#include "log.h"
+ #include "multis.h"
+ class cMulti;
class cUOTxTooltipList;
// This class is the base interface for all char objects.
class cBaseChar : public cUObject
***************
*** 169,172 ****
--- 170,174 ----
QString onShowPaperdollName( P_CHAR pOrigin ); // only change the viewed name
virtual bool onShowTooltip( P_PLAYER sender, cUOTxTooltipList* tooltip ); // Shows a tool tip for specific object
+ virtual bool onCHLevelChange( SERIAL multi_serial ); // Fired when player moving trough levels
bool onSkillGain( UI08 Skill, SI32 min, SI32 max, bool success );
bool onStatGain( UI08 stat, SI08 amount );
Index: defines.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/defines.h,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** defines.h 11 Sep 2003 15:33:58 -0000 1.42
--- defines.h 15 Sep 2003 19:56:23 -0000 1.43
***************
*** 33,36 ****
--- 33,41 ----
#define __DEFINES_H__
+ #define _ST_( L ) #L
+ #define _MST_( M, L ) M(L)
+ #define $LINE _MST_(_ST_, __LINE__)
+ #define Reminder "("$LINE"):Remind: "
+
#define MAXLOOPS 250000
#define MaxZstep 5
Index: res.rc
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/res.rc,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** res.rc 15 Sep 2003 12:49:05 -0000 1.15
--- res.rc 15 Sep 2003 19:56:23 -0000 1.16
***************
*** 1,5 ****
//Microsoft Developer Studio generated resource script.
//
- #include "resrc1.h"
#define APSTUDIO_READONLY_SYMBOLS
--- 1,4 ----
Index: scriptmanager.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/scriptmanager.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** scriptmanager.h 7 Sep 2003 19:07:47 -0000 1.4
--- scriptmanager.h 15 Sep 2003 19:56:23 -0000 1.5
***************
*** 78,81 ****
--- 78,82 ----
#define EVENT_STATGAIN 32
#define EVENT_CASTSPELL 33
+ #define EVENT_CHLEVELCHANGE 34
class cScriptManager
|
|
From: <dar...@us...> - 2003-09-15 16:52:48
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv31399 Modified Files: training_dummy.py Log Message: Fixed the training dummy. Index: training_dummy.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/training_dummy.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** training_dummy.py 11 Aug 2002 14:33:55 -0000 1.1 --- training_dummy.py 15 Sep 2003 16:09:23 -0000 1.2 *************** *** 7,10 **** --- 7,12 ---- import wolfpack + from wolfpack.consts import * + import random # 0x1070 Facing South/North (Swinging: 0x1071) *************** *** 14,17 **** --- 16,20 ---- # Either the dummy is swinging or we aren't assigned to a dummy if( item.id != 0x1070 and item.id != 0x1074 ): + char.socket.sysmessage( 'Wait until the dummy stops swinging.' ) return 1 *************** *** 36,52 **** # Turn to the correct direction ! if( char.direction != direction ): ! char.direction = direction ! char.update() skill = char.combatskill() # Determine the combat skill used by the character # We can only train FENCING+MACEFIGHTING+SWORDSMANSHIP+WRESTLING ! if( skill != wolfpack.FENCING and skill != wolfpack.MACEFIGHTING and skill != wolfpack.SWORDSMANSHIP and skill != wolfpack.WRESTLING ): char.message( "You can't train with this weapon on this dummy." ) return 1 # If we've already learned all we can > cancel. ! if( char.baseskill[ skill ] >= 300 ): char.message( "You can learn much from a dummy but you have already learned it all." ) return 1 --- 39,53 ---- # Turn to the correct direction ! char.turnto( item ) skill = char.combatskill() # Determine the combat skill used by the character # We can only train FENCING+MACEFIGHTING+SWORDSMANSHIP+WRESTLING ! if( skill != FENCING and skill != MACEFIGHTING and skill != SWORDSMANSHIP and skill != WRESTLING ): char.message( "You can't train with this weapon on this dummy." ) return 1 # If we've already learned all we can > cancel. ! if( char.skill[ skill ] >= 300 ): char.message( "You can learn much from a dummy but you have already learned it all." ) return 1 *************** *** 68,81 **** item.soundeffect( 0x33 ) ! # Add a timer to reset the id ! wolfpack.addtimer( "training_dummy.resetid", 3000, (item.serial,) ) return 1 # Reset the id of a swinging dummy ! def resetid( iSerial ): ! item = wolfpack.finditem( iSerial ) ! if( item and ( item.id == 0x1070 or item.id == 0x1074 ) ): ! item.id += 1 item.update() --- 69,82 ---- item.soundeffect( 0x33 ) ! # Add a timer to reset the id (serializable!) ! wolfpack.addtimer( random.randint( 2000, 3000 ), "training_dummy.resetid", [ item.serial ], 1 ) return 1 # Reset the id of a swinging dummy ! def resetid( object, args ): ! item = wolfpack.finditem( args[0] ) ! if( item and ( item.id == 0x1071 or item.id == 0x1075 ) ): ! item.id -= 1 item.update() |
|
From: <dar...@us...> - 2003-09-15 16:49:50
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv7754 Modified Files: bandages.py Log Message: Bugfixes Index: bandages.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/bandages.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** bandages.py 15 Sep 2003 12:00:44 -0000 1.2 --- bandages.py 15 Sep 2003 16:49:20 -0000 1.3 *************** *** 113,117 **** return ! else: char.message( 'You have to target either a corpse or a creature.' ) return --- 113,117 ---- return ! elif not target.char: char.message( 'You have to target either a corpse or a creature.' ) return |
|
From: <dar...@us...> - 2003-09-15 16:49:34
|
Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1:/tmp/cvs-serv7618/network
Modified Files:
uotxpackets.h
Log Message:
Bugfixes
Index: uotxpackets.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uotxpackets.h,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -d -r1.88 -r1.89
*** uotxpackets.h 23 Jul 2003 22:39:07 -0000 1.88
--- uotxpackets.h 15 Sep 2003 16:49:03 -0000 1.89
***************
*** 635,638 ****
--- 635,654 ----
0020: 0c -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
*/
+
+ // 0xBF Sub 0x22 Damage
+ class cUOTxDamage: public cUOPacket
+ {
+ public:
+ cUOTxDamage(): cUOPacket( 0xBF, 11 )
+ {
+ setShort( 1, 11 );
+ setShort( 3, 0x22 );
+ }
+
+ void setUnknown1( unsigned char data ) { (*this)[5] = data; }
+ void setSerial( unsigned int data ) { setInt( 6, data ); }
+ void setDamage( unsigned char data ) { (*this)[10] = data; }
+ };
+
// 0x21 DenyMove
class cUOTxDenyMove: public cUOPacket
|
|
From: <dar...@us...> - 2003-09-15 16:49:34
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv7618
Modified Files:
combat.cpp
Log Message:
Bugfixes
Index: combat.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/combat.cpp,v
retrieving revision 1.151
retrieving revision 1.152
diff -C2 -d -r1.151 -r1.152
*** combat.cpp 11 Sep 2003 15:33:58 -0000 1.151
--- combat.cpp 15 Sep 2003 16:49:03 -0000 1.152
***************
*** 764,777 ****
damage = pDefender->damage( DAMAGE_PHYSICAL, damage, pAttacker );
! if( !damage )
return;
! if( pAttacker->objectType() == enPlayer )
{
! P_PLAYER pp = dynamic_cast<P_PLAYER>(pAttacker);
!
! if( pp->socket() )
! pp->socket()->showSpeech( pDefender, QString::number( damage ), 0x1F, 6 );
! }
}
--- 764,780 ----
damage = pDefender->damage( DAMAGE_PHYSICAL, damage, pAttacker );
! if( !damage || pDefender->isDead() )
return;
! P_PLAYER pPlayer = dynamic_cast< P_PLAYER >( pAttacker );
!
! if( pPlayer && pPlayer->socket() )
{
! cUOTxDamage showdamage;
! showdamage.setSerial( pDefender->serial() );
! showdamage.setUnknown1( 1 ); // Always 1
! showdamage.setDamage( damage );
! pPlayer->socket()->send( &showdamage );
! }
}
***************
*** 809,830 ****
}*/
- /*
- //===== SPLITTING NPCS
- UI08 splitnum = 0;
- if( ( pDefender->split() > 0 ) && ( pDefender->hitpoints() >= 1 ) )
- {
- if( RandomNum( 0, 100 ) <= pDefender->splitchnc() )
- {
- if( pDefender->split() == 1 )
- splitnum = 1;
- else
- splitnum = RandomNum( 1, pDefender->split() );
-
- for( UI08 splitcount = 0; splitcount < splitnum; splitcount++ )
- cCharStuff::Split( pDefender );
- }
- }
- */
-
// We lost Stamina
if( pDefender->stamina() != oldStm && pDefender->objectType() == enPlayer )
--- 812,815 ----
***************
*** 834,841 ****
pp->socket()->sendStatWindow();
}
-
- // Get Hit sound + Animation
- playGetHitSoundEffect( pDefender );
- // pDefender->action( );
}
--- 819,822 ----
|
|
From: <co...@us...> - 2003-09-15 16:19:48
|
Update of /cvsroot/wpdev/xmlscripts/definitions/items/misc In directory sc8-pr-cvs1:/tmp/cvs-serv945 Modified Files: deeds.xml Log Message: added house deed (custom and classic) Index: deeds.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/items/misc/deeds.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** deeds.xml 28 Mar 2003 22:15:23 -0000 1.1 --- deeds.xml 15 Sep 2003 16:19:45 -0000 1.2 *************** *** 8,11 **** --- 8,16 ---- <definitions> + <item id="house"> <!-- house deed --> + <id>0x14ef</id> + <events>multideed</events> + <category>Buildings\House deed (Classic and Custom)</category> + </item> <item id="commodity_deed"> <id>0x14f0</id> |
|
From: <co...@us...> - 2003-09-15 16:19:21
|
Update of /cvsroot/wpdev/xmlscripts/definitions In directory sc8-pr-cvs1:/tmp/cvs-serv863 Modified Files: scripts.xml Log Message: added custom house events, gumps etc.. Index: scripts.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/scripts.xml,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** scripts.xml 15 Sep 2003 15:39:57 -0000 1.58 --- scripts.xml 15 Sep 2003 16:19:16 -0000 1.59 *************** *** 49,52 **** --- 49,56 ---- <script>runebook</script> + <!-- Multis --> + <script>multideed</script> + <script>signpost</script> + <!-- Moongate --> <script>moongate</script> |
|
From: <dar...@us...> - 2003-09-15 15:40:05
|
Update of /cvsroot/wpdev/xmlscripts/definitions/npcs/monsters In directory sc8-pr-cvs1:/tmp/cvs-serv25198/npcs/monsters Modified Files: undeads.xml Log Message: Removed DyeTubs and Bandages from Source and added some missing methods to PySocket and PyChar. Index: undeads.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/npcs/monsters/undeads.xml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** undeads.xml 7 Sep 2003 22:00:19 -0000 1.11 --- undeads.xml 15 Sep 2003 15:39:57 -0000 1.12 *************** *** 10,14 **** <!-- undead_base--> <npc id="undead_base"> ! <ai>2</ai> <wandertype>"circle" radius="20"</wandertype> <totame>1100</totame> --- 10,14 ---- <!-- undead_base--> <npc id="undead_base"> ! <ai>Monster_Aggressive_L1</ai> <wandertype>"circle" radius="20"</wandertype> <totame>1100</totame> |
|
From: <dar...@us...> - 2003-09-15 15:40:05
|
Update of /cvsroot/wpdev/xmlscripts/definitions/items/professions In directory sc8-pr-cvs1:/tmp/cvs-serv25198/items/professions Modified Files: healer.xml tailorer.xml Log Message: Removed DyeTubs and Bandages from Source and added some missing methods to PySocket and PyChar. Index: healer.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/items/professions/healer.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** healer.xml 26 Dec 2002 00:21:34 -0000 1.2 --- healer.xml 15 Sep 2003 15:39:57 -0000 1.3 *************** *** 14,17 **** --- 14,18 ---- <id>0x0e20</id> <category>Equipment\Misc\Bloody Bandages 2</category> + <events>bandages</events> </item> *************** *** 19,22 **** --- 20,24 ---- <id>0x0e21</id> <category>Equipment\Misc\Clean Bandages 2</category> + <events>bandages</events> </item> *************** *** 24,27 **** --- 26,30 ---- <id>0x0e22</id> <category>Professions\Healer\Bloody Bandages 1</category> + <events>bandages</events> </item> *************** *** 29,32 **** --- 32,36 ---- <id>0x0ee9</id> <category>Professions\Healer\Clean Bandages 1</category> + <events>bandages</events> </item> Index: tailorer.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/items/professions/tailorer.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tailorer.xml 1 Feb 2003 15:07:22 -0000 1.4 --- tailorer.xml 15 Sep 2003 15:39:57 -0000 1.5 *************** *** 331,334 **** --- 331,335 ---- <id>0x0fab</id> <category>Professions\Tailorer\Dying Tub</category> + <events>environment</events> </item> |
|
From: <dar...@us...> - 2003-09-15 15:40:04
|
Update of /cvsroot/wpdev/xmlscripts/definitions In directory sc8-pr-cvs1:/tmp/cvs-serv25198 Modified Files: scripts.xml Log Message: Removed DyeTubs and Bandages from Source and added some missing methods to PySocket and PyChar. Index: scripts.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/scripts.xml,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** scripts.xml 1 Sep 2003 04:56:10 -0000 1.57 --- scripts.xml 15 Sep 2003 15:39:57 -0000 1.58 *************** *** 31,34 **** --- 31,35 ---- <script>book</script> <script>equipment</script> + <script>bandages</script> <!-- Commands --> |
|
From: <dar...@us...> - 2003-09-15 12:49:10
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv18229
Modified Files:
TmpEff.h dbl_single_click.cpp dragdrop.cpp items.cpp log.cpp
res.rc srvparams.cpp srvparams.h targetactions.cpp
targetactions.h tmpeff.cpp
Log Message:
Removed DyeTubs and Bandages from Source and added some missing methods to PySocket and PyChar.
Index: TmpEff.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/TmpEff.h,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** TmpEff.h 12 Sep 2003 15:39:55 -0000 1.39
--- TmpEff.h 15 Sep 2003 12:49:05 -0000 1.40
***************
*** 187,223 ****
typedef SingletonHolder<cTempEffects> TempEffects;
- // cRepeatAction
- class cRepeatAction: public cTempEffect
- {
- private:
- SERIAL _mage;
- UINT8 _anim;
- UINT32 _delay;
- public:
- cRepeatAction( P_CHAR mage, UINT8 anim, UINT32 delay );
- virtual void Expire();
- };
-
- class cDelayedHeal: public cTempEffect
- {
- private:
- UINT16 amount;
- public:
- cDelayedHeal( P_CHAR pSource, P_CHAR pTarget, UINT16 _amount );
- virtual void Expire();
- };
-
-
- class AbstractAI;
-
- class cStablemasterRefreshTimer: public cTempEffect
- {
- private:
- P_NPC m_npc;
- AbstractAI* m_interface;
- public:
- cStablemasterRefreshTimer( P_NPC m_npc, AbstractAI* m_interface, UINT32 time );
- virtual void Expire();
- };
-
#endif
--- 187,189 ----
Index: dbl_single_click.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/dbl_single_click.cpp,v
retrieving revision 1.224
retrieving revision 1.225
diff -C2 -d -r1.224 -r1.225
*** dbl_single_click.cpp 11 Sep 2003 16:19:50 -0000 1.224
--- dbl_single_click.cpp 15 Sep 2003 12:49:05 -0000 1.225
***************
*** 379,383 ****
return;
! // Drinks (This needs some other effects as well)
case 105:
pc_currchar->soundEffect( 0x30 + RandomNum( 0, 1 ) );
--- 379,383 ----
return;
! // Drinks
case 105:
pc_currchar->soundEffect( 0x30 + RandomNum( 0, 1 ) );
***************
*** 386,414 ****
return;
- case 202:
- // if ( pi->id() == 0x14F0 || pi->id() == 0x1869 ) // Check for Deed/Teleporter + Guild Type
- // {
- // pc_currchar->setFx1( pi->serial() );
- // StonePlacement(socket);
- // return;
- // }
- // else if (pi->id() == 0x0ED5) // Check for Guildstone + Guild Type
- // {
- // pc_currchar->setFx1( pi->serial() );
- // cGuildStone *pStone = dynamic_cast<cGuildStone*>(pi);
- // if ( pStone != NULL )
- // pStone->Menu(s, 1);
- // return;
- // }
- // else
- // Console::instance()->send("Unhandled guild item type named: %s with ID of: %X", pi->name().ascii(), pi->id());
- return;
- // End of guild stuff
-
- // PlayerVendors deed
- case 217:
- qWarning("Player Vendor code is gone, sorry... implement in python");
- break;
-
case 222: // player clicks on a house item (sign) to set ban/friendlists, rename
{
--- 386,389 ----
***************
*** 445,460 ****
return;
- // Dying tub
- case 406:
- socket->sysMessage( tr( "What do you want to dye?" ) );
- socket->attachTarget( new cDyeTarget( pi->color() ) );
- return;
-
- case 1000: // Ripper...bank checks
- {
- socket->sysMessage(tr("To cash this, you need to drop it on a banker."));
- return;
- }
-
// 1001: Sword Weapons (Swordsmanship)
case 1001:
--- 420,423 ----
***************
*** 665,675 ****
// }
// return; // alchemy
- case 0x0E21: // healing
- {
- cSkHealing* target = new cSkHealing( pi->serial() );
- socket->attachTarget( target );
- socket->sysMessage( tr("Who will you use the bandages on?") );
- }
- return;
case 0x14FB:
case 0x14FC:
--- 628,631 ----
Index: dragdrop.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/dragdrop.cpp,v
retrieving revision 1.200
retrieving revision 1.201
diff -C2 -d -r1.200 -r1.201
*** dragdrop.cpp 13 Sep 2003 13:37:15 -0000 1.200
--- dragdrop.cpp 15 Sep 2003 12:49:05 -0000 1.201
***************
*** 147,164 ****
// ==== Grabbing the Item is allowed here ====
- // Remove eventual item-bonusses if we're unequipping something
- if( pItem->container() && pItem->container()->isChar() )
- {
- P_CHAR wearer = dynamic_cast<P_CHAR>( pItem->container() );
-
- // resend the stat window
- if( wearer && wearer->objectType() == enPlayer )
- {
- P_PLAYER pp = dynamic_cast<P_PLAYER>(wearer);
- if( pp->socket() )
- pp->socket()->sendStatWindow();
- }
- }
-
// Send the user a pickup sound if we're picking it up
// From a container/paperdoll
--- 147,150 ----
***************
*** 201,204 ****
--- 187,204 ----
else
pItem->removeFromCont( true );
+
+ // Remove eventual item-bonusses if we're unequipping something
+ if( pItem->container() && pItem->container()->isChar() )
+ {
+ P_CHAR wearer = dynamic_cast<P_CHAR>( pItem->container() );
+
+ // resend the stat window
+ if( wearer && wearer->objectType() == enPlayer )
+ {
+ P_PLAYER pp = dynamic_cast<P_PLAYER>(wearer);
+ if( pp->socket() )
+ pp->socket()->sendStatWindow();
+ }
+ }
// The item was in a multi
Index: items.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/items.cpp,v
retrieving revision 1.352
retrieving revision 1.353
diff -C2 -d -r1.352 -r1.353
*** items.cpp 14 Sep 2003 16:31:48 -0000 1.352
--- items.cpp 15 Sep 2003 12:49:05 -0000 1.353
***************
*** 2354,2357 ****
--- 2354,2358 ----
// Flags
+ else GET_PROPERTY( "dye", dye() ? 1 : 0 )
else GET_PROPERTY( "decay", priv_ & 0x01 ? 0 : 1 )
else GET_PROPERTY( "newbie", priv_ & 0x02 ? 1 : 0 )
Index: log.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/log.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** log.cpp 15 Sep 2003 02:00:41 -0000 1.4
--- log.cpp 15 Sep 2003 12:49:05 -0000 1.5
***************
*** 69,76 ****
if ( !d.exists(path) )
{
! Console::instance()->ChangeColor( WPC_YELLOW );
! Console::instance()->send( "WARNING: " );
! Console::instance()->ChangeColor( WPC_NORMAL );
! Console::instance()->send( QString("log path (%1) doesn't exist, creating\n").arg(path) );
d.mkdir( path );
}
--- 69,73 ----
if ( !d.exists(path) )
{
! Console::instance()->log( LOG_WARNING, QString("log path (%1) doesn't exist, creating.\n").arg(path) );
d.mkdir( path );
}
***************
*** 83,90 ****
if( !logfile.open( IO_WriteOnly | IO_Append | IO_Translate ) )
{
! Console::instance()->ChangeColor( WPC_RED );
! Console::instance()->send( "ERROR: " );
! Console::instance()->ChangeColor( WPC_NORMAL );
! Console::instance()->send( QString( "Couldn't open logfile '%1'\n" ).arg( path + filename ) );
return false;
}
--- 80,84 ----
if( !logfile.open( IO_WriteOnly | IO_Append | IO_Translate ) )
{
! Console::instance()->log( LOG_ERROR, QString( "Couldn't open logfile '%1'\n" ).arg( path + filename ) );
return false;
}
Index: res.rc
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/res.rc,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** res.rc 27 Aug 2003 00:50:08 -0000 1.14
--- res.rc 15 Sep 2003 12:49:05 -0000 1.15
***************
*** 1,4 ****
--- 1,5 ----
//Microsoft Developer Studio generated resource script.
//
+ #include "resrc1.h"
#define APSTUDIO_READONLY_SYMBOLS
***************
*** 8,11 ****
--- 9,16 ----
//
#include "resource.h"
+
+ /////////////////////////////////////////////////////////////////////////////
+ #undef APSTUDIO_READONLY_SYMBOLS
+
/////////////////////////////////////////////////////////////////////////////
//
***************
*** 14,18 ****
VS_VERSION_INFO VERSIONINFO
! FILEVERSION 12,9,1,0
PRODUCTVERSION 13,0,0,0
FILEFLAGSMASK 0x3fL
--- 19,23 ----
VS_VERSION_INFO VERSIONINFO
! FILEVERSION 12,9,4,0
PRODUCTVERSION 13,0,0,0
FILEFLAGSMASK 0x3fL
***************
*** 33,37 ****
VALUE "CompanyName", "Wolfpack Development Team\0"
VALUE "FileDescription", "Ultima Online Server Emulator\0"
! VALUE "FileVersion", "12, 9, 1, 0\0"
VALUE "InternalName", "\0"
VALUE "LegalCopyright", "© 2002-2003 Wolfpack Dev. Team\0"
--- 38,42 ----
VALUE "CompanyName", "Wolfpack Development Team\0"
VALUE "FileDescription", "Ultima Online Server Emulator\0"
! VALUE "FileVersion", "12, 9, 4, 0\0"
VALUE "InternalName", "\0"
VALUE "LegalCopyright", "© 2002-2003 Wolfpack Dev. Team\0"
***************
*** 58,59 ****
--- 63,104 ----
// remains consistent on all systems.
IDI_ICON2 ICON DISCARDABLE "icon2.ico"
+
+ #ifdef APSTUDIO_INVOKED
+ /////////////////////////////////////////////////////////////////////////////
+ //
+ // TEXTINCLUDE
+ //
+
+ 1 TEXTINCLUDE DISCARDABLE
+ BEGIN
+ "resrc1.h\0"
+ END
+
+ 2 TEXTINCLUDE DISCARDABLE
+ BEGIN
+ "#include ""resource.h""\r\n"
+ "\0"
+ END
+
+ 3 TEXTINCLUDE DISCARDABLE
+ BEGIN
+ "\r\n"
+ "\0"
+ END
+
+ #endif // APSTUDIO_INVOKED
+
+ ////////////////////////////////////////////////////////////////////////////
+
+
+
+ #ifndef APSTUDIO_INVOKED
+ /////////////////////////////////////////////////////////////////////////////
+ //
+ // Generated from the TEXTINCLUDE 3 resource.
+ //
+
+
+ /////////////////////////////////////////////////////////////////////////////
+ #endif // not APSTUDIO_INVOKED
+
Index: srvparams.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/srvparams.cpp,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -d -r1.88 -r1.89
*** srvparams.cpp 9 Sep 2003 23:09:30 -0000 1.88
--- srvparams.cpp 15 Sep 2003 12:49:05 -0000 1.89
***************
*** 132,136 ****
skillDelay_ = getNumber("Game Speed", "SkillDelay", 7, true);
skillLevel_ = getNumber("Game Speed", "SkillLevel", 3, true);
- bandageDelay_ = getNumber("Game Speed", "BandageDelay", 6, true);
maxStealthSteps_ = getNumber("Game Speed", "Max Stealth Steps", 10, true);
runningStamSteps_ = getNumber("Game Speed", "Running Stamina Steps", 15, true);
--- 132,135 ----
***************
*** 160,164 ****
lootdecayswithcorpse_ = getBool("General", "Loot Decays With Corpse", true, true);
invisTimer_ = getDouble("General", "InvisTimer", 60, true);
- bandageInCombat_ = getBool("General", "Bandage In Combat", true, true);
poisonTimer_ = getNumber("General", "PoisonTimer", 180, true);
hungerDamage_ = getNumber("General", "Hunger Damage", 0, true);
--- 159,162 ----
Index: srvparams.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/srvparams.h,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** srvparams.h 9 Sep 2003 23:09:30 -0000 1.56
--- srvparams.h 15 Sep 2003 12:49:05 -0000 1.57
***************
*** 95,100 ****
unsigned short skillDelay_;
int skillLevel_;
- unsigned short bandageDelay_;
- bool bandageInCombat_;
unsigned int poisonTimer_;
signed int maxStealthSteps_;
--- 95,98 ----
***************
*** 204,209 ****
float invisTimer() const;
unsigned short skillDelay() const;
- unsigned short bandageDelay() const;
- bool bandageInCombat() const;
unsigned int poisonTimer() const;
signed int maxStealthSteps() const;
--- 202,205 ----
***************
*** 426,439 ****
{
return skillDelay_;
- }
-
- inline unsigned short cSrvParams::bandageDelay() const
- {
- return bandageDelay_;
- }
-
- inline bool cSrvParams::bandageInCombat() const
- {
- return bandageInCombat_;
}
--- 422,425 ----
Index: targetactions.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/targetactions.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** targetactions.cpp 11 Sep 2003 16:19:50 -0000 1.30
--- targetactions.cpp 15 Sep 2003 12:49:05 -0000 1.31
***************
*** 42,188 ****
#include "player.h"
- bool cSkHealing::responsed( cUOSocket *socket, cUORxTarget *target )
- {
- P_ITEM pBandage = FindItemBySerial( bandageSerial ); // item index of bandage
-
- P_CHAR pTarget = FindCharBySerial( target->serial() );
-
- if( !pTarget )
- {
- socket->sysMessage( tr( "Please select a human being or an animal to heal." ) );
- return true;
- }
-
- P_PLAYER pHealer = socket->player();
-
- // Check for an ongoing fight
- if( !SrvParams->bandageInCombat() && ( pTarget->isAtWar() || pHealer->isAtWar() ) )
- {
- P_CHAR pAttacker = FindCharBySerial( pHealer->attackerSerial() );
- if( pAttacker && pAttacker->isAtWar() )
- {
- socket->sysMessage( tr("You can`t heal while in a fight!") );
- return true;
- }
- }
-
- // Out of range?
- if( !pHealer->inRange( pTarget, 5 ) )
- {
- socket->sysMessage( tr("You are not close enough to apply the bandages.") );
- return true;
- }
-
- // Healing Criminals flags you criminal as well
- if( pHealer->isInnocent() && !pTarget->isInnocent() )
- pHealer->isCriminal();
-
- // Resurrecting
- if( pTarget->isDead() )
- {
- if( pHealer->skillValue( HEALING ) < 800 || pHealer->skillValue( ANATOMY ) < 800 )
- {
- socket->sysMessage( tr( "You are not skilled enough to resurrect." ) );
- return true;
- }
-
- int reschance = static_cast<int>( ( pHealer->skillValue( HEALING ) + pHealer->skillValue( ANATOMY ) ) * 0.17 );
- int rescheck = RandomNum( 1, 100 );
-
- if( pHealer->checkSkill( HEALING, 800, 1000 ) && pHealer->checkSkill( ANATOMY, 800, 1000 ) && reschance <= rescheck )
- socket->sysMessage( tr( "You failed to resurrect the ghost." ) );
- else
- {
- pTarget->resurrect();
- socket->sysMessage( tr( "Because of your skill, you were able to resurrect the ghost." ) );
- }
-
- pBandage->reduceAmount();
-
- return true;
- }
-
- // Cure Poison
- if( pTarget->poisoned() )
- {
- UINT8 firstSkill = HEALING;
- UINT8 secondSkill = ANATOMY;
-
- if( !pTarget->isHuman() )
- {
- firstSkill = VETERINARY;
- secondSkill = ANIMALLORE;
- }
-
- if( pHealer->skillValue( firstSkill ) < 600 || pHealer->skillValue( secondSkill ) < 600 )
- {
- socket->sysMessage( tr("You are not skilled enough to cure poison.") );
- return true;
- }
-
- unsigned int curechance = static_cast<int>( ( pHealer->skillValue( firstSkill ) + pHealer->skillValue( secondSkill ) ) *0.67 );
- unsigned int curecheck = RandomNum( 1, 100 );
- pHealer->checkSkill( firstSkill, 600, 1000 );
- pHealer->checkSkill( secondSkill, 600, 1000 );
-
- if( curechance <= curecheck )
- {
- pTarget->setPoisoned( 0 );
- socket->sysMessage( tr( "Because of your skill, you were able to cure the poison." ) );
- }
- else
- {
- socket->sysMessage( tr( "You fail to cure the poison." ) );
- }
-
- pBandage->reduceAmount();
- return true;
- }
-
- // Normal Healing
- if( pTarget->hitpoints() == pTarget->strength() )
- {
- socket->sysMessage( tr( "That being is not damaged." ) );
- return true;
- }
-
- // Healing Humans
- UINT8 firstSkill = HEALING;
- UINT8 secondSkill = ANATOMY;
-
- if( !pTarget->isHuman() )
- {
- firstSkill = VETERINARY;
- secondSkill = ANIMALLORE;
- }
-
- if( !pHealer->checkSkill( firstSkill, 0, 1000 ) )
- {
- socket->sysMessage( tr( "You apply the bandages, but they barely help!" ) );
- pTarget->setHitpoints( pTarget->hitpoints() + 1 );
- }
- else
- {
- unsigned int healmin = ( ( ( pHealer->skillValue( firstSkill ) / 5 ) + ( pHealer->skillValue( secondSkill ) / 5 ) ) + 3 );
- unsigned int healmax = ( ( ( pHealer->skillValue( firstSkill ) / 5 ) + ( pHealer->skillValue( secondSkill ) / 2 ) ) + 10 );
- unsigned int amount = RandomNum( healmin, healmax );
-
- // We don't heal over the maximum amount.
- if( pTarget->hitpoints() + amount > pTarget->strength() )
- amount = pTarget->strength() - pTarget->hitpoints();
-
- // Show the HitUnarmed Animation and Make the Effect delayed
- pHealer->action( 0x09 );
- cTempEffect *tEff = new cDelayedHeal( pHealer, pTarget, amount );
- tEff->setExpiretime_s( SrvParams->bandageDelay() );
- TempEffects::instance()->insert( tEff );
- }
-
- pHealer->setObjectDelay( SetTimerSec( pHealer->objectDelay(), SrvParams->objectDelay() + SrvParams->bandageDelay() ) );
- pBandage->reduceAmount();
-
- return true;
- }
-
bool cSkLockpicking::responsed( cUOSocket *socket, cUORxTarget *target )
{
--- 42,45 ----
***************
*** 233,260 ****
}
}*/
- return true;
- }
-
- bool cDyeTarget::responsed( cUOSocket* socket, cUORxTarget *target )
- {
- P_ITEM pi = FindItemBySerial(target->serial());
- if ( pi && pi->dye() == 1 )
- {
- P_CHAR pc = pi->getOutmostChar();
- if(pc == socket->player() || pi->isInWorld())
- {//if on ground or currchar is owning the item - AntiChrist
- pi->setColor( static_cast<unsigned short>( color ) );
- pi->update();
- socket->soundEffect( 0x023e, pi );
- }
- else
- {
- socket->sysMessage( tr("That is not yours!!") );
- }
- }
- else
- {
- socket->sysMessage( tr("You can only dye cloth with this.") );
- }
return true;
}
--- 90,93 ----
Index: targetactions.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/targetactions.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** targetactions.h 12 Jan 2003 18:11:32 -0000 1.4
--- targetactions.h 15 Sep 2003 12:49:05 -0000 1.5
***************
*** 36,47 ****
#include "typedefs.h"
- class cSkHealing : public cTargetRequest
- {
- SERIAL bandageSerial;
- public:
- cSkHealing( SERIAL bandage ) : bandageSerial(bandage) {}
- bool responsed( cUOSocket *socket, cUORxTarget *target );
- };
-
class cSkLockpicking : public cTargetRequest
{
--- 36,39 ----
***************
*** 50,61 ****
cSkLockpicking ( SERIAL lockpick ) : lockPick(lockpick) {}
bool responsed( cUOSocket *socket, cUORxTarget *target );
- };
-
- class cDyeTarget : public cTargetRequest
- {
- int color;
- public:
- cDyeTarget( int colorID ) : color(colorID) {}
- bool responsed( cUOSocket* socket, cUORxTarget *target );
};
--- 42,45 ----
Index: tmpeff.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/tmpeff.cpp,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** tmpeff.cpp 12 Sep 2003 15:39:55 -0000 1.63
--- tmpeff.cpp 15 Sep 2003 12:49:05 -0000 1.64
***************
*** 344,366 ****
}
- cRepeatAction::cRepeatAction( P_CHAR mage, UINT8 anim, UINT32 delay )
- {
- _mage = mage->serial();
- _anim = anim;
- _delay = delay;
- mage->action( anim );
- expiretime = uiCurrentTime + delay;
- dispellable = false;
- serializable = false;
- }
-
- void cRepeatAction::Expire()
- {
- P_CHAR pMage = FindCharBySerial( _mage );
-
- if( pMage )
- TempEffects::instance()->insert( new cRepeatAction( pMage, _anim, _delay ) );
- }
-
void cTempEffects::insert( cTempEffect *pT )
{
--- 344,347 ----
***************
*** 392,452 ****
teffects.erase( it );
std::make_heap( teffects.begin(), teffects.end(), cTempEffects::ComparePredicate() );
- }
- }
- }
-
- void cDelayedHeal::Expire()
- {
- P_CHAR pSource = FindCharBySerial( destSer );
- P_CHAR pTarget = FindCharBySerial( sourSer );
-
- if( !pSource || !pTarget )
- return;
-
- if( !pSource->inRange( pTarget, 5 ) )
- {
- if( pSource->objectType() == enPlayer )
- {
- P_PLAYER pp = dynamic_cast<P_PLAYER>(pSource);
- if( pp->socket() )
- pp->socket()->sysMessage( tr( "You are standing too far away to apply any bandages." ) );
- }
- return;
- }
- }
-
- cDelayedHeal::cDelayedHeal( P_CHAR pSource, P_CHAR pTarget, UINT16 _amount )
- {
- // Switching them here is important because we want to
- // keep track of our current healing targets
- destSer = pSource->serial();
- sourSer = pTarget->serial();
- amount = _amount;
- objectid = "cDelayedHeal";
- serializable = false;
- dispellable = false;
- }
-
- cStablemasterRefreshTimer::cStablemasterRefreshTimer( P_NPC pNPC, AbstractAI* interface_, UINT32 time )
- {
- m_npc = pNPC;
- m_interface = interface_;
- objectid = "cStablemasterRefreshTimer";
- serializable = false;
- dispellable = false;
- expiretime = uiCurrentTime + time * MY_CLOCKS_PER_SEC;
- }
-
- void cStablemasterRefreshTimer::Expire()
- {
- // lets check if the npc exists, and if the
- // npc ai on the npc is the same like the one which set the timer
- if( m_npc )
- {
- AbstractAI* ai = m_npc->ai();
- if( ai && ai == m_interface )
- {
- Human_Stablemaster* pAI = dynamic_cast< Human_Stablemaster* >(ai);
- pAI->refreshStock();
}
}
--- 373,376 ----
|
|
From: <dar...@us...> - 2003-09-15 12:49:09
|
Update of /cvsroot/wpdev/wolfpack/python
In directory sc8-pr-cvs1:/tmp/cvs-serv18229/python
Modified Files:
char.cpp socket.cpp
Log Message:
Removed DyeTubs and Bandages from Source and added some missing methods to PySocket and PyChar.
Index: char.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/char.cpp,v
retrieving revision 1.104
retrieving revision 1.105
diff -C2 -d -r1.104 -r1.105
*** char.cpp 13 Sep 2003 13:08:41 -0000 1.104
--- char.cpp 15 Sep 2003 12:49:05 -0000 1.105
***************
*** 1472,1478 ****
{
Q_UNUSED(args);
! if( !self->pChar || self->pChar->free || ( !checkArgObject( 0 ) && !checkArgCoord( 0 ) ) || !checkArgInt( 1 ) )
return PyFalse;
Coord_cl pos;
--- 1472,1483 ----
{
Q_UNUSED(args);
! if( self->pChar->free || ( !checkArgObject( 0 ) && !checkArgCoord( 0 ) ) || !checkArgInt( 1 ) )
return PyFalse;
+ P_PLAYER pPlayer = dynamic_cast< P_PLAYER >( self->pChar );
+
+ if( pPlayer && pPlayer->isGM() )
+ return PyTrue;
+
Coord_cl pos;
***************
*** 1488,1492 ****
if( !obj )
! obj = getArgItem( 0 );
if( !obj )
--- 1493,1504 ----
if( !obj )
! {
! P_ITEM pItem = getArgItem( 0 );
!
! if( pItem && pItem->getOutmostChar() == self->pChar )
! return PyTrue;
!
! obj = pItem;
! }
if( !obj )
***************
*** 1510,1513 ****
--- 1522,1546 ----
}
+ static PyObject* wpChar_canpickup( wpChar* self, PyObject* args )
+ {
+ if( self->pChar->free )
+ return PyFalse;
+
+ if( PyTuple_Size( args ) != 1 )
+ {
+ PyErr_BadArgument();
+ return 0;
+ }
+
+ P_ITEM pItem = getArgItem( 0 );
+
+ P_PLAYER pPlayer = dynamic_cast< P_PLAYER >( self->pChar );
+
+ if( !pPlayer )
+ return PyFalse;
+
+ return pPlayer->canPickUp( pItem ) ? PyTrue : PyFalse;
+ }
+
static PyMethodDef wpCharMethods[] =
{
***************
*** 1538,1541 ****
--- 1571,1575 ----
{ "disturb", (getattrofunc)wpChar_disturb, METH_VARARGS, "Disturbs whatever this character is doing right now." },
{ "canreach", (getattrofunc)wpChar_canreach, METH_VARARGS, "Checks if this character can reach a certain object." },
+ { "canpickup", (getattrofunc)wpChar_canpickup, METH_VARARGS, NULL },
// Mostly NPC functions
Index: socket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/socket.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** socket.cpp 28 Aug 2003 20:56:17 -0000 1.42
--- socket.cpp 15 Sep 2003 12:49:05 -0000 1.43
***************
*** 635,638 ****
--- 635,650 ----
}
+ static PyObject *wpSocket_log( wpSocket *self, PyObject *args )
+ {
+ char loglevel;
+ char *text;
+
+ if( !PyArg_ParseTuple( args, "bs:socket.log( loglevel, text )", &loglevel, &text ) )
+ return 0;
+
+ self->pSock->log( (eLogLevel)loglevel, text );
+ return PyTrue;
+ }
+
static PyMethodDef wpSocketMethods[] =
{
***************
*** 657,660 ****
--- 669,673 ----
{ "resendstatus", (getattrofunc)wpSocket_resendstatus, METH_VARARGS, "Resends the status windows to this client." },
{ "customize", (getattrofunc)wpSocket_customize, METH_VARARGS, "Begin house customization." },
+ { "log", (getattrofunc)wpSocket_log, METH_VARARGS, NULL },
{ NULL, NULL, 0, NULL }
};
|
|
From: <dar...@us...> - 2003-09-15 12:46:05
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv17546 Modified Files: environment.py Log Message: Test logging for dyetubs. Index: environment.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/environment.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** environment.py 15 Sep 2003 12:42:15 -0000 1.5 --- environment.py 15 Sep 2003 12:46:00 -0000 1.6 *************** *** 214,228 **** # Valid Target? ! if target.item.getoutmostchar() != char: ! char.socket.sysmessage( "You have to have this in your belongings." ) ! return ! ! if not target.item.dye: ! char.socket.sysmessage( "You cannot dye this." ) ! return ! target.item.color = dyetub.color target.item.update() ! char.soundeffect( 0x023e ) # Table of IDs mapped to handler functions --- 214,230 ---- # Valid Target? ! if not char.gm: ! if target.item.getoutmostchar() != char: ! char.socket.sysmessage( "You have to have this in your belongings." ) ! return ! ! if not target.item.dye: ! char.socket.sysmessage( "You cannot dye this." ) ! return ! ! char.socket.log( LOG_TRACE, "Dying item (%x,%x) using tub (%x,%x)\n" % ( target.item.serial, target.item.color, dyetub.serial, dyetub.color ) ) target.item.color = dyetub.color target.item.update() ! char.soundeffect( 0x023e ) # Table of IDs mapped to handler functions |
|
From: <dar...@us...> - 2003-09-15 12:42:18
|
Update of /cvsroot/wpdev/xmlscripts/scripts/wolfpack In directory sc8-pr-cvs1:/tmp/cvs-serv16462/wolfpack Modified Files: consts.py Log Message: Added the dying tub to environment.py Added logging constants for socket.log. Index: consts.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/wolfpack/consts.py,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** consts.py 20 Aug 2003 15:59:57 -0000 1.21 --- consts.py 15 Sep 2003 12:42:15 -0000 1.22 *************** *** 282,283 **** --- 282,291 ---- SEXTANT_MAP_HEIGHT = 5120 SEXTANT_MAP_WIDTH = 4096 + + # LogLevels + LOG_MESSAGE = 0 + LOG_ERROR = 1 + LOG_WARNING = 2 + LOG_NOTICE = 3 + LOG_TRACE = 4 + LOG_DEBUG = 5 |
|
From: <dar...@us...> - 2003-09-15 12:42:18
|
Update of /cvsroot/wpdev/xmlscripts/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv16462
Modified Files:
environment.py
Log Message:
Added the dying tub to environment.py
Added logging constants for socket.log.
Index: environment.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/environment.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** environment.py 21 Aug 2003 22:34:27 -0000 1.4
--- environment.py 15 Sep 2003 12:42:15 -0000 1.5
***************
*** 192,195 ****
--- 192,229 ----
char.message( 'Thats an invalid color' )
+ # Dying Tub
+ def dyingtub( char, item ):
+ if not char.canreach( item, 2 ):
+ char.socket.sysmessage( "You can't reach this." )
+ return 1
+
+ char.socket.sysmessage( 'What do you want to use this on?' )
+ char.socket.attachtarget( 'environment.dyingtub_response', [ item.serial ] )
+ return 1
+
+ def dyingtub_response( char, args, target ):
+ dyetub = wolfpack.finditem( args[0] )
+
+ if not dyetub or not char.canreach( dyetub, 2 ):
+ char.message( "You can't reach the dyetub from here." )
+ return
+
+ if not target.item:
+ char.message( 'You need to target an item.' )
+ return
+
+ # Valid Target?
+ if target.item.getoutmostchar() != char:
+ char.socket.sysmessage( "You have to have this in your belongings." )
+ return
+
+ if not target.item.dye:
+ char.socket.sysmessage( "You cannot dye this." )
+ return
+
+ target.item.color = dyetub.color
+ target.item.update()
+ char.soundeffect( 0x023e )
+
# Table of IDs mapped to handler functions
actions = {
***************
*** 221,225 ****
# Hair Dyes
0xe27: hairdye,
! 0xeff: hairdye
}
--- 255,263 ----
# Hair Dyes
0xe27: hairdye,
! 0xeff: hairdye,
!
! # Dye Tub
! 0xfab: dyingtub,
!
}
|
|
From: <dar...@us...> - 2003-09-15 12:00:48
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv5509 Modified Files: bandages.py Log Message: Index: bandages.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/bandages.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bandages.py 14 Sep 2003 21:43:55 -0000 1.1 --- bandages.py 15 Sep 2003 12:00:44 -0000 1.2 *************** *** 61,76 **** return 0 ! if not char.canreach( target, 2 ): char.message( 'You can''t reach that.' ) return 0 if target.id != 0x2006: ! char.message( 'You have to target a living thing.' ) return 0 # Check Owner ! owner = wolfpack.findchar( target.owner ) ! ! if not owner or not owner.dead: char.message( 'You can''t help them anymore.' ) return 0 --- 61,74 ---- return 0 ! if not char.gm and not char.canreach( target, 2 ): char.message( 'You can''t reach that.' ) return 0 if target.id != 0x2006: ! char.message( 'Try using these on a corpse.' ) return 0 # Check Owner ! if not target.owner or not target.owner.dead: char.message( 'You can''t help them anymore.' ) return 0 *************** *** 79,83 **** def validCharTarget( char, target ): ! # Do we have a valid target? Corpse Healing not done yet. if not target: char.message( 'You have to target a living thing.' ) --- 77,81 ---- def validCharTarget( char, target ): ! # Do we have a valid target if not target: char.message( 'You have to target a living thing.' ) *************** *** 95,99 **** # Already at full health if target.health >= target.strength: ! if target.char == char: char.message( 'You are healthy.' ) else: --- 93,97 ---- # Already at full health if target.health >= target.strength: ! if target == char: char.message( 'You are healthy.' ) else: *************** *** 106,112 **** corpse = None ! if target.item and validCorpseTarget( char, target ): ! corpse = target.item ! elif not validCharTarget( char, target.char ): return --- 104,118 ---- corpse = None ! if target.item: ! if validCorpseTarget( char, target.item ): ! corpse = target.item ! else: ! return ! ! elif target.char and not validCharTarget( char, target.char ): ! return ! ! else: ! char.message( 'You have to target either a corpse or a creature.' ) return *************** *** 143,156 **** char.action( 0x09 ) - - if char == target.char: - char.message( 'You start applying bandages on yourself' ) - else: - char.message( 'You start applying bandages on %s' % target.char.name ) - char.turnto( target.char ) if corpse: char.addtimer( random.randint( 2500, 5000 ), 'bandages.bandage_timer', [ 1, success, target.item.serial, baseid ] ) # It takes 5 seconds to bandage else: char.addtimer( random.randint( 1500, 2500 ), 'bandages.bandage_timer', [ 0, success, target.char.serial, baseid ] ) # It takes 5 seconds to bandage --- 149,162 ---- char.action( 0x09 ) if corpse: char.addtimer( random.randint( 2500, 5000 ), 'bandages.bandage_timer', [ 1, success, target.item.serial, baseid ] ) # It takes 5 seconds to bandage else: + if char == target.char: + char.message( 'You start applying bandages on yourself' ) + else: + char.message( 'You start applying bandages on %s' % target.char.name ) + char.turnto( target.char ) + char.addtimer( random.randint( 1500, 2500 ), 'bandages.bandage_timer', [ 0, success, target.char.serial, baseid ] ) # It takes 5 seconds to bandage *************** *** 162,209 **** resurrect = args[0] success = args[1] - target = wolfpack.findchar( args[2] ) baseid = args[3] ! ! if not target: ! return ! ! if not success: ! if resurrect: ! char.message( 'You fail to resurrect the target.' ) ! else: if target != char: char.message( 'You fail applying bandages to %s.' % target.name ) else: char.message( 'You fail applying bandages to yourself.' ) - return - else: - # Create bloody bandages - if baseid == 0xe21: - item = additem( 'e20' ) - if not tobackpack( item, char ): - item.update() - - elif baseid == 0xee9: - item = additem( 'e22' ) - if not tobackpack( item, char ): - item.update() - - if resurrecting: - corpse_owner = wolfpack.findchar( target.owner ) - - if corpse_owner: - corpse_owner.moveto( target.pos ) - corpse_owner.update() - corpse_owner.resurrect() - char.message( 'You successfully resurrect ' + corpse_owner.name ) - - else: - if not validCharTarget( char, target ): return ! # Human target ? ! is target.id == 0x190 or target.id == 0x191: firstskill = HEALING ! secondskill = ANATOMY: else: firstskill = VETERINARY --- 168,224 ---- resurrect = args[0] success = args[1] baseid = args[3] ! ! # Corpse Target ! if resurrect: ! target = wolfpack.finditem( args[2] ) ! ! owner = target.owner ! ! if not validCorpseTarget( char, target ): ! return ! ! if not success: ! char.message( 'You fail to resurrect the target.' ) ! return ! ! if target.owner: ! target.owner.moveto( target.pos ) ! target.owner.update() ! target.owner.resurrect() ! ! # Move all the belongings from the corpse to the character ! backpack = target.owner.getbackpack() ! ! for item in target.content: ! # Random Position (for now, maybe storing the original position in a tag would be good) ! # Handle Weight but no Auto Stacking ! backpack.additem( item, 1, 1, 0 ) ! item.update() ! ! target.delete() ! ! char.message( 'You successfully resurrect ' + owner.name ) ! else: ! char.message( 'You can''t help them anymore' ) ! ! # Character Target ! else: ! target = wolfpack.findchar( args[2] ) ! ! if not validCharTarget( char, target ): ! return ! ! if not success: if target != char: char.message( 'You fail applying bandages to %s.' % target.name ) else: char.message( 'You fail applying bandages to yourself.' ) return ! # Human target ? ! if target.id == 0x190 or target.id == 0x191: firstskill = HEALING ! secondskill = ANATOMY else: firstskill = VETERINARY *************** *** 211,220 **** # Heal a bit - # I'd say between 5 and 15 points. This can be adjusted later healmin = int( char.skill[ firstskill ] / 5 ) + int( char.skill[ secondskill ] / 5 ) + 3 healmax = int( char.skill[ firstskill ] / 5 ) + int( char.skill[ secondskill ] / 2 ) + 10 amount = random.randint( healmin, healmax ) ! target.health = min( target.maxhitpoints, target.health + amount ) target.updatehealth() --- 226,234 ---- # Heal a bit healmin = int( char.skill[ firstskill ] / 5 ) + int( char.skill[ secondskill ] / 5 ) + 3 healmax = int( char.skill[ firstskill ] / 5 ) + int( char.skill[ secondskill ] / 2 ) + 10 amount = random.randint( healmin, healmax ) ! target.health = min( target.maxhitpoints, target.health + amount ) target.updatehealth() *************** *** 223,225 **** char.message( 'You successfully apply bandages on yourself.' ) else: ! char.message( 'You successfully apply bandages on %s' % target.name ) --- 237,251 ---- char.message( 'You successfully apply bandages on yourself.' ) else: ! char.message( 'You successfully apply bandages on %s' % target.name ) ! ! # Create bloody bandages ! # This is target independent ! if baseid == 0xe21: ! item = additem( 'e20' ) ! if not tobackpack( item, char ): ! item.update() ! ! elif baseid == 0xee9: ! item = additem( 'e22' ) ! if not tobackpack( item, char ): ! item.update() |
|
From: <thi...@us...> - 2003-09-15 02:00:46
|
Update of /cvsroot/wpdev/wolfpack/languages
In directory sc8-pr-cvs1:/tmp/cvs-serv20079/languages
Modified Files:
wolfpack_it.ts wolfpack_nl.ts wolfpack_pt-BR.ts
Log Message:
Improved linux build
:
Index: wolfpack_it.ts
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/languages/wolfpack_it.ts,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** wolfpack_it.ts 4 Jan 2003 07:57:33 -0000 1.4
--- wolfpack_it.ts 15 Sep 2003 02:00:41 -0000 1.5
***************
*** 4,88 ****
<message>
<source>The spellbook needs to be in your hands or in your backpack.</source>
! <translation>Lo spellbook deve essere in vostre mani o nel vostro fagotto.</translation>
</message>
<message>
<source>You cannot place guildstones at any other location than your house</source>
! <translation>Non potete disporre i guildstones a qualunque altra posizione che la vostra casa</translation>
</message>
<message>
<source>You are already in a guild.</source>
[...7219 lines suppressed...]
+ </context>
+ <context>
+ <name>cWorld</name>
+ <message>
+ <source>Loading </source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source> objects of type </source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>The owner of Serial 0x%1 is invalid: %2</source>
+ <translation type="unfinished">Il proprietario di 0x%1 di serie è non valido: %2</translation>
+ </message>
+ <message>
+ <source>The guard target of Serial 0x%1 is invalid: %2</source>
+ <translation type="unfinished">L'obiettivo della protezione di 0x%1 di serie è non valido: %2</translation>
</message>
</context>
Index: wolfpack_nl.ts
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/languages/wolfpack_nl.ts,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** wolfpack_nl.ts 4 Jan 2003 07:57:33 -0000 1.4
--- wolfpack_nl.ts 15 Sep 2003 02:00:41 -0000 1.5
***************
*** 2,113 ****
<context>
<name></name>
- <message>
- <source>The spellbook needs to be in your hands or in your backpack.</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>You cannot place guildstones at any other location than your house</source>
- <translation type="unfinished"></translation>
- </message>
[...4568 lines suppressed...]
+ </message>
+ </context>
+ <context>
+ <name>cWorld</name>
+ <message>
+ <source>Loading </source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source> objects of type </source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>The owner of Serial 0x%1 is invalid: %2</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>The guard target of Serial 0x%1 is invalid: %2</source>
<translation type="unfinished"></translation>
</message>
Index: wolfpack_pt-BR.ts
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/languages/wolfpack_pt-BR.ts,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** wolfpack_pt-BR.ts 4 Jan 2003 07:57:33 -0000 1.5
--- wolfpack_pt-BR.ts 15 Sep 2003 02:00:42 -0000 1.6
***************
*** 2,113 ****
<context>
<name></name>
- <message>
- <source>The spellbook needs to be in your hands or in your backpack.</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>You cannot place guildstones at any other location than your house</source>
- <translation type="unfinished"></translation>
- </message>
[...4568 lines suppressed...]
+ </message>
+ </context>
+ <context>
+ <name>cWorld</name>
+ <message>
+ <source>Loading </source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source> objects of type </source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>The owner of Serial 0x%1 is invalid: %2</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>The guard target of Serial 0x%1 is invalid: %2</source>
<translation type="unfinished"></translation>
</message>
|