Jump to content

[Help] Making GameObject casting spell


Guest maly32167

Recommended Posts

Hello, i was trying to make GameObject class casting spell, actually im not sure if its even done like that on blizzard but what i meant to do is fixing Heigan's Eruption spell, actually not fixing but making it look like that in combat log

SPELL_DAMAGE,0xF11002C5AD010715,"Plague Fissure",0x4228,0x050000000016F71D,"playername",0x10511,29371,"Eruption",0x8,6817,0,8,0,0,0,nil,nil,nil

As You can see on blizzard spell is casted by "Plague Fissure" which is GameObject (there is also no NPC trigger with such name)

I tryed to cast it from boss with adding OrginalCaster guid of object but then it wasnt really casted (or dealt no damage)

I tryed rewriting casting code alot but always failed ;p crashes freezes and what not so dunno if its done by NPC trigger that inherits name somehow, but then level of it would be a problem becouse GameObject doesnt have level field (even if taken from uint32 val not really working)

If anyone know if its possible i would really appreciate any help ?

Link to comment
Share on other sites

I tryed rewriting casting code alot but always failed ;p crashes freezes and what not so dunno if its done by NPC trigger that inherits name somehow, but then level of it would be a problem becouse GameObject doesnt have level field (even if taken from uint32 val not really working)

If anyone know if its possible i would really appreciate any help ?

GameObject does have level field:

http://udbwiki.webhop.net/index.php/Gameobject_template

* GAMEOBJECT_TYPE_TRAP = 6

o data0: open (LockId from Lock.dbc)

o data1: level (npc equivalent level for casted spell)

o data2: diameter (so radius*2)

o data3: spell (Spell Id from spell.dbc)

o data4: charges (0 or 1)

o data5: cooldown (time in seconds)

o data6: autoClose (unknown)

o data7: startDelay? (time in seconds)

o data8: serverOnly? (always 0)

o data9: stealthed (Boolean flag)

o data10: large? (Boolean flag)

o data11: stealthAffected (Boolean flag)

o data12: openTextID (Unknown ID)

You need to cast the spell from the GO.

Link to comment
Share on other sites

  • 2 months later...

M 9450

SD2 1600

bump ;)

Hmm I am over Heigan atm, and there is still the same problem -

I have GOs Type 6, with data3(spell) = http://www.wowpanda.net/s29371, as example entry http://www.wowpanda.net/o181516

I do want to activate, trigger, let them cast, or do anything to get some effect related to the spell.

But in my SD2 Script, be pGo a pointer to this Go,

pGo->Use(m_creature)

just gives the following error in the console

2010-03-04 11:45:03 ERROR:GameObject::Use unhandled GameObject type 6 (entry 181516).

Hope that some of you guys have an idea.

A few lines from a world DB (UDB or ytdb, are the same)

gameobject_template:

181516, 6, 6785, 'Plague Fissure', '', '', '', 14, 0, 1, 0, 0, 0, 0, 0, 0, 0, 60, 0, 29371, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ''

gameobject:

65715, 181516, 533, 3, 1, 2763.55, -3654.04, 274.317, -2.88396, 0, 0, 1, 0, 180, 0, 1

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use