tere
-
Posts
8 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Content Type
Profiles
Bug Tracker
Wiki
Release Notes
Forums
Downloads
Blogs
Events
Posts posted by tere
-
-
rastikzzz you core vehicles work? rev 8280? or not?
exist fix vehicles ? new patch?
-
why there are needed new fields for energy? energy is alwasy 100, no? look at rouges or DK ghoul
and why do you added this ?
+ UNIT_FIELD_BASE_ENERGY = OBJECT_END + 0x0080, // Size: 1, Type: INT, Flags: PUBLIC
it was a mistake I, but I managed to solve the problem (+ UNIT_FIELD_BASE_ENERGY = OBJECT_END + 0x0080, // Size: 1, Type: INT, Flags: PUBLIC)
I managed to solve the problem of energy for vehicles, thanks for answering me, your work is very good vehicles.
But now only stated that the passengers (creature_templates_addons) could attack the top of the tanks and catapults. you know how it works?
-
they are using more energy types - energy, mana and i heard something about fuel too, but not confirmed. i didnt tried vehicles with energy yet.
// creature.cpp
is to add energy in the table DATA BASE minenergy maxenergy.
I tried and worked but you need the update in the DATA BASE for the NPC VEHICLES, work with energy
// mana
uint32 minmana = std::min(cinfo->maxmana, cinfo->minmana);
uint32 maxmana = std::max(cinfo->maxmana, cinfo->minmana);
uint32 mana = minmana + uint32(rellevel*(maxmana - minmana));
+// energy
+ uint32 minenergy = std::min(cinfo->maxenergy, cinfo->minenergy);
+ uint32 maxenergy = std::max(cinfo->maxenergy, cinfo->minenergy);
+ uint32 energy = minenergy + uint32(rellevel*(maxenergy - minenergy));
SetCreateMana(mana);
SetMaxPower(POWER_MANA, mana); //MAX Mana
SetPower(POWER_MANA, mana);
+ SetCreateEnergy(energy);
+ SetMaxPower(POWER_ENERGY, energy); //MAX Energy
+ SetPower(POWER_ENERGY, energy);
// TODO: set UNIT_FIELD_POWER*, for some creature class case (energy, etc)
SetModifierValue(UNIT_MOD_HEALTH, BASE_VALUE, health);
SetModifierValue(UNIT_MOD_MANA, BASE_VALUE, mana);
+ SetModifierValue(UNIT_MOD_ENERGY, BASE_VALUE, energy);
// UpdateFields.h
UNIT_FIELD_RANGED_ATTACK_POWER_MODS = OBJECT_END + 0x0079, // Size: 1, Type: TWO_SHORT, Flags: PRIVATE, OWNER
+ UNIT_FIELD_BASE_ENERGY = OBJECT_END + 0x0080, // Size: 1, Type: INT, Flags: PUBLIC
// DATA BASE
ALTER TABLE creature_template
ADD COLUMN minenergy int(10) unsigned NOT NULL default '0' AFTER maxmana,
ADD COLUMN maxenergy int(10) unsigned NOT NULL default '0' AFTER minenergy;
But probleman update create DATA BASE.
-
vehicles very good implement in core..
but spell vehicle is energy e not mana.. you implement energy in database ?
-
yes i know there are merge errors if mangos had updated something in their code. But i am not here 24/7 to make it always updated, if there is a error, solve it by hand, or use older mangos revision or just wait for me to update it
btw : i finally fixed client errors, so its usable now in bigger events...
hi y use you core.. but very playes mont in vehicle , crash client error..
you repair is it?
thanxx sorry bad english
-
rastikzzz
you could put here, its patches of core?
because I wanted to know, what the patch, you put on your core.
-
i was working for some days now on vehicles, i used this patch, some inspiration from trinity and rewrited it all using my knowledge.
the dev. branch is here http://github.com/rastikzzz/mangos_vehicles/tree/master
its not finished yet and its still in development
i will appreciate any good ideas/suggestions
very good, but when 2 players mounted on a vehicle, one is disconnected.
[Need Help] Mirror Image
in OldCore modifications
Posted
Spell clone not work..