Assembla home | Assembla project page
 

Changeset 915

Show
Ignore:
Timestamp:
11/08/08 07:31:01 (8 months ago)
Author:
kyle
Message:

[Added] Vehicle Crafting (Removed from Blue Frogs) Resource requirement temporarity lowered until harversters are 100% Thanks Thoop!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • core3/trunk/MMOCoreORB/bin/scripts/crafting/main.lua

    r860 r915  
    8181RunDraftSchematicFile("objects/draftschematics/artisan/gasPocketSurveyDevice.lua") 
    8282RunDraftSchematicFile("objects/draftschematics/artisan/floraSurveyTool.lua") 
     83RunDraftSchematicFile("objects/draftschematics/artisan/swoop.lua") 
     84RunDraftSchematicFile("objects/draftschematics/artisan/speederbike.lua") 
     85RunDraftSchematicFile("objects/draftschematics/artisan/x34Landspeeder.lua") 
    8386RunDraftSchematicFile("objects/draftschematics/weaponsmith/blasterPowerHandler.lua") 
    8487RunDraftSchematicFile("objects/draftschematics/weaponsmith/blasterRifleBarrel.lua") 
  • core3/trunk/MMOCoreORB/bin/scripts/items/bluefrog/itemsets.lua

    r913 r915  
    5555RunItemLUAFile("bluefrog/instrumentSet.lua"); 
    5656 
    57 RunItemLUAFile("bluefrog/vehicleDeedSet.lua"); 
     57--RunItemLUAFile("bluefrog/vehicleDeedSet.lua"); 
    5858--RunItemLUAFile("bluefrog/housingDeedSet.lua"); 
    5959 
  • core3/trunk/MMOCoreORB/src/server/zone/managers/item/ItemManagerImplementation.cpp

    r912 r915  
    12381238                        land = new MountCreature(player, res->getString(2), "monster_name", 
    12391239                                        res->getLong(3), res->getLong(4), res->getUnsignedLong(9)); 
     1240                        land->setObjectFileName(res->getString(5)); 
    12401241 
    12411242                        land->setZoneProcessServer(pServer); 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/creature/Creature.cpp

    r884 r915  
    504504} 
    505505 
     506string& Creature::getObjectFileName() { 
     507        if (_impl == NULL) { 
     508                if (!deployed) 
     509                        throw ObjectNotDeployedException(this); 
     510 
     511                DistributedMethod method(this, 43); 
     512 
     513                method.executeWithAsciiReturn(_return_getObjectFileName); 
     514                return _return_getObjectFileName; 
     515        } else 
     516                return ((CreatureImplementation*) _impl)->getObjectFileName(); 
     517} 
     518 
    506519void Creature::setType(int tp) { 
    507520        if (_impl == NULL) { 
     
    509522                        throw ObjectNotDeployedException(this); 
    510523 
    511                 DistributedMethod method(this, 43); 
     524                DistributedMethod method(this, 44); 
    512525                method.addSignedIntParameter(tp); 
    513526 
     
    522535                        throw ObjectNotDeployedException(this); 
    523536 
    524                 DistributedMethod method(this, 44); 
     537                DistributedMethod method(this, 45); 
    525538                method.addUnsignedIntParameter(seconds); 
    526539 
     
    531544 
    532545void Creature::removePlayerFromHarvestList(string& firstName) { 
    533         if (_impl == NULL) { 
    534                 if (!deployed) 
    535                         throw ObjectNotDeployedException(this); 
    536  
    537                 DistributedMethod method(this, 45); 
    538                 method.addAsciiParameter(firstName); 
    539  
    540                 method.executeWithVoidReturn(); 
    541         } else 
    542                 ((CreatureImplementation*) _impl)->removePlayerFromHarvestList(firstName); 
    543 } 
    544  
    545 bool Creature::canHarvest(string& firstName) { 
    546546        if (_impl == NULL) { 
    547547                if (!deployed) 
     
    551551                method.addAsciiParameter(firstName); 
    552552 
     553                method.executeWithVoidReturn(); 
     554        } else 
     555                ((CreatureImplementation*) _impl)->removePlayerFromHarvestList(firstName); 
     556} 
     557 
     558bool Creature::canHarvest(string& firstName) { 
     559        if (_impl == NULL) { 
     560                if (!deployed) 
     561                        throw ObjectNotDeployedException(this); 
     562 
     563                DistributedMethod method(this, 47); 
     564                method.addAsciiParameter(firstName); 
     565 
    553566                return method.executeWithBooleanReturn(); 
    554567        } else 
     
    561574                        throw ObjectNotDeployedException(this); 
    562575 
    563                 DistributedMethod method(this, 47); 
     576                DistributedMethod method(this, 48); 
    564577 
    565578                return method.executeWithBooleanReturn(); 
     
    573586                        throw ObjectNotDeployedException(this); 
    574587 
    575                 DistributedMethod method(this, 48); 
     588                DistributedMethod method(this, 49); 
    576589 
    577590                method.executeWithVoidReturn(); 
     
    581594 
    582595void Creature::setLootCreated(bool value) { 
    583         if (_impl == NULL) { 
    584                 if (!deployed) 
    585                         throw ObjectNotDeployedException(this); 
    586  
    587                 DistributedMethod method(this, 49); 
    588                 method.addBooleanParameter(value); 
    589  
    590                 method.executeWithVoidReturn(); 
    591         } else 
    592                 ((CreatureImplementation*) _impl)->setLootCreated(value); 
    593 } 
    594  
    595 void Creature::setRandomMovement(bool value) { 
    596596        if (_impl == NULL) { 
    597597                if (!deployed) 
     
    603603                method.executeWithVoidReturn(); 
    604604        } else 
     605                ((CreatureImplementation*) _impl)->setLootCreated(value); 
     606} 
     607 
     608void Creature::setRandomMovement(bool value) { 
     609        if (_impl == NULL) { 
     610                if (!deployed) 
     611                        throw ObjectNotDeployedException(this); 
     612 
     613                DistributedMethod method(this, 51); 
     614                method.addBooleanParameter(value); 
     615 
     616                method.executeWithVoidReturn(); 
     617        } else 
    605618                ((CreatureImplementation*) _impl)->setRandomMovement(value); 
    606619} 
     
    611624                        throw ObjectNotDeployedException(this); 
    612625 
    613                 DistributedMethod method(this, 51); 
     626                DistributedMethod method(this, 52); 
    614627 
    615628                return method.executeWithUnsignedIntReturn(); 
     
    623636                        throw ObjectNotDeployedException(this); 
    624637 
    625                 DistributedMethod method(this, 52); 
     638                DistributedMethod method(this, 53); 
    626639                method.addUnsignedIntParameter(value); 
    627640 
     
    754767                break; 
    755768        case 43: 
     769                resp->insertAscii(getObjectFileName()); 
     770                break; 
     771        case 44: 
    756772                setType(inv->getSignedIntParameter()); 
    757773                break; 
    758         case 44
     774        case 45
    759775                setRespawnTimer(inv->getUnsignedIntParameter()); 
    760776                break; 
    761         case 45
     777        case 46
    762778                removePlayerFromHarvestList(inv->getAsciiParameter(_param0_removePlayerFromHarvestList__string_)); 
    763779                break; 
    764         case 46
     780        case 47
    765781                resp->insertBoolean(canHarvest(inv->getAsciiParameter(_param0_canHarvest__string_))); 
    766782                break; 
    767         case 47
     783        case 48
    768784                resp->insertBoolean(beenLooted()); 
    769785                break; 
    770         case 48
     786        case 49
    771787                wasLooted(); 
    772788                break; 
    773         case 49
     789        case 50
    774790                setLootCreated(inv->getBooleanParameter()); 
    775791                break; 
    776         case 50
     792        case 51
    777793                setRandomMovement(inv->getBooleanParameter()); 
    778794                break; 
    779         case 51
     795        case 52
    780796                resp->insertInt(getFPValue()); 
    781797                break; 
    782         case 52
     798        case 53
    783799                setFPValue(inv->getUnsignedIntParameter()); 
    784800                break; 
     
    938954} 
    939955 
     956string& CreatureAdapter::getObjectFileName() { 
     957        return ((CreatureImplementation*) impl)->getObjectFileName(); 
     958} 
     959 
    940960void CreatureAdapter::setType(int tp) { 
    941961        return ((CreatureImplementation*) impl)->setType(tp); 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/creature/Creature.h

    r884 r915  
    104104        void setObjectFileName(const string& name); 
    105105 
     106        string& getObjectFileName(); 
     107 
    106108        void setType(int tp); 
    107109 
     
    130132 
    131133        string _return_getName; 
     134        string _return_getObjectFileName; 
    132135 
    133136        friend class CreatureHelper; 
     
    215218 
    216219        void setObjectFileName(const string& name); 
     220 
     221        string& getObjectFileName(); 
    217222 
    218223        void setType(int tp); 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/creature/Creature.idl

    r884 r915  
    138138 
    139139        void setObjectFileName(const string name); 
     140         
     141        string getObjectFileName(); 
    140142 
    141143        void setType(int tp); 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureImplementation.h

    r884 r915  
    235235        } 
    236236 
     237        inline string& getObjectFileName() { 
     238                return objectFile; 
     239        } 
     240 
    237241        inline void setType(int tp) { 
    238242                type = tp; 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObject.cpp

    r901 r915  
    58325832} 
    58335833 
     5834void CreatureObject::setMaxCondition(int condition) { 
     5835        if (_impl == NULL) { 
     5836                if (!deployed) 
     5837                        throw ObjectNotDeployedException(this); 
     5838 
     5839                DistributedMethod method(this, 457); 
     5840                method.addSignedIntParameter(condition); 
     5841 
     5842                method.executeWithVoidReturn(); 
     5843        } else 
     5844                ((CreatureObjectImplementation*) _impl)->setMaxCondition(condition); 
     5845} 
     5846 
    58345847void CreatureObject::setPosture(unsigned char state, bool overrideDizzy, bool objectInteraction, float objX, float objY, float objZ) { 
    58355848        if (_impl == NULL) { 
     
    58375850                        throw ObjectNotDeployedException(this); 
    58385851 
    5839                 DistributedMethod method(this, 457); 
     5852                DistributedMethod method(this, 458); 
    58405853                method.addUnsignedCharParameter(state); 
    58415854                method.addBooleanParameter(overrideDizzy); 
     
    58555868                        throw ObjectNotDeployedException(this); 
    58565869 
    5857                 DistributedMethod method(this, 458); 
     5870                DistributedMethod method(this, 459); 
    58585871                method.addUnsignedIntParameter(mask); 
    58595872 
     
    58685881                        throw ObjectNotDeployedException(this); 
    58695882 
    5870                 DistributedMethod method(this, 459); 
     5883                DistributedMethod method(this, 460); 
    58715884                method.addUnsignedCharParameter(rank); 
    58725885                method.addBooleanParameter(updateClient); 
     
    58825895                        throw ObjectNotDeployedException(this); 
    58835896 
    5884                 DistributedMethod method(this, 460); 
     5897                DistributedMethod method(this, 461); 
    58855898 
    58865899                method.executeWithVoidReturn(); 
     
    58945907                        throw ObjectNotDeployedException(this); 
    58955908 
    5896                 DistributedMethod method(this, 461); 
     5909                DistributedMethod method(this, 462); 
    58975910 
    58985911                method.executeWithVoidReturn(); 
     
    59065919                        throw ObjectNotDeployedException(this); 
    59075920 
    5908                 DistributedMethod method(this, 462); 
     5921                DistributedMethod method(this, 463); 
    59095922 
    59105923                method.executeWithVoidReturn(); 
     
    59185931                        throw ObjectNotDeployedException(this); 
    59195932 
    5920                 DistributedMethod method(this, 463); 
     5933                DistributedMethod method(this, 464); 
    59215934 
    59225935                method.executeWithVoidReturn(); 
     
    59265939 
    59275940void CreatureObject::setPoisonedState(int str, int type, int duration) { 
    5928         if (_impl == NULL) { 
    5929                 if (!deployed) 
    5930                         throw ObjectNotDeployedException(this); 
    5931  
    5932                 DistributedMethod method(this, 464); 
    5933                 method.addSignedIntParameter(str); 
    5934                 method.addSignedIntParameter(type); 
    5935                 method.addSignedIntParameter(duration); 
    5936  
    5937                 method.executeWithVoidReturn(); 
    5938         } else 
    5939                 ((CreatureObjectImplementation*) _impl)->setPoisonedState(str, type, duration); 
    5940 } 
    5941  
    5942 void CreatureObject::setBleedingState(int str, int type, int duration) { 
    59435941        if (_impl == NULL) { 
    59445942                if (!deployed) 
     
    59525950                method.executeWithVoidReturn(); 
    59535951        } else 
    5954                 ((CreatureObjectImplementation*) _impl)->setBleedingState(str, type, duration); 
    5955 } 
    5956  
    5957 void CreatureObject::setDiseasedState(int str, int type, int duration) { 
     5952                ((CreatureObjectImplementation*) _impl)->setPoisonedState(str, type, duration); 
     5953} 
     5954 
     5955void CreatureObject::setBleedingState(int str, int type, int duration) { 
    59585956        if (_impl == NULL) { 
    59595957                if (!deployed) 
     
    59675965                method.executeWithVoidReturn(); 
    59685966        } else 
    5969                 ((CreatureObjectImplementation*) _impl)->setDiseasedState(str, type, duration); 
    5970 } 
    5971  
    5972 void CreatureObject::setOnFireState(int str, int type, int duration) { 
     5967                ((CreatureObjectImplementation*) _impl)->setBleedingState(str, type, duration); 
     5968} 
     5969 
     5970void CreatureObject::setDiseasedState(int str, int type, int duration) { 
    59735971        if (_impl == NULL) { 
    59745972                if (!deployed) 
     
    59825980                method.executeWithVoidReturn(); 
    59835981        } else 
     5982                ((CreatureObjectImplementation*) _impl)->setDiseasedState(str, type, duration); 
     5983} 
     5984 
     5985void CreatureObject::setOnFireState(int str, int type, int duration) { 
     5986        if (_impl == NULL) { 
     5987                if (!deployed) 
     5988                        throw ObjectNotDeployedException(this); 
     5989 
     5990                DistributedMethod method(this, 468); 
     5991                method.addSignedIntParameter(str); 
     5992                method.addSignedIntParameter(type); 
     5993                method.addSignedIntParameter(duration); 
     5994 
     5995                method.executeWithVoidReturn(); 
     5996        } else 
    59845997                ((CreatureObjectImplementation*) _impl)->setOnFireState(str, type, duration); 
    59855998} 
     
    59906003                        throw ObjectNotDeployedException(this); 
    59916004 
    5992                 DistributedMethod method(this, 468); 
     6005                DistributedMethod method(this, 469); 
    59936006                method.addUnsignedIntParameter(bitmask); 
    59946007 
     
    60036016                        throw ObjectNotDeployedException(this); 
    60046017 
    6005                 DistributedMethod method(this, 469); 
     6018                DistributedMethod method(this, 470); 
    60066019                method.addSignedIntParameter(del); 
    60076020 
     
    60166029                        throw ObjectNotDeployedException(this); 
    60176030 
    6018                 DistributedMethod method(this, 470); 
     6031                DistributedMethod method(this, 471); 
    60196032                method.addAsciiParameter(name); 
    60206033 
     
    60296042                        throw ObjectNotDeployedException(this); 
    60306043 
    6031                 DistributedMethod method(this, 471); 
     6044                DistributedMethod method(this, 472); 
    60326045                method.addUnicodeParameter(name); 
    60336046 
     
    60426055                        throw ObjectNotDeployedException(this); 
    60436056 
    6044                 DistributedMethod method(this, 472); 
     6057                DistributedMethod method(this, 473); 
    60456058                method.addAsciiParameter(name); 
    60466059 
     
    60556068                        throw ObjectNotDeployedException(this); 
    60566069 
    6057                 DistributedMethod method(this, 473); 
     6070                DistributedMethod method(this, 474); 
    60586071                method.addAsciiParameter(cust); 
    60596072 
     
    60686081                        throw ObjectNotDeployedException(this); 
    60696082 
    6070                 DistributedMethod method(this, 474); 
     6083                DistributedMethod method(this, 475); 
    60716084                method.addUnsignedCharParameter(type); 
    60726085                method.addUnsignedCharParameter(value); 
     
    60826095                        throw ObjectNotDeployedException(this); 
    60836096 
    6084                 DistributedMethod method(this, 475); 
     6097                DistributedMethod method(this, 476); 
    60856098                method.addAsciiParameter(type); 
    60866099                method.addUnsignedCharParameter(value); 
     
    60966109                        throw ObjectNotDeployedException(this); 
    60976110 
    6098                 DistributedMethod method(this, 476); 
     6111                DistributedMethod method(this, 477); 
    60996112 
    61006113                method.executeWithVoidReturn(); 
     
    61086121                        throw ObjectNotDeployedException(this); 
    61096122 
    6110                 DistributedMethod method(this, 477); 
     6123                DistributedMethod method(this, 478); 
    61116124                method.addAsciiParameter(cust); 
    61126125 
     
    61216134                        throw ObjectNotDeployedException(this); 
    61226135 
    6123                 DistributedMethod method(this, 478); 
     6136                DistributedMethod method(this, 479); 
    61246137                method.addUnsignedCharParameter(type); 
    61256138                method.addUnsignedCharParameter(value); 
     
    61356148                        throw ObjectNotDeployedException(this); 
    61366149 
    6137                 DistributedMethod method(this, 479); 
     6150                DistributedMethod method(this, 480); 
    61386151                method.addAsciiParameter(type); 
    61396152                method.addUnsignedCharParameter(value); 
     
    61496162                        throw ObjectNotDeployedException(this); 
    61506163 
    6151                 DistributedMethod method(this, 480); 
    6152                 method.addAsciiParameter(name); 
    6153  
    6154                 method.executeWithVoidReturn(); 
    6155         } else 
    6156                 ((CreatureObjectImplementation*) _impl)->setRaceName(name); 
    6157 } 
    6158  
    6159 void CreatureObject::setSpeciesName(const string& name) { 
    6160         if (_impl == NULL) { 
    6161                 if (!deployed) 
    6162                         throw ObjectNotDeployedException(this); 
    6163  
    61646164                DistributedMethod method(this, 481); 
    61656165                method.addAsciiParameter(name); 
     
    61676167                method.executeWithVoidReturn(); 
    61686168        } else 
    6169                 ((CreatureObjectImplementation*) _impl)->setSpeciesName(name); 
    6170 } 
    6171  
    6172 void CreatureObject::setStfName(const string& name) { 
     6169                ((CreatureObjectImplementation*) _impl)->setRaceName(name); 
     6170} 
     6171 
     6172void CreatureObject::setSpeciesName(const string& name) { 
    61736173        if (_impl == NULL) { 
    61746174                if (!deployed) 
     
    61806180                method.executeWithVoidReturn(); 
    61816181        } else 
    6182                 ((CreatureObjectImplementation*) _impl)->setStfName(name); 
    6183 } 
    6184  
    6185 void CreatureObject::setGender(const string& name) { 
     6182                ((CreatureObjectImplementation*) _impl)->setSpeciesName(name); 
     6183} 
     6184 
     6185void CreatureObject::setStfName(const string& name) { 
    61866186        if (_impl == NULL) { 
    61876187                if (!deployed) 
     
    61936193                method.executeWithVoidReturn(); 
    61946194        } else 
     6195                ((CreatureObjectImplementation*) _impl)->setStfName(name); 
     6196} 
     6197 
     6198void CreatureObject::setGender(const string& name) { 
     6199        if (_impl == NULL) { 
     6200                if (!deployed) 
     6201                        throw ObjectNotDeployedException(this); 
     6202 
     6203                DistributedMethod method(this, 484); 
     6204                method.addAsciiParameter(name); 
     6205 
     6206                method.executeWithVoidReturn(); 
     6207        } else 
    61956208                ((CreatureObjectImplementation*) _impl)->setGender(name); 
    61966209} 
     
    62016214                        throw ObjectNotDeployedException(this); 
    62026215 
    6203                 DistributedMethod method(this, 484); 
     6216                DistributedMethod method(this, 485); 
    62046217                method.addUnsignedIntParameter(fac); 
    62056218 
     
    62146227                        throw ObjectNotDeployedException(this); 
    62156228 
    6216                 DistributedMethod method(this, 485); 
     6229                DistributedMethod method(this, 486); 
    62176230                method.addFloatParameter(h); 
    62186231 
     
    62276240                        throw ObjectNotDeployedException(this); 
    62286241 
    6229                 DistributedMethod method(this, 486); 
     6242                DistributedMethod method(this, 487); 
    62306243                method.addUnsignedCharParameter(mdid); 
    62316244 
     
    62406253                        throw ObjectNotDeployedException(this); 
    62416254 
    6242                 DistributedMethod method(this, 487); 
     6255                DistributedMethod method(this, 488); 
    62436256                method.addAsciiParameter(m); 
    62446257 
     
    62536266                        throw ObjectNotDeployedException(this); 
    62546267 
    6255                 DistributedMethod method(this, 488); 
     6268                DistributedMethod method(this, 489); 
    62566269                method.addObjectParameter(Group); 
    62576270 
     
    62666279                        throw ObjectNotDeployedException(this); 
    62676280 
    6268                 DistributedMethod method(this, 489); 
     6281                DistributedMethod method(this, 490); 
    62696282                method.addObjectParameter(mount); 
    62706283 
     
    62796292                        throw ObjectNotDeployedException(this); 
    62806293 
    6281                 DistributedMethod method(this, 490); 
     6294                DistributedMethod method(this, 491); 
    62826295                method.addSignedIntParameter(level); 
    62836296                method.addBooleanParameter(destroy); 
     
    62936306                        throw ObjectNotDeployedException(this); 
    62946307 
    6295                 DistributedMethod method(this, 491); 
    6296                 method.addUnsignedIntParameter(buffCRC); 
    6297  
    6298                 return (BuffObject*) method.executeWithObjectReturn(); 
    6299         } else 
    6300                 return ((CreatureObjectImplementation*) _impl)->getBuffObject(buffCRC); 
    6301 } 
    6302  
    6303 bool CreatureObject::hasBuff(const unsigned int buffCRC) { 
    6304         if (_impl == NULL) { 
    6305                 if (!deployed) 
    6306                         throw ObjectNotDeployedException(this); 
    6307  
    63086308                DistributedMethod method(this, 492); 
    63096309                method.addUnsignedIntParameter(buffCRC); 
    63106310 
     6311                return (BuffObject*) method.executeWithObjectReturn(); 
     6312        } else 
     6313                return ((CreatureObjectImplementation*) _impl)->getBuffObject(buffCRC); 
     6314} 
     6315 
     6316bool CreatureObject::hasBuff(const unsigned int buffCRC) { 
     6317        if (_impl == NULL) { 
     6318                if (!deployed) 
     6319                        throw ObjectNotDeployedException(this); 
     6320 
     6321                DistributedMethod method(this, 493); 
     6322                method.addUnsignedIntParameter(buffCRC); 
     6323 
    63116324                return method.executeWithBooleanReturn(); 
    63126325        } else 
     
    63156328 
    63166329int CreatureObject::healDamage(CreatureObject* target, int damage, unsigned char attribute, bool doBattleFatigue) { 
    6317         if (_impl == NULL) { 
    6318                 if (!deployed) 
    6319                         throw ObjectNotDeployedException(this); 
    6320  
    6321                 DistributedMethod method(this, 493); 
    6322                 method.addObjectParameter(target); 
    6323                 method.addSignedIntParameter(damage); 
    6324                 method.addUnsignedCharParameter(attribute); 
    6325                 method.addBooleanParameter(doBattleFatigue); 
    6326  
    6327                 return method.executeWithSignedIntReturn(); 
    6328         } else 
    6329                 return ((CreatureObjectImplementation*) _impl)->healDamage(target, damage, attribute, doBattleFatigue); 
    6330 } 
    6331  
    6332 int CreatureObject::healWound(CreatureObject* target, int damage, unsigned char attribute, bool doBattleFatigue) { 
    63336330        if (_impl == NULL) { 
    63346331                if (!deployed) 
     
    63436340                return method.executeWithSignedIntReturn(); 
    63446341        } else 
     6342                return ((CreatureObjectImplementation*) _impl)->healDamage(target, damage, attribute, doBattleFatigue); 
     6343} 
     6344 
     6345int CreatureObject::healWound(CreatureObject* target, int damage, unsigned char attribute, bool doBattleFatigue) { 
     6346        if (_impl == NULL) { 
     6347                if (!deployed) 
     6348                        throw ObjectNotDeployedException(this); 
     6349 
     6350                DistributedMethod method(this, 495); 
     6351                method.addObjectParameter(target); 
     6352                method.addSignedIntParameter(damage); 
     6353                method.addUnsignedCharParameter(attribute); 
     6354                method.addBooleanParameter(doBattleFatigue); 
     6355 
     6356                return method.executeWithSignedIntReturn(); 
     6357        } else 
    63456358                return ((CreatureObjectImplementation*) _impl)->healWound(target, damage, attribute, doBattleFatigue); 
    63466359} 
     
    63516364                        throw ObjectNotDeployedException(this); 
    63526365 
    6353                 DistributedMethod method(this, 495); 
     6366                DistributedMethod method(this, 496); 
    63546367                method.addObjectParameter(target); 
    63556368                method.addSignedIntParameter(amount); 
     
    63686381                        throw ObjectNotDeployedException(this); 
    63696382 
    6370                 DistributedMethod method(this, 496); 
    6371                 method.addObjectParameter(target); 
    6372                 method.addFloatParameter(effectiveness); 
    6373  
    6374                 return method.executeWithBooleanReturn(); 
    6375         } else 
    6376                 return ((CreatureObjectImplementation*) _impl)->curePoison(target, effectiveness); 
    6377 } 
    6378  
    6379 bool CreatureObject::cureDisease(CreatureObject* target, float effectiveness) { 
    6380         if (_impl == NULL) { 
    6381                 if (!deployed) 
    6382                         throw ObjectNotDeployedException(this); 
    6383  
    63846383                DistributedMethod method(this, 497); 
    63856384                method.addObjectParameter(target); 
     
    63886387                return method.executeWithBooleanReturn(); 
    63896388        } else 
    6390                 return ((CreatureObjectImplementation*) _impl)->cureDisease(target, effectiveness); 
    6391 } 
    6392  
    6393 bool CreatureObject::extinguishFire(CreatureObject* target, float effectiveness) { 
     6389                return ((CreatureObjectImplementation*) _impl)->curePoison(target, effectiveness); 
     6390} 
     6391 
     6392bool CreatureObject::cureDisease(CreatureObject* target, float effectiveness) { 
    63946393        if (_impl == NULL) { 
    63956394                if (!deployed) 
     
    64026401                return method.executeWithBooleanReturn(); 
    64036402        } else 
    6404                 return ((CreatureObjectImplementation*) _impl)->extinguishFire(target, effectiveness); 
    6405 } 
    6406  
    6407 bool CreatureObject::healState(CreatureObject* target, unsigned long long state) { 
     6403                return ((CreatureObjectImplementation*) _impl)->cureDisease(target, effectiveness); 
     6404} 
     6405 
     6406bool CreatureObject::extinguishFire(CreatureObject* target, float effectiveness) { 
    64086407        if (_impl == NULL) { 
    64096408                if (!deployed) 
     
    64126411                DistributedMethod method(this, 499); 
    64136412                method.addObjectParameter(target); 
    6414                 method.addUnsignedLongParameter(state); 
     6413                method.addFloatParameter(effectiveness); 
    64156414 
    64166415                return method.executeWithBooleanReturn(); 
    64176416        } else 
    6418                 return ((CreatureObjectImplementation*) _impl)->healState(target, state); 
    6419 } 
    6420  
    6421 bool CreatureObject::revive(CreatureObject* target, bool forcedChange) { 
     6417                return ((CreatureObjectImplementation*) _impl)->extinguishFire(target, effectiveness); 
     6418} 
     6419 
     6420bool CreatureObject::healState(CreatureObject* target, unsigned long long state) { 
    64226421        if (_impl == NULL) { 
    64236422                if (!deployed) 
     
    64266425                DistributedMethod method(this, 500); 
    64276426                method.addObjectParameter(target); 
    6428                 method.addBooleanParameter(forcedChange); 
     6427                method.addUnsignedLongParameter(state); 
    64296428 
    64306429                return method.executeWithBooleanReturn(); 
    64316430        } else 
    6432                 return ((CreatureObjectImplementation*) _impl)->revive(target, forcedChange); 
    6433 } 
    6434  
    6435 bool CreatureObject::resurrect(CreatureObject* target, bool forcedChange) { 
     6431                return ((CreatureObjectImplementation*) _impl)->healState(target, state); 
     6432} 
     6433 
     6434bool CreatureObject::revive(CreatureObject* target, bool forcedChange) { 
    64366435        if (_impl == NULL) { 
    64376436                if (!deployed) 
     
    64446443                return method.executeWithBooleanReturn(); 
    64456444        } else 
     6445                return ((CreatureObjectImplementation*) _impl)->revive(target, forcedChange); 
     6446} 
     6447 
     6448bool CreatureObject::resurrect(CreatureObject* target, bool forcedChange) { 
     6449        if (_impl == NULL) { 
     6450                if (!deployed) 
     6451                        throw ObjectNotDeployedException(this); 
     6452 
     6453                DistributedMethod method(this, 502); 
     6454                method.addObjectParameter(target); 
     6455                method.addBooleanParameter(forcedChange); 
     6456 
     6457                return method.executeWithBooleanReturn(); 
     6458        } else 
    64466459                return ((CreatureObjectImplementation*) _impl)->resurrect(target, forcedChange); 
    64476460} 
     
    64526465                        throw ObjectNotDeployedException(this); 
    64536466 
    6454                 DistributedMethod method(this, 502); 
     6467                DistributedMethod method(this, 503); 
    64556468 
    64566469                method.executeWithVoidReturn(); 
     
    64646477                        throw ObjectNotDeployedException(this); 
    64656478 
    6466                 DistributedMethod method(this, 503); 
     6479                DistributedMethod method(this, 504); 
    64676480 
    64686481                method.executeWithVoidReturn(); 
     
    64766489                        throw ObjectNotDeployedException(this); 
    64776490 
    6478                 DistributedMethod method(this, 504); 
     6491                DistributedMethod method(this, 505); 
    64796492 
    64806493                method.executeWithVoidReturn(); 
     
    64886501                        throw ObjectNotDeployedException(this); 
    64896502 
    6490                 DistributedMethod method(this, 505); 
     6503                DistributedMethod method(this, 506); 
    64916504 
    64926505                method.executeWithVoidReturn(); 
     
    65006513                        throw ObjectNotDeployedException(this); 
    65016514 
    6502                 DistributedMethod method(this, 506); 
     6515                DistributedMethod method(this, 507); 
    65036516 
    65046517                method.executeWithVoidReturn(); 
     
    65126525                        throw ObjectNotDeployedException(this); 
    65136526 
    6514                 DistributedMethod method(this, 507); 
     6527                DistributedMethod method(this, 508); 
    65156528 
    65166529                method.executeWithVoidReturn(); 
     
    65246537                        throw ObjectNotDeployedException(this); 
    65256538 
    6526                 DistributedMethod method(this, 508); 
     6539                DistributedMethod method(this, 509); 
    65276540 
    65286541                method.executeWithVoidReturn(); 
     
    65366549                        throw ObjectNotDeployedException(this); 
    65376550 
    6538                 DistributedMethod method(this, 509); 
     6551                DistributedMethod method(this, 510); 
    65396552 
    65406553                method.executeWithVoidReturn(); 
     
    65486561                        throw ObjectNotDeployedException(this); 
    65496562 
    6550                 DistributedMethod method(this, 510); 
     6563                DistributedMethod method(this, 511); 
    65516564 
    65526565                return method.executeWithBooleanReturn(); 
     
    65606573                        throw ObjectNotDeployedException(this); 
    65616574 
    6562                 DistributedMethod method(this, 511); 
     6575                DistributedMethod method(this, 512); 
    65636576 
    65646577                return method.executeWithBooleanReturn(); 
     
    65726585                        throw ObjectNotDeployedException(this); 
    65736586 
    6574                 DistributedMethod method(this, 512); 
     6587                DistributedMethod method(this, 513); 
    65756588 
    65766589                return method.executeWithBooleanReturn(); 
     
    65846597                        throw ObjectNotDeployedException(this); 
    65856598 
    6586                 DistributedMethod method(this, 513); 
     6599                DistributedMethod method(this, 514); 
    65876600 
    65886601                return method.executeWithBooleanReturn(); 
     
    65966609                        throw ObjectNotDeployedException(this); 
    65976610 
    6598                 DistributedMethod method(this, 514); 
     6611                DistributedMethod method(this, 515); 
    65996612 
    66006613                return method.executeWithSignedIntReturn(); 
     
    66086621                        throw ObjectNotDeployedException(this); 
    66096622 
    6610                 DistributedMethod method(this, 515); 
     6623                DistributedMethod method(this, 516); 
    66116624                method.addAsciiParameter(bone); 
    66126625 
     
    66216634                        throw ObjectNotDeployedException(this); 
    66226635 
    6623                 DistributedMethod method(this, 516); 
     6636                DistributedMethod method(this, 517); 
    66246637                method.addSignedIntParameter(bonemax); 
    66256638 
     
    66346647                        throw ObjectNotDeployedException(this); 
    66356648 
    6636                 DistributedMethod method(this, 517); 
     6649                DistributedMethod method(this, 518); 
    66376650                method.addAsciiParameter(hide); 
    66386651 
     
    66476660                        throw ObjectNotDeployedException(this); 
    66486661 
    6649                 DistributedMethod method(this, 518); 
     6662                DistributedMethod method(this, 519); 
    66506663                method.addSignedIntParameter(hidemax); 
    66516664 
     
    66606673                        throw ObjectNotDeployedException(this); 
    66616674 
    6662                 DistributedMethod method(this, 519); 
     6675                DistributedMethod method(this, 520); 
    66636676                method.addAsciiParameter(meat); 
    66646677 
     
    66736686                        throw ObjectNotDeployedException(this); 
    66746687 
    6675                 DistributedMethod method(this, 520); 
     6688                DistributedMethod method(this, 521); 
    66766689                method.addSignedIntParameter(meatmax); 
    66776690 
     
    66866699                        throw ObjectNotDeployedException(this); 
    66876700 
    6688                 DistributedMethod method(this, 521); 
     6701                DistributedMethod method(this, 522); 
    66896702                method.addSignedIntParameter(milkamt); 
    66906703 
     
    66996712                        throw ObjectNotDeployedException(this); 
    67006713 
    6701                 DistributedMethod method(this, 522); 
     6714                DistributedMethod method(this, 523); 
    67026715                method.addSignedIntParameter(xp); 
    67036716 
     
    67126725                        throw ObjectNotDeployedException(this); 
    67136726 
    6714                 DistributedMethod method(this, 523); 
     6727                DistributedMethod method(this, 524); 
    67156728                method.addSignedIntParameter(heale); 
    67166729 
     
    67256738                        throw ObjectNotDeployedException(this); 
    67266739 
    6727                 DistributedMethod method(this, 524); 
     6740                DistributedMethod method(this, 525); 
    67286741                method.addSignedIntParameter(pack); 
    67296742 
     
    67386751                        throw ObjectNotDeployedException(this); 
    67396752 
    6740                 DistributedMethod method(this, 525); 
     6753                DistributedMethod method(this, 526); 
    67416754                method.addSignedIntParameter(herd); 
    67426755 
     
    67516764                        throw ObjectNotDeployedException(this); 
    67526765 
    6753                 DistributedMethod method(this, 526); 
     6766                DistributedMethod method(this, 527); 
    67546767                method.addSignedIntParameter(stalker); 
    67556768 
     
    67646777                        throw ObjectNotDeployedException(this); 
    67656778 
    6766                 DistributedMethod method(this, 527); 
     6779                DistributedMethod method(this, 528); 
    67676780                method.addSignedIntParameter(killer); 
    67686781 
     
    67776790                        throw ObjectNotDeployedException(this); 
    67786791 
    6779                 DistributedMethod method(this, 528); 
     6792                DistributedMethod method(this, 529); 
    67806793                method.addSignedIntParameter(aggressive); 
    67816794 
     
    67906803                        throw ObjectNotDeployedException(this); 
    67916804 
    6792                 DistributedMethod method(this, 529); 
     6805                DistributedMethod method(this, 530); 
    67936806                method.addAsciiParameter(behaviorScript); 
    67946807 
     
    68036816                        throw ObjectNotDeployedException(this); 
    68046817 
    6805                 DistributedMethod method(this, 530); 
     6818                DistributedMethod method(this, 531); 
    68066819                method.addAsciiParameter(lootgroup); 
    68076820 
     
    68166829                        throw ObjectNotDeployedException(this); 
    68176830 
    6818                 DistributedMethod method(this, 531); 
     6831                DistributedMethod method(this, 532); 
    68196832                method.addFloatParameter(tme); 
    68206833 
     
    68296842                        throw ObjectNotDeployedException(this); 
    68306843 
    6831                 DistributedMethod method(this, 532); 
     6844                DistributedMethod method(this, 533); 
    68326845                method.addAsciiParameter(cfac); 
    68336846 
     
    68426855                        throw ObjectNotDeployedException(this); 
    68436856 
    6844                 DistributedMethod method(this, 533); 
     6857                DistributedMethod method(this, 534); 
    68456858                method.addFloatParameter(indm); 
    68466859 
     
    68556868                        throw ObjectNotDeployedException(this); 
    68566869 
    6857                 DistributedMethod method(this, 534); 
     6870                DistributedMethod method(this, 535); 
    68586871                method.addAsciiParameter(wpon); 
    68596872 
     
    68686881                        throw ObjectNotDeployedException(this); 
    68696882 
    6870                 DistributedMethod method(this, 535); 
     6883                DistributedMethod method(this, 536); 
    68716884                method.addAsciiParameter(weaponname); 
    68726885 
     
    68816894                        throw ObjectNotDeployedException(this); 
    68826895 
    6883                 DistributedMethod method(this, 536); 
     6896                DistributedMethod method(this, 537); 
    68846897                method.addAsciiParameter(weapontemp); 
    68856898 
     
    68946907                        throw ObjectNotDeployedException(this); 
    68956908 
    6896                 DistributedMethod method(this, 537); 
     6909                DistributedMethod method(this, 538); 
    68976910                method.addAsciiParameter(weaponclass); 
    68986911 
     
    69076920                        throw ObjectNotDeployedException(this); 
    69086921 
    6909                 DistributedMethod method(this, 538); 
     6922                DistributedMethod method(this, 539); 
    69106923                method.addSignedIntParameter(weaponequ); 
    69116924 
     
    69206933                        throw ObjectNotDeployedException(this); 
    69216934 
    6922                 DistributedMethod method(this, 539); 
     6935                DistributedMethod method(this, 540); 
    69236936                method.addSignedIntParameter(weaponmindam); 
    69246937 
     
    69336946                        throw ObjectNotDeployedException(this); 
    69346947 
    6935                 DistributedMethod method(this, 540); 
     6948                DistributedMethod method(this, 541); 
    69366949                method.addSignedIntParameter(weaponmaxdam); 
    69376950 
     
    69466959                        throw ObjectNotDeployedException(this); 
    69476960 
    6948                 DistributedMethod method(this, 541); 
     6961                DistributedMethod method(this, 542); 
    69496962                method.addFloatParameter(weaponattackspeed); 
    69506963 
     
    69596972                        throw ObjectNotDeployedException(this); 
    69606973 
    6961                 DistributedMethod method(this, 542); 
     6974                DistributedMethod method(this, 543); 
    69626975                method.addAsciiParameter(weapondamtype); 
    69636976 
     
    69726985                        throw ObjectNotDeployedException(this); 
    69736986 
    6974                 DistributedMethod method(this, 543); 
     6987                DistributedMethod method(this, 544); 
    69756988                method.addAsciiParameter(weaponarmorpiercing); 
    69766989 
     
    69856998                        throw ObjectNotDeployedException(this); 
    69866999 
    6987                 DistributedMethod method(this, 544); 
     7000                DistributedMethod method(this, 545); 
    69887001                method.addUnicodeParameter(message); 
    69897002                method.addUnsignedIntParameter(moodid); 
     
    70007013                        throw ObjectNotDeployedException(this); 
    70017014 
    7002                 DistributedMethod method(this, 545); 
     7015                DistributedMethod method(this, 546); 
    70037016                method.addAsciiParameter(file); 
    70047017                method.addAsciiParameter(str); 
     
    83778390                break; 
    83788391        case 457: 
     8392                setMaxCondition(inv->getSignedIntParameter()); 
     8393                break; 
     8394        case 458: 
    83798395                setPosture(inv->getUnsignedCharParameter(), inv->getBooleanParameter(), inv->getBooleanParameter(), inv->getFloatParameter(), inv->getFloatParameter(), inv->getFloatParameter()); 
    83808396                break; 
    8381         case 458
     8397        case 459
    83828398                setPvpStatusBitmask(inv->getUnsignedIntParameter()); 
    83838399                break; 
    8384         case 459
     8400        case 460
    83858401                setFactionRank(inv->getUnsignedCharParameter(), inv->getBooleanParameter()); 
    83868402                break; 
    8387         case 460
     8403        case 461
    83888404                setDizziedState(); 
    83898405                break; 
    8390         case 461
     8406        case 462
    83918407                setStunnedState(); 
    83928408                break; 
    8393         case 462
     8409        case 463
    83948410                setBlindedState(); 
    83958411                break; 
    8396         case 463
     8412        case 464
    83978413                setIntimidatedState(); 
    83988414                break; 
    8399         case 464
     8415        case 465
    84008416                setPoisonedState(inv->getSignedIntParameter(), inv->getSignedIntParameter(), inv->getSignedIntParameter()); 
    84018417                break; 
    8402         case 465
     8418        case 466
    84038419                setBleedingState(inv->getSignedIntParameter(), inv->getSignedIntParameter(), inv->getSignedIntParameter()); 
    84048420                break; 
    8405         case 466
     8421        case 467
    84068422                setDiseasedState(inv->getSignedIntParameter(), inv->getSignedIntParameter(), inv->getSignedIntParameter()); 
    84078423                break; 
    8408         case 467
     8424        case 468
    84098425                setOnFireState(inv->getSignedIntParameter(), inv->getSignedIntParameter(), inv->getSignedIntParameter()); 
    84108426                break; 
    8411         case 468
     8427        case 469
    84128428                setCreatureBitmask(inv->getUnsignedIntParameter()); 
    84138429                break; 
    8414         case 469
     8430        case 470
    84158431                resp->insertBoolean(setNextAttackDelay(inv->getSignedIntParameter())); 
    84168432                break; 
    8417         case 470
     8433        case 471
    84188434                setCharacterName(inv->getAsciiParameter(_param0_setCharacterName__string_)); 
    84198435                break; 
    8420         case 471
     8436        case 472
    84218437                setCharacterName(inv->getUnicodeParameter(_param0_setCharacterName__unicode_)); 
    84228438                break; 
    8423         case 472
     8439        case 473
    84248440                setTerrainName(inv->getAsciiParameter(_param0_setTerrainName__string_)); 
    84258441                break; 
    8426         case 473
     8442        case 474
    84278443                setCharacterAppearance(inv->getAsciiParameter(_param0_setCharacterAppearance__string_)); 
    84288444                break; 
    8429         case 474
     8445        case 475
    84308446                setAppearanceAttribute(inv->getUnsignedCharParameter(), inv->getUnsignedCharParameter()); 
    84318447                break; 
    8432         case 475
     8448        case 476
    84338449                setAppearanceAttribute(inv->getAsciiParameter(_param0_setAppearanceAttribute__string_char_), inv->getUnsignedCharParameter()); 
    84348450                break; 
    8435         case 476
     8451        case 477
    84368452                updateCharacterAppearance(); 
    84378453                break; 
    8438         case 477
     8454        case 478
    84398455                setHairAppearance(inv->getAsciiParameter(_param0_setHairAppearance__string_)); 
    84408456                break; 
    8441         case 478
     8457        case 479
    84428458                setHairAppearanceAttribute(inv->getUnsignedCharParameter(), inv->getUnsignedCharParameter()); 
    84438459                break; 
    8444         case 479
     8460        case 480
    84458461                setHairAppearanceAttribute(inv->getAsciiParameter(_param0_setHairAppearanceAttribute__string_char_), inv->getUnsignedCharParameter()); 
    84468462                break; 
    8447         case 480
     8463        case 481
    84488464                setRaceName(inv->getAsciiParameter(_param0_setRaceName__string_)); 
    84498465                break; 
    8450         case 481
     8466        case 482
    84518467                setSpeciesName(inv->getAsciiParameter(_param0_setSpeciesName__string_)); 
    84528468                break; 
    8453         case 482
     8469        case 483
    84548470                setStfName(inv->getAsciiParameter(_param0_setStfName__string_)); 
    84558471                break; 
    8456         case 483
     8472        case 484
    84578473                setGender(inv->getAsciiParameter(_param0_setGender__string_)); 
    84588474                break; 
    8459         case 484
     8475        case 485
    84608476                setFaction(inv->getUnsignedIntParameter()); 
    84618477                break; 
    8462         case 485
     8478        case 486
    84638479                setHeight(inv->getFloatParameter()); 
    84648480                break; 
    8465         case 486
     8481        case 487
    84668482                setMood(inv->getUnsignedCharParameter()); 
    84678483                break; 
    8468         case 487
     8484        case 488
    84698485                setMood(inv->getAsciiParameter(_param0_setMood__string_)); 
    84708486                break; 
    8471         case 488
     8487        case 489
    84728488                setGroup((GroupObject*) inv->getObjectParameter()); 
    84738489                break; 
    8474         case 489
     8490        case 490
    84758491                setMount((MountCreature*) inv->getObjectParameter()); 
    84768492                break; 
    8477         case 490
     8493        case 491
    84788494                explode(inv->getSignedIntParameter(), inv->getBooleanParameter()); 
    84798495                break; 
    8480         case 491
     8496        case 492
    84818497                resp->insertLong(getBuffObject(inv->getUnsignedIntParameter())->_getObjectID()); 
    84828498                break; 
    8483         case 492
     8499        case 493
    84848500                resp->insertBoolean(hasBuff(inv->getUnsignedIntParameter())); 
    84858501                break; 
    8486         case 493
     8502        case 494
    84878503                resp->insertSignedInt(healDamage((CreatureObject*) inv->getObjectParameter(), inv->getSignedIntParameter(), inv->getUnsignedCharParameter(), inv->getBooleanParameter())); 
    84888504                break; 
    8489         case 494
     8505        case 495
    84908506                resp->insertSignedInt(healWound((CreatureObject*) inv->getObjectParameter(), inv->getSignedIntParameter(), inv->getUnsignedCharParameter(), inv->getBooleanParameter())); 
    84918507                break; 
    8492         case 495
     8508        case 496
    84938509                resp->insertSignedInt(healEnhance((CreatureObject*) inv->getObjectParameter(), inv->getSignedIntParameter(), inv->getFloatParameter(), inv->getUnsignedCharParameter(), inv->getBooleanParameter())); 
    84948510                break; 
    8495         case 496
     8511        case 497
    84968512                resp->insertBoolean(curePoison((CreatureObject*) inv->getObjectParameter(), inv->getFloatParameter())); 
    84978513                break; 
    8498         case 497
     8514        case 498
    84998515                resp->insertBoolean(cureDisease((CreatureObject*) inv->getObjectParameter(), inv->getFloatParameter())); 
    85008516                break; 
    8501         case 498
     8517        case 499
    85028518                resp->insertBoolean(extinguishFire((CreatureObject*) inv->getObjectParameter(), inv->getFloatParameter())); 
    85038519                break; 
    8504         case 499
     8520        case 500
    85058521                resp->insertBoolean(healState((CreatureObject*) inv->getObjectParameter(), inv->getUnsignedLongParameter())); 
    85068522                break; 
    8507         case 500
     8523        case 501
    85088524                resp->insertBoolean(revive((CreatureObject*) inv->getObjectParameter(), inv->getBooleanParameter())); 
    85098525                break; 
    8510         case 501
     8526        case 502
    85118527                resp->insertBoolean(resurrect((CreatureObject*) inv->getObjectParameter(), inv->getBooleanParameter())); 
    85128528                break; 
    8513         case 502
     8529        case 503
    85148530                deactivateWoundTreatment(); 
    85158531                break; 
    8516         case 503
     8532        case 504
    85178533                activateWoundTreatment(); 
    85188534                break; 
    8519         case 504
     8535        case 505
    85208536                deactivateInjuryTreatment(); 
    85218537                break; 
    8522         case 505
     8538        case 506
    85238539                activateInjuryTreatment(); 
    85248540                break; 
    8525         case 506
     8541        case 507
    85268542                deactivateStateTreatment(); 
    85278543                break; 
    8528         case 507
     8544        case 508
    85298545                activateStateTreatment(); 
    85308546                break; 
    8531         case 508
     8547        case 509
    85328548                deactivateConditionTreatment(); 
    85338549                break; 
    8534         case 509
     8550        case 510
    85358551                activateConditionTreatment(); 
    85368552                break; 
    8537         case 510
     8553        case 511
    85388554                resp->insertBoolean(canTreatWounds()); 
    85398555                break; 
    8540         case 511
     8556        case 512
    85418557                resp->insertBoolean(canTreatInjuries()); 
    85428558                break; 
    8543         case 512
     8559        case 513
    85448560                resp->insertBoolean(canTreatStates()); 
    85458561                break; 
    8546         case 513
     8562        case 514
    85478563                resp->insertBoolean(canTreatConditions()); 
    85488564                break; 
    8549         case 514
     8565        case 515
    85508566                resp->insertSignedInt(getMedicalFacilityRating()); 
    85518567                break; 
    8552         case 515
     8568        case 516
    85538569                setBoneType(inv->getAsciiParameter(_param0_setBoneType__string_)); 
    85548570                break; 
    8555         case 516
     8571        case 517
    85568572                setBoneMax(inv->getSignedIntParameter()); 
    85578573                break; 
    8558         case 517
     8574        case 518
    85598575                setHideType(inv->getAsciiParameter(_param0_setHideType__string_)); 
    85608576                break; 
    8561         case 518
     8577        case 519
    85628578                setHideMax(inv->getSignedIntParameter()); 
    85638579                break; 
    8564         case 519
     8580        case 520
    85658581                setMeatType(inv->getAsciiParameter(_param0_setMeatType__string_)); 
    85668582                break; 
    8567         case 520
     8583        case 521
    85688584                setMeatMax(inv->getSignedIntParameter()); 
    85698585                break; 
    8570         case 521
     8586        case 522
    85718587                setMilk(inv->getSignedIntParameter()); 
    85728588                break; 
    8573         case 522
     8589        case 523
    85748590                setXP(inv->getSignedIntParameter()); 
    85758591                break; 
    8576         case 523
     8592        case 524
    85778593                setHealer(inv->getSignedIntParameter()); 
    85788594                break; 
    8579         case 524
     8595        case 525
    85808596                setPack(inv->getSignedIntParameter()); 
    85818597                break; 
    8582         case 525
     8598        case 526
    85838599                setHerd(inv->getSignedIntParameter()); 
    85848600                break; 
    8585         case 526
     8601        case 527
    85868602                setStalker(inv->getSignedIntParameter()); 
    85878603                break; 
    8588         case 527
     8604        case 528
    85898605                setKiller(inv->getSignedIntParameter()); 
    85908606                break; 
    8591         case 528
     8607        case 529
    85928608                setAggressive(inv->getSignedIntParameter()); 
    85938609                break; 
    8594         case 529
     8610        case 530
    85958611                setBehaviorScript(inv->getAsciiParameter(_param0_setBehaviorScript__string_)); 
    85968612                break; 
    8597         case 530
     8613        case 531
    85988614                setLootGroup(inv->getAsciiParameter(_param0_setLootGroup__string_)); 
    85998615                break; 
    8600         case 531
     8616        case 532
    86018617                setTame(inv->getFloatParameter()); 
    86028618                break; 
    8603         case 532
     8619        case 533
    86048620                setCreatureFaction(inv->getAsciiParameter(_param0_setCreatureFaction__string_)); 
    86058621                break; 
    8606         case 533
     8622        case 534
    86078623                setInternalNPCDamageModifier(inv->getFloatParameter()); 
    86088624                break; 
    8609         case 534
     8625        case 535
    86108626                setCreatureWeapon(inv->getAsciiParameter(_param0_setCreatureWeapon__string_)); 
    86118627                break; 
    8612         case 535
     8628        case 536
    86138629                setCreatureWeaponName(inv->getAsciiParameter(_param0_setCreatureWeaponName__string_)); 
    86148630                break; 
    8615         case 536
     8631        case 537
    86168632                setCreatureWeaponTemp(inv->getAsciiParameter(_param0_setCreatureWeaponTemp__string_)); 
    86178633                break; 
    8618         case 537
     8634        case 538
    86198635                setCreatureWeaponClass(inv->getAsciiParameter(_param0_setCreatureWeaponClass__string_)); 
    86208636                break; 
    8621         case 538
     8637        case 539
    86228638                setCreatureWeaponEquipped(inv->getSignedIntParameter()); 
    86238639                break; 
    8624         case 539
     8640        case 540
    86258641                setCreatureWeaponMinDamage(inv->getSignedIntParameter()); 
    86268642                break; 
    8627         case 540
     8643        case 541
    86288644                setCreatureWeaponMaxDamage(inv->getSignedIntParameter()); 
    86298645                break; 
    8630         case 541
     8646        case 542
    86318647                setCreatureWeaponAttackSpeed(inv->getFloatParameter()); 
    86328648                break; 
    8633         case 542
     8649        case 543
    86348650                setCreatureWeaponDamageType(inv->getAsciiParameter(_param0_setCreatureWeaponDamageType__string_)); 
    86358651                break; 
    8636         case 543
     8652        case 544
    86378653                setCreatureWeaponArmorPiercing(inv->getAsciiParameter(_param0_setCreatureWeaponArmorPiercing__string_)); 
    86388654                break; 
    8639         case 544
     8655        case 545
    86408656                say(inv->getUnicodeParameter(_param0_say__unicode_int_int_), inv->getUnsignedIntParameter(), inv->getUnsignedIntParameter()); 
    86418657                break; 
    8642         case 545
     8658        case 546
    86438659                say(inv->getAsciiParameter(_param0_say__string_string_StfParameter_int_int_), inv->getAsciiParameter(_param1_say__string_string_StfParameter_int_int_), (StfParameter*) inv->getObjectParameter(), inv->getUnsignedIntParameter(), inv->getUnsignedIntParameter()); 
    86448660                break; 
     
    1045410470} 
    1045510471 
     10472void CreatureObjectAdapter::setMaxCondition(int condition) { 
     10473        return ((CreatureObjectImplementation*) impl)->setMaxCondition(condition); 
     10474} 
     10475 
    1045610476void CreatureObjectAdapter::setPosture(unsigned char state, bool overrideDizzy, bool objectInteraction, float objX, float objY, float objZ) { 
    1045710477        return ((CreatureObjectImplementation*) impl)->setPosture(state, overrideDizzy, objectInteraction, objX, objY, objZ); 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObject.h

    r901 r915  
    953953 
    954954        void changeConditionDamage(int amount); 
     955 
     956        void setMaxCondition(int condition); 
    955957 
    956958        void setPosture(unsigned char state, bool overrideDizzy = false, bool objectInteraction = false, float objX = 0, float objY = 0, float objZ = 0); 
     
    20742076 
    20752077        void changeConditionDamage(int amount); 
     2078 
     2079        void setMaxCondition(int condition); 
    20762080 
    20772081        void setPosture(unsigned char state, bool overrideDizzy, bool objectInteraction, float objX, float objY, float objZ); 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObject.idl

    r901 r915  
    713713 
    714714        void changeConditionDamage(int amount); 
     715        void setMaxCondition(int condition); 
    715716 
    716717        void setPosture(unsigned char state, boolean overrideDizzy = false, boolean objectInteraction = false, float objX = 0, float objY = 0, float objZ = 0); 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObjectImplementation.cpp

    r906 r915  
    16641664 
    16651665        dcreo3->updateConditionDamage(); 
     1666        dcreo3->close(); 
     1667 
     1668        broadcastMessage(dcreo3); 
     1669} 
     1670 
     1671void CreatureObjectImplementation::setMaxCondition(int condition) { 
     1672        maxCondition = condition; 
     1673 
     1674        CreatureObjectDeltaMessage3* dcreo3 = new CreatureObjectDeltaMessage3((CreatureObject*) _this); 
     1675        if (conditionDamage > maxCondition){ 
     1676                conditionDamage = maxCondition; 
     1677                dcreo3->updateConditionDamage(); 
     1678        } 
     1679        dcreo3->updateMaxCondition(); 
    16661680        dcreo3->close(); 
    16671681 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObjectImplementation.h

    r901 r915  
    485485 
    486486        void changeConditionDamage(int amount); 
     487        void setMaxCondition(int condition); 
    487488 
    488489        void changeShockWounds(int bf); 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/creature/mount/MountCreatureImplementation.cpp

    r898 r915  
    160160        stringstream cond; 
    161161 
    162         cond << (maxCondition-conditionDamage) << "/" << maxCondition << ":"; 
     162        cond << "condition=" << (maxCondition-conditionDamage) << "/" << maxCondition << ":"; 
    163163 
    164164        string attr = cond.str(); 
     
    298298                setFaction(linkedCreature->getFaction()); 
    299299 
     300                if(getObjectCRC()==0xAF6D9F4F)//swoop 
     301                        changeConditionDamage(25); 
     302                else if(getObjectCRC()==0x729517EF)//speederbike 
     303                        changeConditionDamage(12); 
     304                else if(getObjectCRC()==0x4EC3780C)//x34 landspeeder 
     305                        changeConditionDamage(7); 
     306                else 
     307                        changeConditionDamage(25); 
     308 
     309                stringstream cond; 
     310 
     311                cond << "condition=" << (maxCondition-conditionDamage) << "/" << maxCondition << ":"; 
     312 
     313                string attr = cond.str(); 
     314                setAttributes(attr); 
     315 
    300316                insertToZone(zone); 
    301317 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/player/PlayerImplementation.cpp

    r912 r915  
    43404340                        return; 
    43414341 
    4342                 string name, detailName, appearance, mountApp, attr
     4342                string name, detailName, appearance, mountApp, attr, fileName
    43434343                stringstream query; 
    43444344                uint32 objCRC, itnoCRC; 
     
    43574357                        attr = ""; 
    43584358                        mountApp = ""; 
     4359                        fileName = ""; 
    43594360                        objCRC = 0; 
    43604361                        objID = 0; 
     
    43824383                                                        mountCreature->getCharacterAppearance(mountApp); 
    43834384 
     4385                                                        fileName = mountCreature->getObjectFileName(); 
    43844386                                                        attr = mountCreature->getAttributes(); 
    43854387                                                        MySqlDatabase::escapeString(attr); 
     
    44024404                                                << ",name = '" << name << "', itnocrc = " << objCRC << ",item_crc = " << itnoCRC 
    44034405                                                << ",itemMask = 65535, appearance = '" << appearance.substr(0, appearance.size() - 1) 
    4404                                                 << "',attributes = '" << attr << "',obj_id = " << objID << ";"; 
     4406                                                << "',attributes = '" << attr << "',file_name = '" << fileName << "',obj_id = " << objID << ";"; 
    44054407 
    44064408                                                ServerDatabase::instance()->executeStatement(query); 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/tangible/deed/vehicledeed/VehicleDeedImplementation.cpp

    r912 r915  
    4040        objectSubType = VEHICLEDEED; 
    4141 
    42         if(templateName == "speederbike_swoop_deed") { 
     42        setHitPoints(1000); 
     43 
     44        if(templateName == "speederbike_swoop") { 
     45                targetName = unicode("speederbike_swoop"); 
     46                targetFile = "object/intangible/vehicle/shared_speederbike_swoop_pcd.iff"; 
     47                vehicleFile = "object/mobile/vehicle/shared_speederbike_swoop.iff"; 
     48 
     49        } else if(templateName == "speederbike") { 
     50                targetName = unicode("speederbike"); 
     51                targetFile = "object/intangible/vehicle/shared_speederbike_pcd.iff"; 
     52                vehicleFile = "object/mobile/vehicle/shared_speederbike.iff"; 
     53 
     54        } else if(templateName == "landspeeder_x34"){ 
     55                targetName = unicode("landspeeder_x34"); 
     56                targetFile = "object/intangible/vehicle/shared_landspeeder_x34_pcd.iff"; 
     57                vehicleFile = "object/mobile/vehicle/shared_landspeeder_x34.iff"; 
     58 
     59        } else if(templateName == "speederbike_swoop_deed") { 
    4360                targetName = unicode("speederbike_swoop"); 
    4461                targetFile = "object/intangible/vehicle/shared_speederbike_swoop_pcd.iff"; 
     
    86103} 
    87104 
     105void VehicleDeedImplementation::updateCraftingValues(DraftSchematic* draftSchematic) { 
     106 
     107        DraftSchematicValues* craftingValues = draftSchematic->getCraftingValues(); 
     108 
     109        int hitPoints = (int)craftingValues->getCurrentValue("hitPoints"); 
     110        setHitPoints(hitPoints); 
     111} 
     112 
     113void VehicleDeedImplementation::addAttributes(AttributeListMessage* alm) { 
     114        addHeaderAttributes(alm); 
     115 
     116        alm->insertAttribute("hit_points", getHitPoints()); 
     117 
     118        addFooterAttributes(alm); 
     119} 
     120 
     121void VehicleDeedImplementation::parseItemAttributes(){ 
     122 
     123        string temp = "hit_points"; 
     124        hitPoints = itemAttributes->getIntAttribute(temp); 
     125 
     126} 
     127 
    88128int VehicleDeedImplementation::useObject(Player* player) { 
    89129        Datapad * datapad = player->getDatapad(); 
     
    95135 
    96136        try { 
     137                vehicle->setMaxCondition(getHitPoints()); 
     138                vehicle->setObjectFileName(vehicleFile); 
    97139                vehicle->addToDatapad(); 
    98140 
     
    121163                        if (zoneServer != NULL && ((itemManager = zoneServer->getItemManager()) != NULL)) { 
    122164                                player->removeInventoryItem(objectID); 
    123                                 itemManager->deletePlayerItem(player, _this, true); 
     165                                itemManager->deletePlayerItem(player, _this, false); 
    124166                                finalize(); 
    125167                        } 
  • core3/trunk/MMOCoreORB/src/server/zone/objects/tangible/deed/vehicledeed/VehicleDeedImplementation.h

    r674 r915  
    1717protected: 
    1818        string vehicleFile; 
     19        int hitPoints; 
    1920public: 
    2021        static const int ORE = 1; 
     
    3738        void sendRadialResponseTo(Player* player, ObjectMenuResponse* omr); 
    3839 
     40        void updateCraftingValues(DraftSchematic* draftSchematic); 
     41 
     42        void addAttributes(AttributeListMessage* alm); 
     43 
     44        void parseItemAttributes(); 
     45 
     46        void setHitPoints(int hp){ 
     47                hitPoints = hp; 
     48                string name = "hit_points"; //obj_attr_n.stf 
     49                itemAttributes->setFloatAttribute(name, hp); 
     50        } 
     51 
     52        int getHitPoints(){ 
     53                return hitPoints; 
     54        } 
     55 
    3956        //void sendTo(Player* player, MountCreature* swoop, bool doClose); 
    4057