Changeset 915
- Timestamp:
- 11/08/08 07:31:01 (8 months ago)
- Files:
-
- core3/trunk/MMOCoreORB/bin/scripts/crafting/main.lua (modified) (1 diff)
- core3/trunk/MMOCoreORB/bin/scripts/crafting/objects/draftschematics/artisan/speederbike.lua (added)
- core3/trunk/MMOCoreORB/bin/scripts/crafting/objects/draftschematics/artisan/swoop.lua (added)
- core3/trunk/MMOCoreORB/bin/scripts/crafting/objects/draftschematics/artisan/x34Landspeeder.lua (added)
- core3/trunk/MMOCoreORB/bin/scripts/items/bluefrog/itemsets.lua (modified) (1 diff)
- core3/trunk/MMOCoreORB/src/server/zone/managers/item/ItemManagerImplementation.cpp (modified) (1 diff)
- core3/trunk/MMOCoreORB/src/server/zone/objects/creature/Creature.cpp (modified) (13 diffs)
- core3/trunk/MMOCoreORB/src/server/zone/objects/creature/Creature.h (modified) (3 diffs)
- core3/trunk/MMOCoreORB/src/server/zone/objects/creature/Creature.idl (modified) (1 diff)
- core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureImplementation.h (modified) (1 diff)
- core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObject.cpp (modified) (91 diffs)
- core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObject.h (modified) (2 diffs)
- core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObject.idl (modified) (1 diff)
- core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObjectImplementation.cpp (modified) (1 diff)
- core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObjectImplementation.h (modified) (1 diff)
- core3/trunk/MMOCoreORB/src/server/zone/objects/creature/mount/MountCreatureImplementation.cpp (modified) (2 diffs)
- core3/trunk/MMOCoreORB/src/server/zone/objects/player/PlayerImplementation.cpp (modified) (4 diffs)
- core3/trunk/MMOCoreORB/src/server/zone/objects/tangible/deed/vehicledeed/VehicleDeedImplementation.cpp (modified) (4 diffs)
- core3/trunk/MMOCoreORB/src/server/zone/objects/tangible/deed/vehicledeed/VehicleDeedImplementation.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
core3/trunk/MMOCoreORB/bin/scripts/crafting/main.lua
r860 r915 81 81 RunDraftSchematicFile("objects/draftschematics/artisan/gasPocketSurveyDevice.lua") 82 82 RunDraftSchematicFile("objects/draftschematics/artisan/floraSurveyTool.lua") 83 RunDraftSchematicFile("objects/draftschematics/artisan/swoop.lua") 84 RunDraftSchematicFile("objects/draftschematics/artisan/speederbike.lua") 85 RunDraftSchematicFile("objects/draftschematics/artisan/x34Landspeeder.lua") 83 86 RunDraftSchematicFile("objects/draftschematics/weaponsmith/blasterPowerHandler.lua") 84 87 RunDraftSchematicFile("objects/draftschematics/weaponsmith/blasterRifleBarrel.lua") core3/trunk/MMOCoreORB/bin/scripts/items/bluefrog/itemsets.lua
r913 r915 55 55 RunItemLUAFile("bluefrog/instrumentSet.lua"); 56 56 57 RunItemLUAFile("bluefrog/vehicleDeedSet.lua");57 --RunItemLUAFile("bluefrog/vehicleDeedSet.lua"); 58 58 --RunItemLUAFile("bluefrog/housingDeedSet.lua"); 59 59 core3/trunk/MMOCoreORB/src/server/zone/managers/item/ItemManagerImplementation.cpp
r912 r915 1238 1238 land = new MountCreature(player, res->getString(2), "monster_name", 1239 1239 res->getLong(3), res->getLong(4), res->getUnsignedLong(9)); 1240 land->setObjectFileName(res->getString(5)); 1240 1241 1241 1242 land->setZoneProcessServer(pServer); core3/trunk/MMOCoreORB/src/server/zone/objects/creature/Creature.cpp
r884 r915 504 504 } 505 505 506 string& 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 506 519 void Creature::setType(int tp) { 507 520 if (_impl == NULL) { … … 509 522 throw ObjectNotDeployedException(this); 510 523 511 DistributedMethod method(this, 4 3);524 DistributedMethod method(this, 44); 512 525 method.addSignedIntParameter(tp); 513 526 … … 522 535 throw ObjectNotDeployedException(this); 523 536 524 DistributedMethod method(this, 4 4);537 DistributedMethod method(this, 45); 525 538 method.addUnsignedIntParameter(seconds); 526 539 … … 531 544 532 545 void 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 } else542 ((CreatureImplementation*) _impl)->removePlayerFromHarvestList(firstName);543 }544 545 bool Creature::canHarvest(string& firstName) {546 546 if (_impl == NULL) { 547 547 if (!deployed) … … 551 551 method.addAsciiParameter(firstName); 552 552 553 method.executeWithVoidReturn(); 554 } else 555 ((CreatureImplementation*) _impl)->removePlayerFromHarvestList(firstName); 556 } 557 558 bool 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 553 566 return method.executeWithBooleanReturn(); 554 567 } else … … 561 574 throw ObjectNotDeployedException(this); 562 575 563 DistributedMethod method(this, 4 7);576 DistributedMethod method(this, 48); 564 577 565 578 return method.executeWithBooleanReturn(); … … 573 586 throw ObjectNotDeployedException(this); 574 587 575 DistributedMethod method(this, 4 8);588 DistributedMethod method(this, 49); 576 589 577 590 method.executeWithVoidReturn(); … … 581 594 582 595 void 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 } else592 ((CreatureImplementation*) _impl)->setLootCreated(value);593 }594 595 void Creature::setRandomMovement(bool value) {596 596 if (_impl == NULL) { 597 597 if (!deployed) … … 603 603 method.executeWithVoidReturn(); 604 604 } else 605 ((CreatureImplementation*) _impl)->setLootCreated(value); 606 } 607 608 void 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 605 618 ((CreatureImplementation*) _impl)->setRandomMovement(value); 606 619 } … … 611 624 throw ObjectNotDeployedException(this); 612 625 613 DistributedMethod method(this, 5 1);626 DistributedMethod method(this, 52); 614 627 615 628 return method.executeWithUnsignedIntReturn(); … … 623 636 throw ObjectNotDeployedException(this); 624 637 625 DistributedMethod method(this, 5 2);638 DistributedMethod method(this, 53); 626 639 method.addUnsignedIntParameter(value); 627 640 … … 754 767 break; 755 768 case 43: 769 resp->insertAscii(getObjectFileName()); 770 break; 771 case 44: 756 772 setType(inv->getSignedIntParameter()); 757 773 break; 758 case 4 4:774 case 45: 759 775 setRespawnTimer(inv->getUnsignedIntParameter()); 760 776 break; 761 case 4 5:777 case 46: 762 778 removePlayerFromHarvestList(inv->getAsciiParameter(_param0_removePlayerFromHarvestList__string_)); 763 779 break; 764 case 4 6:780 case 47: 765 781 resp->insertBoolean(canHarvest(inv->getAsciiParameter(_param0_canHarvest__string_))); 766 782 break; 767 case 4 7:783 case 48: 768 784 resp->insertBoolean(beenLooted()); 769 785 break; 770 case 4 8:786 case 49: 771 787 wasLooted(); 772 788 break; 773 case 49:789 case 50: 774 790 setLootCreated(inv->getBooleanParameter()); 775 791 break; 776 case 5 0:792 case 51: 777 793 setRandomMovement(inv->getBooleanParameter()); 778 794 break; 779 case 5 1:795 case 52: 780 796 resp->insertInt(getFPValue()); 781 797 break; 782 case 5 2:798 case 53: 783 799 setFPValue(inv->getUnsignedIntParameter()); 784 800 break; … … 938 954 } 939 955 956 string& CreatureAdapter::getObjectFileName() { 957 return ((CreatureImplementation*) impl)->getObjectFileName(); 958 } 959 940 960 void CreatureAdapter::setType(int tp) { 941 961 return ((CreatureImplementation*) impl)->setType(tp); core3/trunk/MMOCoreORB/src/server/zone/objects/creature/Creature.h
r884 r915 104 104 void setObjectFileName(const string& name); 105 105 106 string& getObjectFileName(); 107 106 108 void setType(int tp); 107 109 … … 130 132 131 133 string _return_getName; 134 string _return_getObjectFileName; 132 135 133 136 friend class CreatureHelper; … … 215 218 216 219 void setObjectFileName(const string& name); 220 221 string& getObjectFileName(); 217 222 218 223 void setType(int tp); core3/trunk/MMOCoreORB/src/server/zone/objects/creature/Creature.idl
r884 r915 138 138 139 139 void setObjectFileName(const string name); 140 141 string getObjectFileName(); 140 142 141 143 void setType(int tp); core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureImplementation.h
r884 r915 235 235 } 236 236 237 inline string& getObjectFileName() { 238 return objectFile; 239 } 240 237 241 inline void setType(int tp) { 238 242 type = tp; core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObject.cpp
r901 r915 5832 5832 } 5833 5833 5834 void 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 5834 5847 void CreatureObject::setPosture(unsigned char state, bool overrideDizzy, bool objectInteraction, float objX, float objY, float objZ) { 5835 5848 if (_impl == NULL) { … … 5837 5850 throw ObjectNotDeployedException(this); 5838 5851 5839 DistributedMethod method(this, 45 7);5852 DistributedMethod method(this, 458); 5840 5853 method.addUnsignedCharParameter(state); 5841 5854 method.addBooleanParameter(overrideDizzy); … … 5855 5868 throw ObjectNotDeployedException(this); 5856 5869 5857 DistributedMethod method(this, 45 8);5870 DistributedMethod method(this, 459); 5858 5871 method.addUnsignedIntParameter(mask); 5859 5872 … … 5868 5881 throw ObjectNotDeployedException(this); 5869 5882 5870 DistributedMethod method(this, 4 59);5883 DistributedMethod method(this, 460); 5871 5884 method.addUnsignedCharParameter(rank); 5872 5885 method.addBooleanParameter(updateClient); … … 5882 5895 throw ObjectNotDeployedException(this); 5883 5896 5884 DistributedMethod method(this, 46 0);5897 DistributedMethod method(this, 461); 5885 5898 5886 5899 method.executeWithVoidReturn(); … … 5894 5907 throw ObjectNotDeployedException(this); 5895 5908 5896 DistributedMethod method(this, 46 1);5909 DistributedMethod method(this, 462); 5897 5910 5898 5911 method.executeWithVoidReturn(); … … 5906 5919 throw ObjectNotDeployedException(this); 5907 5920 5908 DistributedMethod method(this, 46 2);5921 DistributedMethod method(this, 463); 5909 5922 5910 5923 method.executeWithVoidReturn(); … … 5918 5931 throw ObjectNotDeployedException(this); 5919 5932 5920 DistributedMethod method(this, 46 3);5933 DistributedMethod method(this, 464); 5921 5934 5922 5935 method.executeWithVoidReturn(); … … 5926 5939 5927 5940 void 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 } else5939 ((CreatureObjectImplementation*) _impl)->setPoisonedState(str, type, duration);5940 }5941 5942 void CreatureObject::setBleedingState(int str, int type, int duration) {5943 5941 if (_impl == NULL) { 5944 5942 if (!deployed) … … 5952 5950 method.executeWithVoidReturn(); 5953 5951 } else 5954 ((CreatureObjectImplementation*) _impl)->set BleedingState(str, type, duration);5955 } 5956 5957 void CreatureObject::set DiseasedState(int str, int type, int duration) {5952 ((CreatureObjectImplementation*) _impl)->setPoisonedState(str, type, duration); 5953 } 5954 5955 void CreatureObject::setBleedingState(int str, int type, int duration) { 5958 5956 if (_impl == NULL) { 5959 5957 if (!deployed) … … 5967 5965 method.executeWithVoidReturn(); 5968 5966 } else 5969 ((CreatureObjectImplementation*) _impl)->set DiseasedState(str, type, duration);5970 } 5971 5972 void CreatureObject::set OnFireState(int str, int type, int duration) {5967 ((CreatureObjectImplementation*) _impl)->setBleedingState(str, type, duration); 5968 } 5969 5970 void CreatureObject::setDiseasedState(int str, int type, int duration) { 5973 5971 if (_impl == NULL) { 5974 5972 if (!deployed) … … 5982 5980 method.executeWithVoidReturn(); 5983 5981 } else 5982 ((CreatureObjectImplementation*) _impl)->setDiseasedState(str, type, duration); 5983 } 5984 5985 void 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 5984 5997 ((CreatureObjectImplementation*) _impl)->setOnFireState(str, type, duration); 5985 5998 } … … 5990 6003 throw ObjectNotDeployedException(this); 5991 6004 5992 DistributedMethod method(this, 46 8);6005 DistributedMethod method(this, 469); 5993 6006 method.addUnsignedIntParameter(bitmask); 5994 6007 … … 6003 6016 throw ObjectNotDeployedException(this); 6004 6017 6005 DistributedMethod method(this, 4 69);6018 DistributedMethod method(this, 470); 6006 6019 method.addSignedIntParameter(del); 6007 6020 … … 6016 6029 throw ObjectNotDeployedException(this); 6017 6030 6018 DistributedMethod method(this, 47 0);6031 DistributedMethod method(this, 471); 6019 6032 method.addAsciiParameter(name); 6020 6033 … … 6029 6042 throw ObjectNotDeployedException(this); 6030 6043 6031 DistributedMethod method(this, 47 1);6044 DistributedMethod method(this, 472); 6032 6045 method.addUnicodeParameter(name); 6033 6046 … … 6042 6055 throw ObjectNotDeployedException(this); 6043 6056 6044 DistributedMethod method(this, 47 2);6057 DistributedMethod method(this, 473); 6045 6058 method.addAsciiParameter(name); 6046 6059 … … 6055 6068 throw ObjectNotDeployedException(this); 6056 6069 6057 DistributedMethod method(this, 47 3);6070 DistributedMethod method(this, 474); 6058 6071 method.addAsciiParameter(cust); 6059 6072 … … 6068 6081 throw ObjectNotDeployedException(this); 6069 6082 6070 DistributedMethod method(this, 47 4);6083 DistributedMethod method(this, 475); 6071 6084 method.addUnsignedCharParameter(type); 6072 6085 method.addUnsignedCharParameter(value); … … 6082 6095 throw ObjectNotDeployedException(this); 6083 6096 6084 DistributedMethod method(this, 47 5);6097 DistributedMethod method(this, 476); 6085 6098 method.addAsciiParameter(type); 6086 6099 method.addUnsignedCharParameter(value); … … 6096 6109 throw ObjectNotDeployedException(this); 6097 6110 6098 DistributedMethod method(this, 47 6);6111 DistributedMethod method(this, 477); 6099 6112 6100 6113 method.executeWithVoidReturn(); … … 6108 6121 throw ObjectNotDeployedException(this); 6109 6122 6110 DistributedMethod method(this, 47 7);6123 DistributedMethod method(this, 478); 6111 6124 method.addAsciiParameter(cust); 6112 6125 … … 6121 6134 throw ObjectNotDeployedException(this); 6122 6135 6123 DistributedMethod method(this, 47 8);6136 DistributedMethod method(this, 479); 6124 6137 method.addUnsignedCharParameter(type); 6125 6138 method.addUnsignedCharParameter(value); … … 6135 6148 throw ObjectNotDeployedException(this); 6136 6149 6137 DistributedMethod method(this, 4 79);6150 DistributedMethod method(this, 480); 6138 6151 method.addAsciiParameter(type); 6139 6152 method.addUnsignedCharParameter(value); … … 6149 6162 throw ObjectNotDeployedException(this); 6150 6163 6151 DistributedMethod method(this, 480);6152 method.addAsciiParameter(name);6153 6154 method.executeWithVoidReturn();6155 } else6156 ((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 6164 6164 DistributedMethod method(this, 481); 6165 6165 method.addAsciiParameter(name); … … 6167 6167 method.executeWithVoidReturn(); 6168 6168 } else 6169 ((CreatureObjectImplementation*) _impl)->set SpeciesName(name);6170 } 6171 6172 void CreatureObject::setS tfName(const string& name) {6169 ((CreatureObjectImplementation*) _impl)->setRaceName(name); 6170 } 6171 6172 void CreatureObject::setSpeciesName(const string& name) { 6173 6173 if (_impl == NULL) { 6174 6174 if (!deployed) … … 6180 6180 method.executeWithVoidReturn(); 6181 6181 } else 6182 ((CreatureObjectImplementation*) _impl)->setS tfName(name);6183 } 6184 6185 void CreatureObject::set Gender(const string& name) {6182 ((CreatureObjectImplementation*) _impl)->setSpeciesName(name); 6183 } 6184 6185 void CreatureObject::setStfName(const string& name) { 6186 6186 if (_impl == NULL) { 6187 6187 if (!deployed) … … 6193 6193 method.executeWithVoidReturn(); 6194 6194 } else 6195 ((CreatureObjectImplementation*) _impl)->setStfName(name); 6196 } 6197 6198 void 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 6195 6208 ((CreatureObjectImplementation*) _impl)->setGender(name); 6196 6209 } … … 6201 6214 throw ObjectNotDeployedException(this); 6202 6215 6203 DistributedMethod method(this, 48 4);6216 DistributedMethod method(this, 485); 6204 6217 method.addUnsignedIntParameter(fac); 6205 6218 … … 6214 6227 throw ObjectNotDeployedException(this); 6215 6228 6216 DistributedMethod method(this, 48 5);6229 DistributedMethod method(this, 486); 6217 6230 method.addFloatParameter(h); 6218 6231 … … 6227 6240 throw ObjectNotDeployedException(this); 6228 6241 6229 DistributedMethod method(this, 48 6);6242 DistributedMethod method(this, 487); 6230 6243 method.addUnsignedCharParameter(mdid); 6231 6244 … … 6240 6253 throw ObjectNotDeployedException(this); 6241 6254 6242 DistributedMethod method(this, 48 7);6255 DistributedMethod method(this, 488); 6243 6256 method.addAsciiParameter(m); 6244 6257 … … 6253 6266 throw ObjectNotDeployedException(this); 6254 6267 6255 DistributedMethod method(this, 48 8);6268 DistributedMethod method(this, 489); 6256 6269 method.addObjectParameter(Group); 6257 6270 … … 6266 6279 throw ObjectNotDeployedException(this); 6267 6280 6268 DistributedMethod method(this, 4 89);6281 DistributedMethod method(this, 490); 6269 6282 method.addObjectParameter(mount); 6270 6283 … … 6279 6292 throw ObjectNotDeployedException(this); 6280 6293 6281 DistributedMethod method(this, 49 0);6294 DistributedMethod method(this, 491); 6282 6295 method.addSignedIntParameter(level); 6283 6296 method.addBooleanParameter(destroy); … … 6293 6306 throw ObjectNotDeployedException(this); 6294 6307 6295 DistributedMethod method(this, 491);6296 method.addUnsignedIntParameter(buffCRC);6297 6298 return (BuffObject*) method.executeWithObjectReturn();6299 } else6300 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 6308 6308 DistributedMethod method(this, 492); 6309 6309 method.addUnsignedIntParameter(buffCRC); 6310 6310 6311 return (BuffObject*) method.executeWithObjectReturn(); 6312 } else 6313 return ((CreatureObjectImplementation*) _impl)->getBuffObject(buffCRC); 6314 } 6315 6316 bool 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 6311 6324 return method.executeWithBooleanReturn(); 6312 6325 } else … … 6315 6328 6316 6329 int 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 } else6329 return ((CreatureObjectImplementation*) _impl)->healDamage(target, damage, attribute, doBattleFatigue);6330 }6331 6332 int CreatureObject::healWound(CreatureObject* target, int damage, unsigned char attribute, bool doBattleFatigue) {6333 6330 if (_impl == NULL) { 6334 6331 if (!deployed) … … 6343 6340 return method.executeWithSignedIntReturn(); 6344 6341 } else 6342 return ((CreatureObjectImplementation*) _impl)->healDamage(target, damage, attribute, doBattleFatigue); 6343 } 6344 6345 int 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 6345 6358 return ((CreatureObjectImplementation*) _impl)->healWound(target, damage, attribute, doBattleFatigue); 6346 6359 } … … 6351 6364 throw ObjectNotDeployedException(this); 6352 6365 6353 DistributedMethod method(this, 49 5);6366 DistributedMethod method(this, 496); 6354 6367 method.addObjectParameter(target); 6355 6368 method.addSignedIntParameter(amount); … … 6368 6381 throw ObjectNotDeployedException(this); 6369 6382 6370 DistributedMethod method(this, 496);6371 method.addObjectParameter(target);6372 method.addFloatParameter(effectiveness);6373 6374 return method.executeWithBooleanReturn();6375 } else6376 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 6384 6383 DistributedMethod method(this, 497); 6385 6384 method.addObjectParameter(target); … … 6388 6387 return method.executeWithBooleanReturn(); 6389 6388 } else 6390 return ((CreatureObjectImplementation*) _impl)->cure Disease(target, effectiveness);6391 } 6392 6393 bool CreatureObject:: extinguishFire(CreatureObject* target, float effectiveness) {6389 return ((CreatureObjectImplementation*) _impl)->curePoison(target, effectiveness); 6390 } 6391 6392 bool CreatureObject::cureDisease(CreatureObject* target, float effectiveness) { 6394 6393 if (_impl == NULL) { 6395 6394 if (!deployed) … … 6402 6401 return method.executeWithBooleanReturn(); 6403 6402 } 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 6406 bool CreatureObject::extinguishFire(CreatureObject* target, float effectiveness) { 6408 6407 if (_impl == NULL) { 6409 6408 if (!deployed) … … 6412 6411 DistributedMethod method(this, 499); 6413 6412 method.addObjectParameter(target); 6414 method.add UnsignedLongParameter(state);6413 method.addFloatParameter(effectiveness); 6415 6414 6416 6415 return method.executeWithBooleanReturn(); 6417 6416 } 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 6420 bool CreatureObject::healState(CreatureObject* target, unsigned long long state) { 6422 6421 if (_impl == NULL) { 6423 6422 if (!deployed) … … 6426 6425 DistributedMethod method(this, 500); 6427 6426 method.addObjectParameter(target); 6428 method.add BooleanParameter(forcedChange);6427 method.addUnsignedLongParameter(state); 6429 6428 6430 6429 return method.executeWithBooleanReturn(); 6431 6430 } else 6432 return ((CreatureObjectImplementation*) _impl)-> revive(target, forcedChange);6433 } 6434 6435 bool CreatureObject::re surrect(CreatureObject* target, bool forcedChange) {6431 return ((CreatureObjectImplementation*) _impl)->healState(target, state); 6432 } 6433 6434 bool CreatureObject::revive(CreatureObject* target, bool forcedChange) { 6436 6435 if (_impl == NULL) { 6437 6436 if (!deployed) … … 6444 6443 return method.executeWithBooleanReturn(); 6445 6444 } else 6445 return ((CreatureObjectImplementation*) _impl)->revive(target, forcedChange); 6446 } 6447 6448 bool 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 6446 6459 return ((CreatureObjectImplementation*) _impl)->resurrect(target, forcedChange); 6447 6460 } … … 6452 6465 throw ObjectNotDeployedException(this); 6453 6466 6454 DistributedMethod method(this, 50 2);6467 DistributedMethod method(this, 503); 6455 6468 6456 6469 method.executeWithVoidReturn(); … … 6464 6477 throw ObjectNotDeployedException(this); 6465 6478 6466 DistributedMethod method(this, 50 3);6479 DistributedMethod method(this, 504); 6467 6480 6468 6481 method.executeWithVoidReturn(); … … 6476 6489 throw ObjectNotDeployedException(this); 6477 6490 6478 DistributedMethod method(this, 50 4);6491 DistributedMethod method(this, 505); 6479 6492 6480 6493 method.executeWithVoidReturn(); … … 6488 6501 throw ObjectNotDeployedException(this); 6489 6502 6490 DistributedMethod method(this, 50 5);6503 DistributedMethod method(this, 506); 6491 6504 6492 6505 method.executeWithVoidReturn(); … … 6500 6513 throw ObjectNotDeployedException(this); 6501 6514 6502 DistributedMethod method(this, 50 6);6515 DistributedMethod method(this, 507); 6503 6516 6504 6517 method.executeWithVoidReturn(); … … 6512 6525 throw ObjectNotDeployedException(this); 6513 6526 6514 DistributedMethod method(this, 50 7);6527 DistributedMethod method(this, 508); 6515 6528 6516 6529 method.executeWithVoidReturn(); … … 6524 6537 throw ObjectNotDeployedException(this); 6525 6538 6526 DistributedMethod method(this, 50 8);6539 DistributedMethod method(this, 509); 6527 6540 6528 6541 method.executeWithVoidReturn(); … … 6536 6549 throw ObjectNotDeployedException(this); 6537 6550 6538 DistributedMethod method(this, 5 09);6551 DistributedMethod method(this, 510); 6539 6552 6540 6553 method.executeWithVoidReturn(); … … 6548 6561 throw ObjectNotDeployedException(this); 6549 6562 6550 DistributedMethod method(this, 51 0);6563 DistributedMethod method(this, 511); 6551 6564 6552 6565 return method.executeWithBooleanReturn(); … … 6560 6573 throw ObjectNotDeployedException(this); 6561 6574 6562 DistributedMethod method(this, 51 1);6575 DistributedMethod method(this, 512); 6563 6576 6564 6577 return method.executeWithBooleanReturn(); … … 6572 6585 throw ObjectNotDeployedException(this); 6573 6586 6574 DistributedMethod method(this, 51 2);6587 DistributedMethod method(this, 513); 6575 6588 6576 6589 return method.executeWithBooleanReturn(); … … 6584 6597 throw ObjectNotDeployedException(this); 6585 6598 6586 DistributedMethod method(this, 51 3);6599 DistributedMethod method(this, 514); 6587 6600 6588 6601 return method.executeWithBooleanReturn(); … … 6596 6609 throw ObjectNotDeployedException(this); 6597 6610 6598 DistributedMethod method(this, 51 4);6611 DistributedMethod method(this, 515); 6599 6612 6600 6613 return method.executeWithSignedIntReturn(); … … 6608 6621 throw ObjectNotDeployedException(this); 6609 6622 6610 DistributedMethod method(this, 51 5);6623 DistributedMethod method(this, 516); 6611 6624 method.addAsciiParameter(bone); 6612 6625 … … 6621 6634 throw ObjectNotDeployedException(this); 6622 6635 6623 DistributedMethod method(this, 51 6);6636 DistributedMethod method(this, 517); 6624 6637 method.addSignedIntParameter(bonemax); 6625 6638 … … 6634 6647 throw ObjectNotDeployedException(this); 6635 6648 6636 DistributedMethod method(this, 51 7);6649 DistributedMethod method(this, 518); 6637 6650 method.addAsciiParameter(hide); 6638 6651 … … 6647 6660 throw ObjectNotDeployedException(this); 6648 6661 6649 DistributedMethod method(this, 51 8);6662 DistributedMethod method(this, 519); 6650 6663 method.addSignedIntParameter(hidemax); 6651 6664 … … 6660 6673 throw ObjectNotDeployedException(this); 6661 6674 6662 DistributedMethod method(this, 5 19);6675 DistributedMethod method(this, 520); 6663 6676 method.addAsciiParameter(meat); 6664 6677 … … 6673 6686 throw ObjectNotDeployedException(this); 6674 6687 6675 DistributedMethod method(this, 52 0);6688 DistributedMethod method(this, 521); 6676 6689 method.addSignedIntParameter(meatmax); 6677 6690 … … 6686 6699 throw ObjectNotDeployedException(this); 6687 6700 6688 DistributedMethod method(this, 52 1);6701 DistributedMethod method(this, 522); 6689 6702 method.addSignedIntParameter(milkamt); 6690 6703 … … 6699 6712 throw ObjectNotDeployedException(this); 6700 6713 6701 DistributedMethod method(this, 52 2);6714 DistributedMethod method(this, 523); 6702 6715 method.addSignedIntParameter(xp); 6703 6716 … … 6712 6725 throw ObjectNotDeployedException(this); 6713 6726 6714 DistributedMethod method(this, 52 3);6727 DistributedMethod method(this, 524); 6715 6728 method.addSignedIntParameter(heale); 6716 6729 … … 6725 6738 throw ObjectNotDeployedException(this); 6726 6739 6727 DistributedMethod method(this, 52 4);6740 DistributedMethod method(this, 525); 6728 6741 method.addSignedIntParameter(pack); 6729 6742 … … 6738 6751 throw ObjectNotDeployedException(this); 6739 6752 6740 DistributedMethod method(this, 52 5);6753 DistributedMethod method(this, 526); 6741 6754 method.addSignedIntParameter(herd); 6742 6755 … … 6751 6764 throw ObjectNotDeployedException(this); 6752 6765 6753 DistributedMethod method(this, 52 6);6766 DistributedMethod method(this, 527); 6754 6767 method.addSignedIntParameter(stalker); 6755 6768 … … 6764 6777 throw ObjectNotDeployedException(this); 6765 6778 6766 DistributedMethod method(this, 52 7);6779 DistributedMethod method(this, 528); 6767 6780 method.addSignedIntParameter(killer); 6768 6781 … … 6777 6790 throw ObjectNotDeployedException(this); 6778 6791 6779 DistributedMethod method(this, 52 8);6792 DistributedMethod method(this, 529); 6780 6793 method.addSignedIntParameter(aggressive); 6781 6794 … … 6790 6803 throw ObjectNotDeployedException(this); 6791 6804 6792 DistributedMethod method(this, 5 29);6805 DistributedMethod method(this, 530); 6793 6806 method.addAsciiParameter(behaviorScript); 6794 6807 … … 6803 6816 throw ObjectNotDeployedException(this); 6804 6817 6805 DistributedMethod method(this, 53 0);6818 DistributedMethod method(this, 531); 6806 6819 method.addAsciiParameter(lootgroup); 6807 6820 … … 6816 6829 throw ObjectNotDeployedException(this); 6817 6830 6818 DistributedMethod method(this, 53 1);6831 DistributedMethod method(this, 532); 6819 6832 method.addFloatParameter(tme); 6820 6833 … … 6829 6842 throw ObjectNotDeployedException(this); 6830 6843 6831 DistributedMethod method(this, 53 2);6844 DistributedMethod method(this, 533); 6832 6845 method.addAsciiParameter(cfac); 6833 6846 … … 6842 6855 throw ObjectNotDeployedException(this); 6843 6856 6844 DistributedMethod method(this, 53 3);6857 DistributedMethod method(this, 534); 6845 6858 method.addFloatParameter(indm); 6846 6859 … … 6855 6868 throw ObjectNotDeployedException(this); 6856 6869 6857 DistributedMethod method(this, 53 4);6870 DistributedMethod method(this, 535); 6858 6871 method.addAsciiParameter(wpon); 6859 6872 … … 6868 6881 throw ObjectNotDeployedException(this); 6869 6882 6870 DistributedMethod method(this, 53 5);6883 DistributedMethod method(this, 536); 6871 6884 method.addAsciiParameter(weaponname); 6872 6885 … … 6881 6894 throw ObjectNotDeployedException(this); 6882 6895 6883 DistributedMethod method(this, 53 6);6896 DistributedMethod method(this, 537); 6884 6897 method.addAsciiParameter(weapontemp); 6885 6898 … … 6894 6907 throw ObjectNotDeployedException(this); 6895 6908 6896 DistributedMethod method(this, 53 7);6909 DistributedMethod method(this, 538); 6897 6910 method.addAsciiParameter(weaponclass); 6898 6911 … … 6907 6920 throw ObjectNotDeployedException(this); 6908 6921 6909 DistributedMethod method(this, 53 8);6922 DistributedMethod method(this, 539); 6910 6923 method.addSignedIntParameter(weaponequ); 6911 6924 … … 6920 6933 throw ObjectNotDeployedException(this); 6921 6934 6922 DistributedMethod method(this, 5 39);6935 DistributedMethod method(this, 540); 6923 6936 method.addSignedIntParameter(weaponmindam); 6924 6937 … … 6933 6946 throw ObjectNotDeployedException(this); 6934 6947 6935 DistributedMethod method(this, 54 0);6948 DistributedMethod method(this, 541); 6936 6949 method.addSignedIntParameter(weaponmaxdam); 6937 6950 … … 6946 6959 throw ObjectNotDeployedException(this); 6947 6960 6948 DistributedMethod method(this, 54 1);6961 DistributedMethod method(this, 542); 6949 6962 method.addFloatParameter(weaponattackspeed); 6950 6963 … … 6959 6972 throw ObjectNotDeployedException(this); 6960 6973 6961 DistributedMethod method(this, 54 2);6974 DistributedMethod method(this, 543); 6962 6975 method.addAsciiParameter(weapondamtype); 6963 6976 … … 6972 6985 throw ObjectNotDeployedException(this); 6973 6986 6974 DistributedMethod method(this, 54 3);6987 DistributedMethod method(this, 544); 6975 6988 method.addAsciiParameter(weaponarmorpiercing); 6976 6989 … … 6985 6998 throw ObjectNotDeployedException(this); 6986 6999 6987 DistributedMethod method(this, 54 4);7000 DistributedMethod method(this, 545); 6988 7001 method.addUnicodeParameter(message); 6989 7002 method.addUnsignedIntParameter(moodid); … … 7000 7013 throw ObjectNotDeployedException(this); 7001 7014 7002 DistributedMethod method(this, 54 5);7015 DistributedMethod method(this, 546); 7003 7016 method.addAsciiParameter(file); 7004 7017 method.addAsciiParameter(str); … … 8377 8390 break; 8378 8391 case 457: 8392 setMaxCondition(inv->getSignedIntParameter()); 8393 break; 8394 case 458: 8379 8395 setPosture(inv->getUnsignedCharParameter(), inv->getBooleanParameter(), inv->getBooleanParameter(), inv->getFloatParameter(), inv->getFloatParameter(), inv->getFloatParameter()); 8380 8396 break; 8381 case 45 8:8397 case 459: 8382 8398 setPvpStatusBitmask(inv->getUnsignedIntParameter()); 8383 8399 break; 8384 case 4 59:8400 case 460: 8385 8401 setFactionRank(inv->getUnsignedCharParameter(), inv->getBooleanParameter()); 8386 8402 break; 8387 case 46 0:8403 case 461: 8388 8404 setDizziedState(); 8389 8405 break; 8390 case 46 1:8406 case 462: 8391 8407 setStunnedState(); 8392 8408 break; 8393 case 46 2:8409 case 463: 8394 8410 setBlindedState(); 8395 8411 break; 8396 case 46 3:8412 case 464: 8397 8413 setIntimidatedState(); 8398 8414 break; 8399 case 46 4:8415 case 465: 8400 8416 setPoisonedState(inv->getSignedIntParameter(), inv->getSignedIntParameter(), inv->getSignedIntParameter()); 8401 8417 break; 8402 case 46 5:8418 case 466: 8403 8419 setBleedingState(inv->getSignedIntParameter(), inv->getSignedIntParameter(), inv->getSignedIntParameter()); 8404 8420 break; 8405 case 46 6:8421 case 467: 8406 8422 setDiseasedState(inv->getSignedIntParameter(), inv->getSignedIntParameter(), inv->getSignedIntParameter()); 8407 8423 break; 8408 case 46 7:8424 case 468: 8409 8425 setOnFireState(inv->getSignedIntParameter(), inv->getSignedIntParameter(), inv->getSignedIntParameter()); 8410 8426 break; 8411 case 46 8:8427 case 469: 8412 8428 setCreatureBitmask(inv->getUnsignedIntParameter()); 8413 8429 break; 8414 case 4 69:8430 case 470: 8415 8431 resp->insertBoolean(setNextAttackDelay(inv->getSignedIntParameter())); 8416 8432 break; 8417 case 47 0:8433 case 471: 8418 8434 setCharacterName(inv->getAsciiParameter(_param0_setCharacterName__string_)); 8419 8435 break; 8420 case 47 1:8436 case 472: 8421 8437 setCharacterName(inv->getUnicodeParameter(_param0_setCharacterName__unicode_)); 8422 8438 break; 8423 case 47 2:8439 case 473: 8424 8440 setTerrainName(inv->getAsciiParameter(_param0_setTerrainName__string_)); 8425 8441 break; 8426 case 47 3:8442 case 474: 8427 8443 setCharacterAppearance(inv->getAsciiParameter(_param0_setCharacterAppearance__string_)); 8428 8444 break; 8429 case 47 4:8445 case 475: 8430 8446 setAppearanceAttribute(inv->getUnsignedCharParameter(), inv->getUnsignedCharParameter()); 8431 8447 break; 8432 case 47 5:8448 case 476: 8433 8449 setAppearanceAttribute(inv->getAsciiParameter(_param0_setAppearanceAttribute__string_char_), inv->getUnsignedCharParameter()); 8434 8450 break; 8435 case 47 6:8451 case 477: 8436 8452 updateCharacterAppearance(); 8437 8453 break; 8438 case 47 7:8454 case 478: 8439 8455 setHairAppearance(inv->getAsciiParameter(_param0_setHairAppearance__string_)); 8440 8456 break; 8441 case 47 8:8457 case 479: 8442 8458 setHairAppearanceAttribute(inv->getUnsignedCharParameter(), inv->getUnsignedCharParameter()); 8443 8459 break; 8444 case 4 79:8460 case 480: 8445 8461 setHairAppearanceAttribute(inv->getAsciiParameter(_param0_setHairAppearanceAttribute__string_char_), inv->getUnsignedCharParameter()); 8446 8462 break; 8447 case 48 0:8463 case 481: 8448 8464 setRaceName(inv->getAsciiParameter(_param0_setRaceName__string_)); 8449 8465 break; 8450 case 48 1:8466 case 482: 8451 8467 setSpeciesName(inv->getAsciiParameter(_param0_setSpeciesName__string_)); 8452 8468 break; 8453 case 48 2:8469 case 483: 8454 8470 setStfName(inv->getAsciiParameter(_param0_setStfName__string_)); 8455 8471 break; 8456 case 48 3:8472 case 484: 8457 8473 setGender(inv->getAsciiParameter(_param0_setGender__string_)); 8458 8474 break; 8459 case 48 4:8475 case 485: 8460 8476 setFaction(inv->getUnsignedIntParameter()); 8461 8477 break; 8462 case 48 5:8478 case 486: 8463 8479 setHeight(inv->getFloatParameter()); 8464 8480 break; 8465 case 48 6:8481 case 487: 8466 8482 setMood(inv->getUnsignedCharParameter()); 8467 8483 break; 8468 case 48 7:8484 case 488: 8469 8485 setMood(inv->getAsciiParameter(_param0_setMood__string_)); 8470 8486 break; 8471 case 48 8:8487 case 489: 8472 8488 setGroup((GroupObject*) inv->getObjectParameter()); 8473 8489 break; 8474 case 4 89:8490 case 490: 8475 8491 setMount((MountCreature*) inv->getObjectParameter()); 8476 8492 break; 8477 case 49 0:8493 case 491: 8478 8494 explode(inv->getSignedIntParameter(), inv->getBooleanParameter()); 8479 8495 break; 8480 case 49 1:8496 case 492: 8481 8497 resp->insertLong(getBuffObject(inv->getUnsignedIntParameter())->_getObjectID()); 8482 8498 break; 8483 case 49 2:8499 case 493: 8484 8500 resp->insertBoolean(hasBuff(inv->getUnsignedIntParameter())); 8485 8501 break; 8486 case 49 3:8502 case 494: 8487 8503 resp->insertSignedInt(healDamage((CreatureObject*) inv->getObjectParameter(), inv->getSignedIntParameter(), inv->getUnsignedCharParameter(), inv->getBooleanParameter())); 8488 8504 break; 8489 case 49 4:8505 case 495: 8490 8506 resp->insertSignedInt(healWound((CreatureObject*) inv->getObjectParameter(), inv->getSignedIntParameter(), inv->getUnsignedCharParameter(), inv->getBooleanParameter())); 8491 8507 break; 8492 case 49 5:8508 case 496: 8493 8509 resp->insertSignedInt(healEnhance((CreatureObject*) inv->getObjectParameter(), inv->getSignedIntParameter(), inv->getFloatParameter(), inv->getUnsignedCharParameter(), inv->getBooleanParameter())); 8494 8510 break; 8495 case 49 6:8511 case 497: 8496 8512 resp->insertBoolean(curePoison((CreatureObject*) inv->getObjectParameter(), inv->getFloatParameter())); 8497 8513 break; 8498 case 49 7:8514 case 498: 8499 8515 resp->insertBoolean(cureDisease((CreatureObject*) inv->getObjectParameter(), inv->getFloatParameter())); 8500 8516 break; 8501 case 49 8:8517 case 499: 8502 8518 resp->insertBoolean(extinguishFire((CreatureObject*) inv->getObjectParameter(), inv->getFloatParameter())); 8503 8519 break; 8504 case 499:8520 case 500: 8505 8521 resp->insertBoolean(healState((CreatureObject*) inv->getObjectParameter(), inv->getUnsignedLongParameter())); 8506 8522 break; 8507 case 50 0:8523 case 501: 8508 8524 resp->insertBoolean(revive((CreatureObject*) inv->getObjectParameter(), inv->getBooleanParameter())); 8509 8525 break; 8510 case 50 1:8526 case 502: 8511 8527 resp->insertBoolean(resurrect((CreatureObject*) inv->getObjectParameter(), inv->getBooleanParameter())); 8512 8528 break; 8513 case 50 2:8529 case 503: 8514 8530 deactivateWoundTreatment(); 8515 8531 break; 8516 case 50 3:8532 case 504: 8517 8533 activateWoundTreatment(); 8518 8534 break; 8519 case 50 4:8535 case 505: 8520 8536 deactivateInjuryTreatment(); 8521 8537 break; 8522 case 50 5:8538 case 506: 8523 8539 activateInjuryTreatment(); 8524 8540 break; 8525 case 50 6:8541 case 507: 8526 8542 deactivateStateTreatment(); 8527 8543 break; 8528 case 50 7:8544 case 508: 8529 8545 activateStateTreatment(); 8530 8546 break; 8531 case 50 8:8547 case 509: 8532 8548 deactivateConditionTreatment(); 8533 8549 break; 8534 case 5 09:8550 case 510: 8535 8551 activateConditionTreatment(); 8536 8552 break; 8537 case 51 0:8553 case 511: 8538 8554 resp->insertBoolean(canTreatWounds()); 8539 8555 break; 8540 case 51 1:8556 case 512: 8541 8557 resp->insertBoolean(canTreatInjuries()); 8542 8558 break; 8543 case 51 2:8559 case 513: 8544 8560 resp->insertBoolean(canTreatStates()); 8545 8561 break; 8546 case 51 3:8562 case 514: 8547 8563 resp->insertBoolean(canTreatConditions()); 8548 8564 break; 8549 case 51 4:8565 case 515: 8550 8566 resp->insertSignedInt(getMedicalFacilityRating()); 8551 8567 break; 8552 case 51 5:8568 case 516: 8553 8569 setBoneType(inv->getAsciiParameter(_param0_setBoneType__string_)); 8554 8570 break; 8555 case 51 6:8571 case 517: 8556 8572 setBoneMax(inv->getSignedIntParameter()); 8557 8573 break; 8558 case 51 7:8574 case 518: 8559 8575 setHideType(inv->getAsciiParameter(_param0_setHideType__string_)); 8560 8576 break; 8561 case 51 8:8577 case 519: 8562 8578 setHideMax(inv->getSignedIntParameter()); 8563 8579 break; 8564 case 5 19:8580 case 520: 8565 8581 setMeatType(inv->getAsciiParameter(_param0_setMeatType__string_)); 8566 8582 break; 8567 case 52 0:8583 case 521: 8568 8584 setMeatMax(inv->getSignedIntParameter()); 8569 8585 break; 8570 case 52 1:8586 case 522: 8571 8587 setMilk(inv->getSignedIntParameter()); 8572 8588 break; 8573 case 52 2:8589 case 523: 8574 8590 setXP(inv->getSignedIntParameter()); 8575 8591 break; 8576 case 52 3:8592 case 524: 8577 8593 setHealer(inv->getSignedIntParameter()); 8578 8594 break; 8579 case 52 4:8595 case 525: 8580 8596 setPack(inv->getSignedIntParameter()); 8581 8597 break; 8582 case 52 5:8598 case 526: 8583 8599 setHerd(inv->getSignedIntParameter()); 8584 8600 break; 8585 case 52 6:8601 case 527: 8586 8602 setStalker(inv->getSignedIntParameter()); 8587 8603 break; 8588 case 52 7:8604 case 528: 8589 8605 setKiller(inv->getSignedIntParameter()); 8590 8606 break; 8591 case 52 8:8607 case 529: 8592 8608 setAggressive(inv->getSignedIntParameter()); 8593 8609 break; 8594 case 5 29:8610 case 530: 8595 8611 setBehaviorScript(inv->getAsciiParameter(_param0_setBehaviorScript__string_)); 8596 8612 break; 8597 case 53 0:8613 case 531: 8598 8614 setLootGroup(inv->getAsciiParameter(_param0_setLootGroup__string_)); 8599 8615 break; 8600 case 53 1:8616 case 532: 8601 8617 setTame(inv->getFloatParameter()); 8602 8618 break; 8603 case 53 2:8619 case 533: 8604 8620 setCreatureFaction(inv->getAsciiParameter(_param0_setCreatureFaction__string_)); 8605 8621 break; 8606 case 53 3:8622 case 534: 8607 8623 setInternalNPCDamageModifier(inv->getFloatParameter()); 8608 8624 break; 8609 case 53 4:8625 case 535: 8610 8626 setCreatureWeapon(inv->getAsciiParameter(_param0_setCreatureWeapon__string_)); 8611 8627 break; 8612 case 53 5:8628 case 536: 8613 8629 setCreatureWeaponName(inv->getAsciiParameter(_param0_setCreatureWeaponName__string_)); 8614 8630 break; 8615 case 53 6:8631 case 537: 8616 8632 setCreatureWeaponTemp(inv->getAsciiParameter(_param0_setCreatureWeaponTemp__string_)); 8617 8633 break; 8618 case 53 7:8634 case 538: 8619 8635 setCreatureWeaponClass(inv->getAsciiParameter(_param0_setCreatureWeaponClass__string_)); 8620 8636 break; 8621 case 53 8:8637 case 539: 8622 8638 setCreatureWeaponEquipped(inv->getSignedIntParameter()); 8623 8639 break; 8624 case 5 39:8640 case 540: 8625 8641 setCreatureWeaponMinDamage(inv->getSignedIntParameter()); 8626 8642 break; 8627 case 54 0:8643 case 541: 8628 8644 setCreatureWeaponMaxDamage(inv->getSignedIntParameter()); 8629 8645 break; 8630 case 54 1:8646 case 542: 8631 8647 setCreatureWeaponAttackSpeed(inv->getFloatParameter()); 8632 8648 break; 8633 case 54 2:8649 case 543: 8634 8650 setCreatureWeaponDamageType(inv->getAsciiParameter(_param0_setCreatureWeaponDamageType__string_)); 8635 8651 break; 8636 case 54 3:8652 case 544: 8637 8653 setCreatureWeaponArmorPiercing(inv->getAsciiParameter(_param0_setCreatureWeaponArmorPiercing__string_)); 8638 8654 break; 8639 case 54 4:8655 case 545: 8640 8656 say(inv->getUnicodeParameter(_param0_say__unicode_int_int_), inv->getUnsignedIntParameter(), inv->getUnsignedIntParameter()); 8641 8657 break; 8642 case 54 5:8658 case 546: 8643 8659 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()); 8644 8660 break; … … 10454 10470 } 10455 10471 10472 void CreatureObjectAdapter::setMaxCondition(int condition) { 10473 return ((CreatureObjectImplementation*) impl)->setMaxCondition(condition); 10474 } 10475 10456 10476 void CreatureObjectAdapter::setPosture(unsigned char state, bool overrideDizzy, bool objectInteraction, float objX, float objY, float objZ) { 10457 10477 return ((CreatureObjectImplementation*) impl)->setPosture(state, overrideDizzy, objectInteraction, objX, objY, objZ); core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObject.h
r901 r915 953 953 954 954 void changeConditionDamage(int amount); 955 956 void setMaxCondition(int condition); 955 957 956 958 void setPosture(unsigned char state, bool overrideDizzy = false, bool objectInteraction = false, float objX = 0, float objY = 0, float objZ = 0); … … 2074 2076 2075 2077 void changeConditionDamage(int amount); 2078 2079 void setMaxCondition(int condition); 2076 2080 2077 2081 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 713 713 714 714 void changeConditionDamage(int amount); 715 void setMaxCondition(int condition); 715 716 716 717 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 1664 1664 1665 1665 dcreo3->updateConditionDamage(); 1666 dcreo3->close(); 1667 1668 broadcastMessage(dcreo3); 1669 } 1670 1671 void 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(); 1666 1680 dcreo3->close(); 1667 1681 core3/trunk/MMOCoreORB/src/server/zone/objects/creature/CreatureObjectImplementation.h
r901 r915 485 485 486 486 void changeConditionDamage(int amount); 487 void setMaxCondition(int condition); 487 488 488 489 void changeShockWounds(int bf); core3/trunk/MMOCoreORB/src/server/zone/objects/creature/mount/MountCreatureImplementation.cpp
r898 r915 160 160 stringstream cond; 161 161 162 cond << (maxCondition-conditionDamage) << "/" << maxCondition << ":";162 cond << "condition=" << (maxCondition-conditionDamage) << "/" << maxCondition << ":"; 163 163 164 164 string attr = cond.str(); … … 298 298 setFaction(linkedCreature->getFaction()); 299 299 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 300 316 insertToZone(zone); 301 317 core3/trunk/MMOCoreORB/src/server/zone/objects/player/PlayerImplementation.cpp
r912 r915 4340 4340 return; 4341 4341 4342 string name, detailName, appearance, mountApp, attr ;4342 string name, detailName, appearance, mountApp, attr, fileName; 4343 4343 stringstream query; 4344 4344 uint32 objCRC, itnoCRC; … … 4357 4357 attr = ""; 4358 4358 mountApp = ""; 4359 fileName = ""; 4359 4360 objCRC = 0; 4360 4361 objID = 0; … … 4382 4383 mountCreature->getCharacterAppearance(mountApp); 4383 4384 4385 fileName = mountCreature->getObjectFileName(); 4384 4386 attr = mountCreature->getAttributes(); 4385 4387 MySqlDatabase::escapeString(attr); … … 4402 4404 << ",name = '" << name << "', itnocrc = " << objCRC << ",item_crc = " << itnoCRC 4403 4405 << ",itemMask = 65535, appearance = '" << appearance.substr(0, appearance.size() - 1) 4404 << "',attributes = '" << attr << "', obj_id = " << objID << ";";4406 << "',attributes = '" << attr << "',file_name = '" << fileName << "',obj_id = " << objID << ";"; 4405 4407 4406 4408 ServerDatabase::instance()->executeStatement(query); core3/trunk/MMOCoreORB/src/server/zone/objects/tangible/deed/vehicledeed/VehicleDeedImplementation.cpp
r912 r915 40 40 objectSubType = VEHICLEDEED; 41 41 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") { 43 60 targetName = unicode("speederbike_swoop"); 44 61 targetFile = "object/intangible/vehicle/shared_speederbike_swoop_pcd.iff"; … … 86 103 } 87 104 105 void VehicleDeedImplementation::updateCraftingValues(DraftSchematic* draftSchematic) { 106 107 DraftSchematicValues* craftingValues = draftSchematic->getCraftingValues(); 108 109 int hitPoints = (int)craftingValues->getCurrentValue("hitPoints"); 110 setHitPoints(hitPoints); 111 } 112 113 void VehicleDeedImplementation::addAttributes(AttributeListMessage* alm) { 114 addHeaderAttributes(alm); 115 116 alm->insertAttribute("hit_points", getHitPoints()); 117 118 addFooterAttributes(alm); 119 } 120 121 void VehicleDeedImplementation::parseItemAttributes(){ 122 123 string temp = "hit_points"; 124 hitPoints = itemAttributes->getIntAttribute(temp); 125 126 } 127 88 128 int VehicleDeedImplementation::useObject(Player* player) { 89 129 Datapad * datapad = player->getDatapad(); … … 95 135 96 136 try { 137 vehicle->setMaxCondition(getHitPoints()); 138 vehicle->setObjectFileName(vehicleFile); 97 139 vehicle->addToDatapad(); 98 140 … … 121 163 if (zoneServer != NULL && ((itemManager = zoneServer->getItemManager()) != NULL)) { 122 164 player->removeInventoryItem(objectID); 123 itemManager->deletePlayerItem(player, _this, true);165 itemManager->deletePlayerItem(player, _this, false); 124 166 finalize(); 125 167 } core3/trunk/MMOCoreORB/src/server/zone/objects/tangible/deed/vehicledeed/VehicleDeedImplementation.h
r674 r915 17 17 protected: 18 18 string vehicleFile; 19 int hitPoints; 19 20 public: 20 21 static const int ORE = 1; … … 37 38 void sendRadialResponseTo(Player* player, ObjectMenuResponse* omr); 38 39 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 39 56 //void sendTo(Player* player, MountCreature* swoop, bool doClose); 40 57