wpdev-commits Mailing List for Wolfpack Emu (Page 201)
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: <dar...@us...> - 2003-07-26 02:08:08
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv13639/src
Modified Files:
commands.cpp targetrequests.h
Log Message:
Rewrote some other commands in Python.
Index: commands.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/commands.cpp,v
retrieving revision 1.193
retrieving revision 1.194
diff -C2 -d -r1.193 -r1.194
*** commands.cpp 26 Jul 2003 01:10:54 -0000 1.193
--- commands.cpp 26 Jul 2003 02:05:31 -0000 1.194
***************
*** 249,272 ****
}
- void commandWhere( cUOSocket *socket, const QString &command, QStringList &args ) throw()
- {
- Q_UNUSED(args);
- Q_UNUSED(command);
- P_PLAYER pChar = socket->player();
-
- if( !pChar )
- return;
-
- cTerritory *mRegion = AllTerritories::instance()->region( pChar->pos().x, pChar->pos().y, pChar->pos().map );
-
- QString message = tr( "You are" );
-
- if( mRegion )
- message.append( " " + tr( "in %1" ).arg( mRegion->name() ) );
-
- message.append( " " + tr( "at %1,%2,%3 on map %4" ).arg( pChar->pos().x ).arg( pChar->pos().y ).arg( pChar->pos().z ).arg( pChar->pos().map ) );
- pChar->message( message );
- }
-
void commandKill( cUOSocket *socket, const QString &command, QStringList &args ) throw()
{
--- 249,252 ----
***************
*** 601,637 ****
}
- void commandBank( cUOSocket *socket, const QString &command, QStringList &args ) throw()
- {
- Q_UNUSED(command);
- socket->sysMessage( tr( "Please chose the owner of the container you want to open" ) );
-
- bool ok = false;
- UINT8 layer = hex2dec( args.join( " " ) ).toUShort( &ok );
-
- if( !ok || !layer )
- layer = 0x1D; // Bank layer
-
- socket->attachTarget( new cBankTarget( layer ) );
- }
-
- void commandAction( cUOSocket *socket, const QString &command, QStringList &args ) throw()
- {
- Q_UNUSED(command);
- bool ok = false;
- UINT32 action = hex2dec( args.join( " " ) ).toInt( &ok );
-
- if( ok )
- {
- if( socket->player() )
- {
- socket->player()->action( action );
- }
- }
- else
- {
- socket->sysMessage( tr( "Invalid parameter: '%1'" ).arg( args.join( " " ) ) );
- }
- }
-
void commandSpawnRegion( cUOSocket *socket, const QString &command, QStringList &args ) throw()
{
--- 581,584 ----
***************
*** 1271,1275 ****
{
{ "ACCOUNT", commandAccount },
- { "ACTION", commandAction },
{ "ADD", commandAdd },
{ "ADDEVENT", commandAddEvent },
--- 1218,1221 ----
***************
*** 1279,1283 ****
{ "ALLSHOW", commandAllShow },
{ "ALLSKILLS", commandAllSkills },
- { "BANK", commandBank },
{ "BROADCAST", commandBroadcast },
{ "FIX", commandFix },
--- 1225,1228 ----
***************
*** 1308,1314 ****
{ "TELE", commandTele },
{ "TILE", commandTile },
- { "WHERE", commandWhere },
{ "WHO", commandWho },
{ NULL, NULL }
};
-
--- 1253,1257 ----
Index: targetrequests.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/targetrequests.h,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** targetrequests.h 26 Jul 2003 01:10:55 -0000 1.40
--- targetrequests.h 26 Jul 2003 02:05:31 -0000 1.41
***************
*** 481,514 ****
};
- class cBankTarget: public cTargetRequest
- {
- Q_OBJECT
- private:
- UINT8 layer;
- public:
- cBankTarget( UINT8 data ) { layer = data; }
-
- virtual bool responsed( cUOSocket *socket, cUORxTarget *target )
- {
- P_CHAR pChar = FindCharBySerial( target->serial() );
- if( !pChar )
- {
- socket->sysMessage( tr( "This does not appear to be a living being." ) );
- return true;
- }
-
- P_ITEM pItem = pChar->GetItemOnLayer( layer );
-
- if( !pItem )
- {
- socket->sysMessage( tr( "This being does not have a container on layer 0x%1" ).arg( layer, 2, 16 ) );
- return true;
- }
-
- socket->sendContainer( pItem );
- return true;
- }
- };
-
class cSetTagTarget: public cTargetRequest
{
--- 481,484 ----
|
|
From: <dar...@us...> - 2003-07-26 01:41:19
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv3205/src
Modified Files:
commands.cpp dragdrop.cpp items.cpp targetrequests.cpp
targetrequests.h wolf.dsp wolfpack.cpp wolfpack.pro
Removed Files:
spellbook.cpp spellbook.h
Log Message:
Moved Spellbook from Code to Python
Index: commands.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/commands.cpp,v
retrieving revision 1.192
retrieving revision 1.193
diff -C2 -d -r1.192 -r1.193
*** commands.cpp 9 Jul 2003 20:23:16 -0000 1.192
--- commands.cpp 26 Jul 2003 01:10:54 -0000 1.193
***************
*** 52,56 ****
#include "resources.h"
#include "contextmenu.h"
- #include "spellbook.h"
#include "pythonscript.h"
--- 52,55 ----
***************
*** 988,1034 ****
}
- void commandAddSpell( cUOSocket *socket, const QString &command, QStringList &args ) throw()
- {
- Q_UNUSED(command);
- bool ok = false;
- UINT8 spell = 0;
-
- if( args.count() > 0 )
- spell = args[0].toUInt( &ok );
-
- // Get the spellid
- if( !ok )
- {
- socket->sysMessage( tr( "Usage: addspell <spell-id>" ) );
- return;
- }
-
-
- socket->sysMessage( tr( "Please select the spellbook you want to add this spell to." ) );
- socket->attachTarget( new cModifySpellbook( spell, false ) );
- }
-
- void commandRemoveSpell( cUOSocket *socket, const QString &command, QStringList &args ) throw()
- {
- Q_UNUSED(command);
- bool ok = false;
- UINT8 spell = 0;
-
- if( args.count() > 0 )
- spell = args[0].toUInt( &ok );
-
- // Get the spellid
- if( !ok )
- {
- socket->sysMessage( tr( "Usage: removespell <spell-id>" ) );
- return;
- }
-
-
- socket->sysMessage( tr( "Please select the spellbook you want to remove this spell from." ) );
- socket->attachTarget( new cModifySpellbook( spell, true ) );
- }
-
-
void commandAddEvent( cUOSocket *socket, const QString &command, QStringList &args ) throw()
{
--- 987,990 ----
***************
*** 1320,1324 ****
{ "ADDITEM", commandAddItem },
{ "ADDNPC", commandAddNpc },
- { "ADDSPELL", commandAddSpell },
{ "ALLMOVE", commandAllMove },
{ "ALLSHOW", commandAllShow },
--- 1276,1279 ----
***************
*** 1340,1344 ****
{ "REMOVE", commandRemove },
{ "REMOVEEVENT", commandRemoveEvent },
- { "REMOVESPELL", commandRemoveSpell },
{ "RESEND", commandResend },
{ "RESTOCK", commandRestock },
--- 1295,1298 ----
Index: dragdrop.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/dragdrop.cpp,v
retrieving revision 1.189
retrieving revision 1.190
diff -C2 -d -r1.189 -r1.190
*** dragdrop.cpp 20 Jul 2003 00:04:51 -0000 1.189
--- dragdrop.cpp 26 Jul 2003 01:10:54 -0000 1.190
***************
*** 45,49 ****
#include "network/uorxpackets.h"
#include "network/uotxpackets.h"
- #include "spellbook.h"
#include "multis.h"
#include "dragdrop.h"
--- 45,48 ----
***************
*** 714,717 ****
--- 713,719 ----
if( pItem->onDropOnItem( pCont ) )
{
+ if( pItem->free )
+ return;
+
if( socket->dragging() )
socket->bounceItem( socket->dragging(), BR_NO_REASON );
***************
*** 721,724 ****
--- 723,729 ----
else if( pCont->onDropOnItem( pItem ) )
{
+ if( pItem->free )
+ return;
+
if( socket->dragging() )
socket->bounceItem( socket->dragging(), BR_NO_REASON );
***************
*** 783,821 ****
socket->sysMessage( tr( "As you let go of the item it disappears." ) );
return;
- }
-
- // Spell Book
- cSpellBook *pBook = dynamic_cast< cSpellBook* >( pCont );
- if( pBook )
- {
- SI08 spellId = calcSpellId( pItem );
-
- if( pItem->type() != 1105 || spellId < 0 )
- {
- socket->sysMessage( tr( "You can only put scrolls into a spellbook" ) );
- socket->bounceItem( pItem, BR_NO_REASON );
- return;
- }
-
- if( pBook->hasSpell( spellId ) )
- {
- socket->sysMessage( tr( "That spellbook already contains this spell" ) );
- socket->bounceItem( pItem, BR_NO_REASON );
- return;
- }
-
- if( pItem->amount() > 1 )
- {
- socket->sysMessage( tr( "You can only put 1 scroll into a spellbook at a time" ) );
- socket->bounceItem( pItem, BR_NO_REASON );
- return;
- }
- else
- {
- pBook->addSpell( spellId );
- Items->DeleItem( pItem );
- pBook->update( socket );
- return;
- }
}
--- 788,791 ----
Index: items.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/items.cpp,v
retrieving revision 1.324
retrieving revision 1.325
diff -C2 -d -r1.324 -r1.325
*** items.cpp 21 Jul 2003 00:08:04 -0000 1.324
--- items.cpp 26 Jul 2003 01:10:54 -0000 1.325
***************
*** 51,55 ****
#include "network.h"
#include "multis.h"
- #include "spellbook.h"
#include "persistentbroker.h"
#include "dbdriver.h"
--- 51,54 ----
***************
*** 317,322 ****
case 0x0e80: return 1;
case 0x0e83: return 4;
-
- case 0x0EFA: return 4; // spellbook. Position shouldn't matter, but as it can be opened like a backpack...(Duke)
case 0x2006: return 5; // a corpse/coffin
--- 316,319 ----
***************
*** 1134,1144 ****
nItem = nBook;
- }
- else if( type == "spellbook" )
- {
- cSpellBook *spellBook = new cSpellBook();
- spellBook->Init( true );
- spellBook->applyDefinition( DefSection );
- nItem = spellBook;
}
else
--- 1131,1134 ----
Index: targetrequests.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/targetrequests.cpp,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** targetrequests.cpp 20 Jul 2003 00:04:51 -0000 1.68
--- targetrequests.cpp 26 Jul 2003 01:10:54 -0000 1.69
***************
*** 44,48 ****
#include "scriptmanager.h"
#include "pythonscript.h"
- #include "spellbook.h"
#include "books.h"
#include "house.h"
--- 44,47 ----
***************
*** 1056,1107 ****
else
socket->sysMessage( "You need to select either an item or a character" );
- return true;
- }
-
- bool cModifySpellbook::responsed( cUOSocket *socket, cUORxTarget *target )
- {
- if( !socket->player() )
- return true;
-
- // Check if we really targetted a spellbook
- if( isItemSerial( target->serial() ) )
- {
- P_ITEM pItem = FindItemBySerial( target->serial() );
-
- if( pItem )
- {
- cSpellBook *pBook = dynamic_cast< cSpellBook* >( pItem );
-
- if( pBook )
- {
- if( spell >= 64 )
- {
- socket->sysMessage( tr( "The spell id you specified is invalid." ) );
- }
- else
- {
- if( deleteMode )
- {
- pBook->removeSpell( spell );
- pBook->update( socket );
- socket->sysMessage( tr( "You removed spell %1 from this spellbook." ).arg( spell ) );
- }
- else
- {
- pBook->addSpell( spell );
- socket->sysMessage( tr( "You added spell %1 to this spellbook." ).arg( spell ) );
- }
- pBook->update( socket );
- }
- }
- else
- socket->sysMessage( tr( "This is not a valid spellbook." ) );
- }
- else
- socket->sysMessage( tr( "This is not a valid spellbook." ) );
- }
- else
- socket->sysMessage( tr( "This is not a valid spellbook." ) );
-
return true;
}
--- 1055,1058 ----
Index: targetrequests.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/targetrequests.h,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** targetrequests.h 17 Jul 2003 09:14:12 -0000 1.39
--- targetrequests.h 26 Jul 2003 01:10:55 -0000 1.40
***************
*** 689,705 ****
};
- class cModifySpellbook: public cTargetRequest
- {
- Q_OBJECT
- private:
- UINT8 spell;
- bool deleteMode;
- public:
- cModifySpellbook( UINT8 _spell, bool _deleteMode = false ) : spell(_spell), deleteMode(_deleteMode) {}
-
- bool responsed( cUOSocket *socket, cUORxTarget *target );
- virtual void canceled( cUOSocket *socket ) { Q_UNUSED(socket); }
- };
-
class cAddEventTarget: public cTargetRequest
{
--- 689,692 ----
Index: wolf.dsp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/wolf.dsp,v
retrieving revision 1.199
retrieving revision 1.200
diff -C2 -d -r1.199 -r1.200
*** wolf.dsp 22 Jul 2003 17:16:56 -0000 1.199
--- wolf.dsp 26 Jul 2003 01:10:55 -0000 1.200
***************
*** 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
--- 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
***************
*** 26,30 ****
# PROP Scc_ProjName "wolf"
# PROP Scc_LocalPath "."
! CPP=xicl6.exe
RSC=rc.exe
--- 26,30 ----
# PROP Scc_ProjName "wolf"
# PROP Scc_LocalPath "."
! CPP=cl.exe
RSC=rc.exe
***************
*** 50,54 ****
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
! LINK32=xilink6.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 advapi32.lib ws2_32.lib $(QTDIR)\lib\qt-mt312.lib libmysql.lib flatstore.lib /nologo /subsystem:console /map /machine:I386 /nodefaultlib:"libcmt MSVCRTD" /out:"D:\wolfpack\wolfpack.exe" /libpath:"lib\ZThread\lib" /libpath:"lib\Python\lib" /libpath:"lib\bugreport\lib" /libpath:"flatstore\Release" /opt:ref /opt:nowin98
--- 50,54 ----
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
! 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 advapi32.lib ws2_32.lib $(QTDIR)\lib\qt-mt312.lib libmysql.lib flatstore.lib /nologo /subsystem:console /map /machine:I386 /nodefaultlib:"libcmt MSVCRTD" /out:"D:\wolfpack\wolfpack.exe" /libpath:"lib\ZThread\lib" /libpath:"lib\Python\lib" /libpath:"lib\bugreport\lib" /libpath:"flatstore\Release" /opt:ref /opt:nowin98
***************
*** 75,79 ****
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
! LINK32=xilink6.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 advapi32.lib ws2_32.lib $(QTDIR)\lib\qt-mt312.lib libmysql.lib flatstore.lib /nologo /version:12.9 /subsystem:console /map /debug /machine:I386 /out:"..\Wolfpack.exe" /pdbtype:sept /libpath:"lib\Python\lib" /libpath:"lib\bugreport\lib" /libpath:"flatstore\Debug"
--- 75,79 ----
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
! 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 advapi32.lib ws2_32.lib $(QTDIR)\lib\qt-mt312.lib libmysql.lib flatstore.lib /nologo /version:12.9 /subsystem:console /map /debug /machine:I386 /out:"..\Wolfpack.exe" /pdbtype:sept /libpath:"lib\Python\lib" /libpath:"lib\bugreport\lib" /libpath:"flatstore\Debug"
***************
*** 307,314 ****
# Begin Source File
- SOURCE=.\spellbook.cpp
- # End Source File
- # Begin Source File
-
SOURCE=.\srvparams.cpp
# End Source File
--- 307,310 ----
***************
*** 1104,1140 ****
# Begin Source File
- SOURCE=.\spellbook.h
-
- !IF "$(CFG)" == "wolf - Win32 Release"
-
- # PROP Ignore_Default_Tool 1
- # Begin Custom Build - MOCing spellbook.h...
- InputDir=.
- InputPath=.\spellbook.h
- InputName=spellbook
-
- "$(InputDir)\moc_$(InputName).cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- %qtdir%\bin\moc.exe $(InputDir)\$(InputName).h -o $(InputDir)\moc_$(InputName).cpp
-
- # End Custom Build
-
- !ELSEIF "$(CFG)" == "wolf - Win32 Debug"
-
- # PROP Ignore_Default_Tool 1
- # Begin Custom Build - MOCing spellbook.h...
- InputDir=.
- InputPath=.\spellbook.h
- InputName=spellbook
-
- "$(InputDir)\moc_$(InputName).cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- %qtdir%\bin\moc.exe $(InputDir)\$(InputName).h -o $(InputDir)\moc_$(InputName).cpp
-
- # End Custom Build
-
- !ENDIF
-
- # End Source File
- # Begin Source File
-
SOURCE=.\srvparams.h
# End Source File
--- 1100,1103 ----
***************
*** 1515,1518 ****
--- 1478,1489 ----
# Begin Source File
+ SOURCE=.\python\pypacket.cpp
+ # End Source File
+ # Begin Source File
+
+ SOURCE=.\python\pypacket.h
+ # End Source File
+ # Begin Source File
+
SOURCE=.\python\pyregion.cpp
# End Source File
***************
*** 1617,1624 ****
SOURCE=.\moc_resources.cpp
- # End Source File
- # Begin Source File
-
- SOURCE=.\moc_spellbook.cpp
# End Source File
# Begin Source File
--- 1588,1591 ----
Index: wolfpack.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/wolfpack.cpp,v
retrieving revision 1.433
retrieving revision 1.434
diff -C2 -d -r1.433 -r1.434
*** wolfpack.cpp 22 Jul 2003 17:16:56 -0000 1.433
--- wolfpack.cpp 26 Jul 2003 01:10:55 -0000 1.434
***************
*** 60,64 ****
#include "wptargetrequests.h"
#include "python/engine.h"
- #include "spellbook.h"
#include "persistentbroker.h"
#include "corpse.h"
--- 60,63 ----
***************
*** 959,963 ****
cItem::registerInFactory();
cBook::registerInFactory();
- cSpellBook::registerInFactory();
cCorpse::registerInFactory();
cBoat::registerInFactory();
--- 958,961 ----
Index: wolfpack.pro
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/wolfpack.pro,v
retrieving revision 1.138
retrieving revision 1.139
diff -C2 -d -r1.138 -r1.139
*** wolfpack.pro 9 Jul 2003 01:20:47 -0000 1.138
--- wolfpack.pro 26 Jul 2003 01:10:55 -0000 1.139
***************
*** 118,123 ****
wpdefmanager.h \
wptargetrequests.h \
! corpse.h \
! spellbook.h
SOURCES = \
--- 118,122 ----
wpdefmanager.h \
wptargetrequests.h \
! corpse.h
SOURCES = \
***************
*** 194,199 ****
world.cpp \
wpdefmanager.cpp \
! wptargetrequests.cpp \
! spellbook.cpp
# Twofish Module
--- 193,197 ----
world.cpp \
wpdefmanager.cpp \
! wptargetrequests.cpp
# Twofish Module
***************
*** 224,230 ****
python/pyaccount.cpp \
python/pycoord.cpp \
! python/pyregion.cpp \
python/pytooltip.cpp \
! python/socket.cpp \
HEADERS += python/content.h
--- 222,229 ----
python/pyaccount.cpp \
python/pycoord.cpp \
! python/pypacket.cpp \
! python/pyregion.cpp \
python/pytooltip.cpp \
! python/socket.cpp \
HEADERS += python/content.h
--- spellbook.cpp DELETED ---
--- spellbook.h DELETED ---
|
|
From: <dar...@us...> - 2003-07-26 01:09:30
|
Update of /cvsroot/wpdev/xmlscripts/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv426/scripts
Added Files:
scroll.py spellbook.py
Log Message:
Moved Spellbook from Code to Python
--- NEW FILE: scroll.py ---
#===============================================================#
# ) (\_ | WOLFPACK 13.0.0 Scripts #
# (( _/{ "-; | Created by: DarkStorm #
# )).-' {{ ;'` | Revised by: #
# ( ( ;._ \\ ctr | Last Modification: Created #
#===============================================================#
# Script for Spell Scrolls #
#===============================================================#
from spellbook import addspell
import wolfpack
# calculate the spell-id of a scroll
def calcSpellId( item ):
tile = wolfpack.tiledata( item.id )
spell = tile[ "unknown1" ]
if spell == 0:
raise
return ( spell - 1 )
def onUse( char, item ):
try:
char.message( 'Casting spell %d' % calcSpellId( item ) )
except:
char.socket.sysmessage( 'Broken scroll' )
return 0
if item.amount > 1:
item.amount -= 1
item.update()
else:
item.delete()
return 1
def onDropOnItem( cont, item ):
# Who is dragging us?
char = item.container
if not char.ischar():
return 0
try:
spell = calcSpellId( item )
except:
char.socket.sysmessage( "Error while calculating scroll id." )
return 0
if spell >= 64:
char.socket.sysmessage( "Scroll with invalid spell-id: %d" % spell )
return 0
addspell( cont, spell )
if item.amount > 1:
item.amount -= 1
return 0
else:
item.delete() # Consume the scroll
return 1
--- NEW FILE: spellbook.py ---
#===============================================================#
# ) (\_ | WOLFPACK 13.0.0 Scripts #
# (( _/{ "-; | Created by: DarkStorm #
# )).-' {{ ;'` | Revised by: #
# ( ( ;._ \\ ctr | Last Modification: Created #
#===============================================================#
# Script for Spellbooks #
#===============================================================#
from math import floor,ceil
import wolfpack
def onLoad():
# Register .addspell, .removespell, .editspells (?)
wolfpack.registercommand( "addspell", "spellbook" )
wolfpack.registercommand( "removespell", "spellbook" )
def onCommand( socket, command, arguments ):
if command == "ADDSPELL":
if arguments != 'all':
try:
if len( arguments ) < 1:
raise Exception
spell = int( arguments )
except:
socket.sysmessage( 'Usage: addspell <spell> or addspell all' )
return
if spell >= 64:
socket.sysmessage( 'Values between 0 and 63 are valid.' )
return
else:
spell = 'all'
socket.sysmessage( 'Select the spellbook you want to add the spell to.' )
socket.attachtarget( "spellbook.addspelltarget", [ spell ] )
elif command == "REMOVESPELL":
if arguments != 'all':
try:
if len( arguments ) < 1:
raise Exception
spell = int( arguments )
except:
socket.sysmessage( 'Usage: removespell <spell> or removespell all' )
return
if spell >= 64:
socket.sysmessage( 'Values between 0 and 63 are valid.' )
return
else:
spell = 'all'
socket.sysmessage( 'Select the spellbook you want to remove the spell from.' )
socket.attachtarget( "spellbook.removespelltarget", [ spell ] )
# Adds the specified spell to the specified spellbook
def addspell( item, spell ):
if not item or not 'spellbook' in item.events:
return 0
circle = int( floor( spell / 8 ) ) + 1 # 0 for first circle
spell = spell % 8
spells = 0
if item.hastag( 'circle' + str( circle ) ):
spells = int( item.gettag( 'circle' + str( circle ) ) )
spells |= 0x01 << spell
item.settag( 'circle' + str( circle ), spells )
return 1
# Removes the specified spell from the specified spellbook
def removespell( item, spell ):
if not item or not 'spellbook' in item.events:
return 0
# Circle
circle = int( floor( spell / 8 ) ) + 1 # 0 for first circle
spell = spell % 8
if item.hastag( 'circle' + str( circle ) ):
spells = int( item.gettag( 'circle' + str( circle ) ) )
spells &= ~( 0x01 << spell )
item.settag( 'circle' + str( circle ), spells )
return 1
"""
Add a spell to a spellbook
"""
def addspelltarget( char, args, target ):
spell = args[0]
if not target.item or not 'spellbook' in target.item.events:
char.socket.sysmessage( 'You need to target a spellbook.' )
return
item = target.item
if spell == 'all':
for i in range( 1, 9 ):
item.settag( 'circle' + str( i ), 0xFF )
char.socket.sysmessage( 'Added all spells to the spellbook.' )
return
addspell( item, spell )
circle = int( floor( spell / 8 ) ) + 1
char.socket.sysmessage( 'Added spell %d of circle %d (Id %d) to the spellbook.' % ( spell % 8 + 1, circle, spell ) )
"""
Remove a spell from a spellbook
"""
def removespelltarget( char, args, target ):
spell = args[0]
if not target.item or not 'spellbook' in target.item.events:
char.socket.sysmessage( 'You need to target a spellbook.' )
return
item = target.item
if spell == 'all':
for i in range( 1, 9 ):
item.deltag( 'circle' + str( i ) )
char.socket.sysmessage( 'Removed all spells from the spellbook.' )
return
removespell( item, spell )
circle = int( floor( spell / 8 ) ) + 1
char.socket.sysmessage( 'Removed spell %d of circle %d (Id %d)from the spellbook.' % ( spell % 8 + 1, circle, spell ) )
"""
open up a spellbook
"""
def onUse( char, item ):
packet = wolfpack.packet( 0x24, 7 )
packet.setint( 1, item.serial )
packet.setshort( 5, 0xffff )
packet.send( char.socket )
packet = wolfpack.packet( 0xbf, 23 )
packet.setshort( 1, 23 ) # Packet length
packet.setshort( 3, 0x1b ) # 0xbf subcommand
packet.setshort( 5, 1 ) # Unknown. Maybe it's a subsubcommand ?
packet.setint( 7, item.serial ) # Spellbook serial
packet.setshort( 11, item.id ) # Item id
packet.setshort( 13, 1 ) # Scroll offset (1 = regular, 101 = paladin, 201 = necro)
for i in range( 0, 8 ):
if not item.hastag( 'circle' + str( i + 1 ) ):
packet.setbyte( 15 + i, 0 ) # Should be unneccesary
else:
packet.setbyte( 15 + i, int( item.gettag( 'circle' + str( i + 1 ) ) ) ) # Should be unneccesary
packet.send( char.socket )
return 1
|
|
From: <dar...@us...> - 2003-07-26 01:09:29
|
Update of /cvsroot/wpdev/xmlscripts/scripts/wolfpack In directory sc8-pr-cvs1:/tmp/cvs-serv426/scripts/wolfpack Modified Files: __init__.py magic.py Log Message: Moved Spellbook from Code to Python Index: __init__.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/wolfpack/__init__.py,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** __init__.py 28 Jun 2003 21:06:07 -0000 1.28 --- __init__.py 26 Jul 2003 01:09:25 -0000 1.29 *************** *** 167,169 **** def tickcount(): return _wolfpack.tickcount() ! \ No newline at end of file --- 167,171 ---- def tickcount(): return _wolfpack.tickcount() ! ! def packet( id, size ): ! return _wolfpack.packet( id, size ) Index: magic.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/wolfpack/magic.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** magic.py 6 Jul 2003 16:47:20 -0000 1.1 --- magic.py 26 Jul 2003 01:09:25 -0000 1.2 *************** *** 5,9 **** # ( ( ;._ \\ ctr | Last Modification: Created # #===============================================================# ! # Main Magig Script # #===============================================================# --- 5,9 ---- # ( ( ;._ \\ ctr | Last Modification: Created # #===============================================================# ! # Main Magic Script # #===============================================================# |
|
From: <dar...@us...> - 2003-07-26 01:07:36
|
Update of /cvsroot/wpdev/xmlscripts/definitions In directory sc8-pr-cvs1:/tmp/cvs-serv32024/definitions Modified Files: encryption.xml scripts.xml Log Message: Moved Spellbook from Code to Python Index: encryption.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/encryption.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** encryption.xml 22 Mar 2003 13:28:26 -0000 1.2 --- encryption.xml 26 Jul 2003 01:07:31 -0000 1.3 *************** *** 4,9 **** <!-- Client identification string (optional) ; Key1 ; Key2 --> ! <item> Client 4.0.0e ; 0x2E13A5FD ; 0xA21D527F </item> ! <item> Client 4.0.0c ; 0x2E13A5FD ; 0xA21D527F </item> </list> </definitions> --- 4,9 ---- <!-- Client identification string (optional) ; Key1 ; Key2 --> ! <item> Client 4.0.0 ; 0x2E13A5FD ; 0xA21D527F </item> ! <item> Client 3.0.5 ; 0x2C8B97AD ; 0xA350DE7F </item> </list> </definitions> Index: scripts.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/scripts.xml,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** scripts.xml 10 Jul 2003 10:17:06 -0000 1.48 --- scripts.xml 26 Jul 2003 01:07:32 -0000 1.49 *************** *** 25,28 **** --- 25,30 ---- <script>item_bless_deed</script> <script>carpentry_deed</script> + <script>scroll</script> + <script>spellbook</script> <!-- Commands --> |
|
From: <dar...@us...> - 2003-07-26 01:07:36
|
Update of /cvsroot/wpdev/xmlscripts/definitions/items/professions In directory sc8-pr-cvs1:/tmp/cvs-serv32024/definitions/items/professions Modified Files: mage.xml Log Message: Moved Spellbook from Code to Python Index: mage.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/items/professions/mage.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** mage.xml 12 Apr 2003 21:24:59 -0000 1.4 --- mage.xml 26 Jul 2003 01:07:32 -0000 1.5 *************** *** 21,27 **** <!-- Spellbook --> ! <item id="efa" type="spellbook"> <id>0xefa</id> - <type>9</type> <!-- Keep this for now --> <onehanded /> <newbie /> --- 21,26 ---- <!-- Spellbook --> ! <item id="efa"> <id>0xefa</id> <onehanded /> <newbie /> *************** *** 29,32 **** --- 28,32 ---- <value>30</value> <category>Professions\Mage\Spellbook (N/S)</category> + <events>spellbook</events> </item> *************** *** 39,44 **** <category>Professions\Mage\Runebook </category> <events>runebook</events> ! </item> ! <!-- Recall Runes --> --- 39,43 ---- <category>Professions\Mage\Runebook </category> <events>runebook</events> ! </item> <!-- Recall Runes --> *************** *** 76,80 **** <id>0x1f2e</id> <decay/> ! <type>1105</type> <value>15</value> <weight>0.02</weight> --- 75,79 ---- <id>0x1f2e</id> <decay/> ! <events>scroll</events> <value>15</value> <weight>0.02</weight> *************** *** 86,90 **** <id>0x1f2f</id> <decay/> ! <type>1105</type> <value>15</value> <weight>0.02</weight> --- 85,89 ---- <id>0x1f2f</id> <decay/> ! <events>scroll</events> <value>15</value> <weight>0.02</weight> *************** *** 96,100 **** <id>0x1f30</id> <decay/> ! <type>1105</type> <value>15</value> <weight>0.02</weight> --- 95,99 ---- <id>0x1f30</id> <decay/> ! <events>scroll</events> <value>15</value> <weight>0.02</weight> *************** *** 106,110 **** <id>0x1f31</id> <decay/> ! <type>1105</type> <value>15</value> <weight>0.02</weight> --- 105,109 ---- <id>0x1f31</id> <decay/> ! <events>scroll</events> <value>15</value> <weight>0.02</weight> *************** *** 116,120 **** <id>0x1f32</id> <decay/> ! <type>1105</type> <value>15</value> <weight>0.02</weight> --- 115,119 ---- <id>0x1f32</id> <decay/> ! <events>scroll</events> <value>15</value> <weight>0.02</weight> *************** *** 126,130 **** <id>0x1f33</id> <decay/> ! <type>1105</type> <value>15</value> <weight>0.02</weight> --- 125,129 ---- <id>0x1f33</id> <decay/> ! <events>scroll</events> <value>15</value> <weight>0.02</weight> *************** *** 136,140 **** <id>0x1f2d</id> <decay/> ! <type>1105</type> <value>15</value> <weight>0.02</weight> --- 135,139 ---- <id>0x1f2d</id> <decay/> ! <events>scroll</events> <value>15</value> <weight>0.02</weight> *************** *** 146,150 **** <id>0x1f34</id> <decay/> ! <type>1105</type> <value>15</value> <weight>0.02</weight> --- 145,149 ---- <id>0x1f34</id> <decay/> ! <events>scroll</events> <value>15</value> <weight>0.02</weight> *************** *** 156,160 **** <id>0x1f35</id> <decay/> ! <type>1105</type> <value>30</value> <weight>0.02</weight> --- 155,159 ---- <id>0x1f35</id> <decay/> ! <events>scroll</events> <value>30</value> <weight>0.02</weight> *************** *** 166,170 **** <id>0x1f36</id> <decay/> ! <type>1105</type> <value>30</value> <weight>0.02</weight> --- 165,169 ---- <id>0x1f36</id> <decay/> ! <events>scroll</events> <value>30</value> <weight>0.02</weight> *************** *** 176,180 **** <id>0x1f37</id> <decay/> ! <type>1105</type> <value>30</value> <weight>0.02</weight> --- 175,179 ---- <id>0x1f37</id> <decay/> ! <events>scroll</events> <value>30</value> <weight>0.02</weight> *************** *** 186,190 **** <id>0x1f38</id> <decay/> ! <type>1105</type> <value>30</value> <weight>0.02</weight> --- 185,189 ---- <id>0x1f38</id> <decay/> ! <events>scroll</events> <value>30</value> <weight>0.02</weight> *************** *** 196,200 **** <id>0x1f39</id> <decay/> ! <type>1105</type> <value>30</value> <weight>0.02</weight> --- 195,199 ---- <id>0x1f39</id> <decay/> ! <events>scroll</events> <value>30</value> <weight>0.02</weight> *************** *** 206,210 **** <id>0x1f3a</id> <decay/> ! <type>1105</type> <value>30</value> <weight>0.02</weight> --- 205,209 ---- <id>0x1f3a</id> <decay/> ! <events>scroll</events> <value>30</value> <weight>0.02</weight> *************** *** 216,220 **** <id>0x1f3b</id> <decay/> ! <type>1105</type> <value>30</value> <weight>0.02</weight> --- 215,219 ---- <id>0x1f3b</id> <decay/> ! <events>scroll</events> <value>30</value> <weight>0.02</weight> *************** *** 226,230 **** <id>0x1f3c</id> <decay/> ! <type>1105</type> <value>30</value> <weight>0.02</weight> --- 225,229 ---- <id>0x1f3c</id> <decay/> ! <events>scroll</events> <value>30</value> <weight>0.02</weight> *************** *** 236,240 **** <id>0x1f3d</id> <decay/> ! <type>1105</type> <value>45</value> <weight>0.02</weight> --- 235,239 ---- <id>0x1f3d</id> <decay/> ! <events>scroll</events> <value>45</value> <weight>0.02</weight> *************** *** 246,250 **** <id>0x1f3e</id> <decay/> ! <type>1105</type> <value>45</value> <weight>0.02</weight> --- 245,249 ---- <id>0x1f3e</id> <decay/> ! <events>scroll</events> <value>45</value> <weight>0.02</weight> *************** *** 256,260 **** <id>0x1f3f</id> <decay/> ! <type>1105</type> <value>45</value> <weight>0.02</weight> --- 255,259 ---- <id>0x1f3f</id> <decay/> ! <events>scroll</events> <value>45</value> <weight>0.02</weight> *************** *** 266,270 **** <id>0x1f40</id> <decay/> ! <type>1105</type> <value>45</value> <weight>0.02</weight> --- 265,269 ---- <id>0x1f40</id> <decay/> ! <events>scroll</events> <value>45</value> <weight>0.02</weight> *************** *** 276,280 **** <id>0x1f41</id> <decay/> ! <type>1105</type> <value>45</value> <weight>0.02</weight> --- 275,279 ---- <id>0x1f41</id> <decay/> ! <events>scroll</events> <value>45</value> <weight>0.02</weight> *************** *** 286,290 **** <id>0x1f42</id> <decay/> ! <type>1105</type> <value>45</value> <weight>0.02</weight> --- 285,289 ---- <id>0x1f42</id> <decay/> ! <events>scroll</events> <value>45</value> <weight>0.02</weight> *************** *** 296,300 **** <id>0x1f43</id> <decay/> ! <type>1105</type> <value>45</value> <weight>0.02</weight> --- 295,299 ---- <id>0x1f43</id> <decay/> ! <events>scroll</events> <value>45</value> <weight>0.02</weight> *************** *** 306,310 **** <id>0x1f44</id> <decay/> ! <type>1105</type> <value>45</value> <weight>0.02</weight> --- 305,309 ---- <id>0x1f44</id> <decay/> ! <events>scroll</events> <value>45</value> <weight>0.02</weight> *************** *** 316,320 **** <id>0x1f45</id> <decay/> ! <type>1105</type> <value>60</value> <weight>0.02</weight> --- 315,319 ---- <id>0x1f45</id> <decay/> ! <events>scroll</events> <value>60</value> <weight>0.02</weight> *************** *** 326,330 **** <id>0x1f46</id> <decay/> ! <type>1105</type> <value>60</value> <weight>0.02</weight> --- 325,329 ---- <id>0x1f46</id> <decay/> ! <events>scroll</events> <value>60</value> <weight>0.02</weight> *************** *** 336,340 **** <id>0x1f47</id> <decay/> ! <type>1105</type> <value>60</value> <weight>0.02</weight> --- 335,339 ---- <id>0x1f47</id> <decay/> ! <events>scroll</events> <value>60</value> <weight>0.02</weight> *************** *** 346,350 **** <id>0x1f48</id> <decay/> ! <type>1105</type> <value>60</value> <weight>0.02</weight> --- 345,349 ---- <id>0x1f48</id> <decay/> ! <events>scroll</events> <value>60</value> <weight>0.02</weight> *************** *** 356,360 **** <id>0x1f49</id> <decay/> ! <type>1105</type> <value>60</value> <weight>0.02</weight> --- 355,359 ---- <id>0x1f49</id> <decay/> ! <events>scroll</events> <value>60</value> <weight>0.02</weight> *************** *** 366,370 **** <id>0x1f4a</id> <decay/> ! <type>1105</type> <value>60</value> <weight>0.02</weight> --- 365,369 ---- <id>0x1f4a</id> <decay/> ! <events>scroll</events> <value>60</value> <weight>0.02</weight> *************** *** 376,380 **** <id>0x1f4b</id> <decay/> ! <type>1105</type> <value>60</value> <weight>0.02</weight> --- 375,379 ---- <id>0x1f4b</id> <decay/> ! <events>scroll</events> <value>60</value> <weight>0.02</weight> *************** *** 386,390 **** <id>0x1f4c</id> <decay/> ! <type>1105</type> <value>60</value> <weight>0.02</weight> --- 385,389 ---- <id>0x1f4c</id> <decay/> ! <events>scroll</events> <value>60</value> <weight>0.02</weight> *************** *** 396,400 **** <id>0x1f4d</id> <decay/> ! <type>1105</type> <value>75</value> <weight>0.02</weight> --- 395,399 ---- <id>0x1f4d</id> <decay/> ! <events>scroll</events> <value>75</value> <weight>0.02</weight> *************** *** 406,410 **** <id>0x1f4e</id> <decay/> ! <type>1105</type> <value>75</value> <weight>0.02</weight> --- 405,409 ---- <id>0x1f4e</id> <decay/> ! <events>scroll</events> <value>75</value> <weight>0.02</weight> *************** *** 416,420 **** <id>0x1f4f</id> <decay/> ! <type>1105</type> <value>75</value> <weight>0.02</weight> --- 415,419 ---- <id>0x1f4f</id> <decay/> ! <events>scroll</events> <value>75</value> <weight>0.02</weight> *************** *** 426,430 **** <id>0x1f50</id> <decay/> ! <type>1105</type> <value>75</value> <weight>0.02</weight> --- 425,429 ---- <id>0x1f50</id> <decay/> ! <events>scroll</events> <value>75</value> <weight>0.02</weight> *************** *** 436,440 **** <id>0x1f51</id> <decay/> ! <type>1105</type> <value>75</value> <weight>0.02</weight> --- 435,439 ---- <id>0x1f51</id> <decay/> ! <events>scroll</events> <value>75</value> <weight>0.02</weight> *************** *** 446,450 **** <id>0x1f52</id> <decay/> ! <type>1105</type> <value>75</value> <weight>0.02</weight> --- 445,449 ---- <id>0x1f52</id> <decay/> ! <events>scroll</events> <value>75</value> <weight>0.02</weight> *************** *** 456,460 **** <id>0x1f53</id> <decay/> ! <type>1105</type> <value>75</value> <weight>0.02</weight> --- 455,459 ---- <id>0x1f53</id> <decay/> ! <events>scroll</events> <value>75</value> <weight>0.02</weight> *************** *** 466,470 **** <id>0x1f54</id> <decay/> ! <type>1105</type> <value>75</value> <weight>0.02</weight> --- 465,469 ---- <id>0x1f54</id> <decay/> ! <events>scroll</events> <value>75</value> <weight>0.02</weight> *************** *** 476,480 **** <id>0x1f55</id> <decay/> ! <type>1105</type> <value>90</value> <weight>0.02</weight> --- 475,479 ---- <id>0x1f55</id> <decay/> ! <events>scroll</events> <value>90</value> <weight>0.02</weight> *************** *** 486,490 **** <id>0x1f56</id> <decay/> ! <type>1105</type> <value>90</value> <weight>0.02</weight> --- 485,489 ---- <id>0x1f56</id> <decay/> ! <events>scroll</events> <value>90</value> <weight>0.02</weight> *************** *** 496,500 **** <id>0x1f57</id> <decay/> ! <type>1105</type> <value>90</value> <weight>0.02</weight> --- 495,499 ---- <id>0x1f57</id> <decay/> ! <events>scroll</events> <value>90</value> <weight>0.02</weight> *************** *** 506,510 **** <id>0x1f58</id> <decay/> ! <type>1105</type> <value>90</value> <weight>0.02</weight> --- 505,509 ---- <id>0x1f58</id> <decay/> ! <events>scroll</events> <value>90</value> <weight>0.02</weight> *************** *** 516,520 **** <id>0x1f59</id> <decay/> ! <type>1105</type> <value>90</value> <weight>0.02</weight> --- 515,519 ---- <id>0x1f59</id> <decay/> ! <events>scroll</events> <value>90</value> <weight>0.02</weight> *************** *** 526,530 **** <id>0x1f5a</id> <decay/> ! <type>1105</type> <value>90</value> <weight>0.02</weight> --- 525,529 ---- <id>0x1f5a</id> <decay/> ! <events>scroll</events> <value>90</value> <weight>0.02</weight> *************** *** 536,540 **** <id>0x1f5b</id> <decay/> ! <type>1105</type> <value>90</value> <weight>0.02</weight> --- 535,539 ---- <id>0x1f5b</id> <decay/> ! <events>scroll</events> <value>90</value> <weight>0.02</weight> *************** *** 546,550 **** <id>0x1f5c</id> <decay/> ! <type>1105</type> <value>90</value> <weight>0.02</weight> --- 545,549 ---- <id>0x1f5c</id> <decay/> ! <events>scroll</events> <value>90</value> <weight>0.02</weight> *************** *** 556,560 **** <id>0x1f5d</id> <decay/> ! <type>1105</type> <value>105</value> <weight>0.02</weight> --- 555,559 ---- <id>0x1f5d</id> <decay/> ! <events>scroll</events> <value>105</value> <weight>0.02</weight> *************** *** 566,570 **** <id>0x1f5e</id> <decay/> ! <type>1105</type> <value>105</value> <weight>0.02</weight> --- 565,569 ---- <id>0x1f5e</id> <decay/> ! <events>scroll</events> <value>105</value> <weight>0.02</weight> *************** *** 576,580 **** <id>0x1f5f</id> <decay/> ! <type>1105</type> <value>105</value> <weight>0.02</weight> --- 575,579 ---- <id>0x1f5f</id> <decay/> ! <events>scroll</events> <value>105</value> <weight>0.02</weight> *************** *** 586,590 **** <id>0x1f60</id> <decay/> ! <type>1105</type> <value>105</value> <weight>0.02</weight> --- 585,589 ---- <id>0x1f60</id> <decay/> ! <events>scroll</events> <value>105</value> <weight>0.02</weight> *************** *** 596,600 **** <id>0x1f61</id> <decay/> ! <type>1105</type> <value>105</value> <weight>0.02</weight> --- 595,599 ---- <id>0x1f61</id> <decay/> ! <events>scroll</events> <value>105</value> <weight>0.02</weight> *************** *** 606,610 **** <id>0x1f62</id> <decay/> ! <type>1105</type> <value>105</value> <weight>0.02</weight> --- 605,609 ---- <id>0x1f62</id> <decay/> ! <events>scroll</events> <value>105</value> <weight>0.02</weight> *************** *** 616,620 **** <id>0x1f63</id> <decay/> ! <type>1105</type> <value>105</value> <weight>0.02</weight> --- 615,619 ---- <id>0x1f63</id> <decay/> ! <events>scroll</events> <value>105</value> <weight>0.02</weight> *************** *** 626,630 **** <id>0x1f64</id> <decay/> ! <type>1105</type> <value>105</value> <weight>0.02</weight> --- 625,629 ---- <id>0x1f64</id> <decay/> ! <events>scroll</events> <value>105</value> <weight>0.02</weight> *************** *** 636,640 **** <id>0x1f65</id> <decay/> ! <type>1105</type> <value>120</value> <weight>0.02</weight> --- 635,639 ---- <id>0x1f65</id> <decay/> ! <events>scroll</events> <value>120</value> <weight>0.02</weight> *************** *** 646,650 **** <id>0x1f66</id> <decay/> ! <type>1105</type> <value>120</value> <weight>0.02</weight> --- 645,649 ---- <id>0x1f66</id> <decay/> ! <events>scroll</events> <value>120</value> <weight>0.02</weight> *************** *** 656,660 **** <id>0x1f67</id> <decay/> ! <type>1105</type> <value>120</value> <weight>0.02</weight> --- 655,659 ---- <id>0x1f67</id> <decay/> ! <events>scroll</events> <value>120</value> <weight>0.02</weight> *************** *** 666,670 **** <id>0x1f68</id> <decay/> ! <type>1105</type> <value>120</value> <weight>0.02</weight> --- 665,669 ---- <id>0x1f68</id> <decay/> ! <events>scroll</events> <value>120</value> <weight>0.02</weight> *************** *** 676,680 **** <id>0x1f69</id> <decay/> ! <type>1105</type> <value>120</value> <weight>0.02</weight> --- 675,679 ---- <id>0x1f69</id> <decay/> ! <events>scroll</events> <value>120</value> <weight>0.02</weight> *************** *** 686,690 **** <id>0x1f6a</id> <decay/> ! <type>1105</type> <value>120</value> <weight>0.02</weight> --- 685,689 ---- <id>0x1f6a</id> <decay/> ! <events>scroll</events> <value>120</value> <weight>0.02</weight> *************** *** 696,700 **** <id>0x1f6b</id> <decay/> ! <type>1105</type> <value>120</value> <weight>0.02</weight> --- 695,699 ---- <id>0x1f6b</id> <decay/> ! <events>scroll</events> <value>120</value> <weight>0.02</weight> *************** *** 706,710 **** <id>0x1f6c</id> <decay/> ! <type>1105</type> <value>120</value> <weight>0.02</weight> --- 705,709 ---- <id>0x1f6c</id> <decay/> ! <events>scroll</events> <value>120</value> <weight>0.02</weight> |
|
From: <thi...@us...> - 2003-07-24 04:03:51
|
Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1:/tmp/cvs-serv28220/network
Modified Files:
uopacket.cpp
Log Message:
compile fix
Index: uopacket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uopacket.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** uopacket.cpp 22 Jul 2003 17:16:56 -0000 1.35
--- uopacket.cpp 24 Jul 2003 04:03:48 -0000 1.36
***************
*** 589,593 ****
if( actLine * 16 + actRow < length )
{
! QCString number = QString::number( static_cast<uint>(static_cast<Q_UINT8>(data[actLine*16 + actRow])), 16 ) + " ";
//line += QString().sprintf( "%02x ", (unsigned int)((unsigned char)data[actLine * 16 + actRow]) );
if ( number.length() < 3 )
--- 589,593 ----
if( actLine * 16 + actRow < length )
{
! QCString number = QString::number( static_cast<uint>(static_cast<Q_UINT8>(data[actLine*16 + actRow])), 16 ).latin1() + QCString(" ");
//line += QString().sprintf( "%02x ", (unsigned int)((unsigned char)data[actLine * 16 + actRow]) );
if ( number.length() < 3 )
|
|
From: <thi...@us...> - 2003-07-23 22:39:12
|
Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1:/tmp/cvs-serv16125/network
Modified Files:
uorxpackets.cpp uosocket.cpp uotxpackets.cpp uotxpackets.h
Log Message:
small changes to allow code sharing with the text client + some clean-ups.
Index: uorxpackets.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uorxpackets.cpp,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** uorxpackets.cpp 22 Jul 2003 17:16:56 -0000 1.49
--- uorxpackets.cpp 23 Jul 2003 22:39:07 -0000 1.50
***************
*** 115,118 ****
--- 115,119 ----
};
}
+
cUOPacket *cUORxAosMultiPurpose::packet( const QByteArray& data )
{
***************
*** 129,132 ****
--- 130,134 ----
}
}
+
QString cUORxSpeechRequest::message()
{
Index: uosocket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v
retrieving revision 1.274
retrieving revision 1.275
diff -C2 -d -r1.274 -r1.275
*** uosocket.cpp 22 Jul 2003 17:16:56 -0000 1.274
--- uosocket.cpp 23 Jul 2003 22:39:07 -0000 1.275
***************
*** 1344,1361 ****
void cUOSocket::handleGetTip( cUORxGetTip* packet )
{
- /* UI32 y;
-
- QString motdText = DefManager->getText( "MOTD" );
- y = motdText.length() + 10;
-
- updscroll[1]=y>>8;
- updscroll[2]=y%256;
- updscroll[3]=2;
- updscroll[8]=(y-10)>>8;
- updscroll[9]=(y-10)%256;
- Xsend(s, updscroll, 10);
-
- Xsend(s, (char*)motdText.latin1(), motdText.length() );*/
-
if ( packet->isTip() )
{
--- 1344,1347 ----
***************
*** 1375,1379 ****
packet.setType( cUOTxTipWindow::Tip );
packet.setNumber( tip );
! packet.setMessage( tipText );
send( &packet );
}
--- 1361,1365 ----
packet.setType( cUOTxTipWindow::Tip );
packet.setNumber( tip );
! packet.setMessage( tipText.latin1() );
send( &packet );
}
Index: uotxpackets.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uotxpackets.cpp,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** uotxpackets.cpp 22 Jul 2003 17:16:56 -0000 1.70
--- uotxpackets.cpp 23 Jul 2003 22:39:07 -0000 1.71
***************
*** 208,211 ****
--- 208,212 ----
}
}
+
void cUOTxMapDiffs::addEntry( UINT32 mappatches, UINT32 staticpatches )
{
***************
*** 247,253 ****
void cUOTxDenyMove::setCoord( Coord_cl coord )
{
! setShort( 2, coord.x );
! setShort( 4, coord.y );
! (*this)[7] = coord.z;
}
--- 248,254 ----
void cUOTxDenyMove::setCoord( Coord_cl coord )
{
! setShort( 2, coord.x );
! setShort( 4, coord.y );
! (*this)[7] = coord.z;
}
***************
*** 372,376 ****
}
! void cUOTxTipWindow::setMessage( QString m )
{
ushort length = m.length();
--- 373,377 ----
}
! void cUOTxTipWindow::setMessage( const QCString& m )
{
ushort length = m.length();
***************
*** 378,382 ****
setShort(1, length + 11 );
setShort(8, length );
! setAsciiString(10, m.latin1(), length+1);
}
--- 379,383 ----
setShort(1, length + 11 );
setShort(8, length );
! setAsciiString(10, m.data(), length+1);
}
Index: uotxpackets.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uotxpackets.h,v
retrieving revision 1.87
retrieving revision 1.88
diff -C2 -d -r1.87 -r1.88
*** uotxpackets.h 22 Jul 2003 17:16:56 -0000 1.87
--- uotxpackets.h 23 Jul 2003 22:39:07 -0000 1.88
***************
*** 283,290 ****
{
public:
! cUOTxDrawContainer(): cUOPacket( 0x24, 7 ) {}
!
! void setSerial( Q_UINT32 serial ) { setInt( 1, serial ); }
! void setGump( Q_UINT16 gump ) { setShort( 5, gump ); }
};
--- 283,290 ----
{
public:
! cUOTxDrawContainer(): cUOPacket( 0x24, 7 ) {}
!
! void setSerial( Q_UINT32 serial ) { setInt( 1, serial ); }
! void setGump( Q_UINT16 gump ) { setShort( 5, gump ); }
};
***************
*** 670,674 ****
void setType( WindowType t ) { (*this)[3] = t; }
void setNumber( ushort n ) { setShort(6, n); }
! void setMessage(QString m);
};
--- 670,674 ----
void setType( WindowType t ) { (*this)[3] = t; }
void setNumber( ushort n ) { setShort(6, n); }
! void setMessage( const QCString& m );
};
|
|
From: <thi...@us...> - 2003-07-23 22:39:12
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1:/tmp/cvs-serv16125 Modified Files: debug.cpp Log Message: small changes to allow code sharing with the text client + some clean-ups. Index: debug.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/debug.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** debug.cpp 20 Jul 2003 00:04:51 -0000 1.8 --- debug.cpp 23 Jul 2003 22:39:07 -0000 1.9 *************** *** 577,581 **** }; ! static debugThread myDebugThread; --- 577,581 ---- }; ! //static debugThread myDebugThread; |