Forum > Serverside Modding

[QUESTION] Reward player with buff

(1/2) > >>

Mirai Dematro:
Dear Modcraft,

I want my player to be rewarded with a buff, as soon as he/she completes my quest.
When the player returns to the NPC, the NPC must cast the spell onto the player.

So in the quest DB, there is a column named 'RewardSpell' and 'RewardSpellCast'.
So I did a little internet search, and this is what I found:


--- Quote -----------------------------------------------------------------
RewardSpell
Spell that is shown to be casted on quest completion in the quest log.
Note that this spell will NOT be casted if RewardSpellCast is non-zero.
The spell in the other field will be casted instead,
in which case the spell here only serves as the visual in the quest log.

NOTE: This field comes straight from the WDB and should not be changed.

RewardSpellCast
Spell that will always be casted at player when completing the quest.
This can be learn spell and player learned some spell in result,
or buff spell, for example. If this field is non-zero then
this spell will ALWAYS be casted and the spell in RewardSpell will not.

NOTE: This field comes straight from the WDB and should not be changed.
--- End quote ---

I don't want my player to see what spell is going to be casted onto him.
So this leads me to believe that if I put the correct spell ID into 'RewardSpellCast' it should work.

HOWEVER!

It states that this field comes straight from the WDB and should NOT be changed.

So...   What should I do now?

Additional info:

- WoTLK 3.3.5a
- TrinityCore

Steff:
Have you just tested it.  I mean made a quest,  set reward spell to null and spell cast to the spell you want?

Mirai Dematro:
Dear Steff,

Thanks for replying!

I just tested this out with a simple quest.
RewardSpell: 0
RewardSpellCast: 5759

When I clicked the 'Complete Quest' button, the NPC casted the spell on himself!
Nothing crashed, everything was fine, he just casted it onto himself!  :roll:

Any ideas ?

-MD

deep6ixed:
Whats the Buff Spell?  It might be Target Self... Which case it's working perfectly...

Mirai Dematro:
Dear Deep6ixed,

This is the spell I'm referring to: http://www.wowhead.com/spell=5759
That could be the problem with this spell, i guess...  XD

So if this is indeed the problem... How can I edit the spell that it isn't Self-Targeting?
I've already located the spell in the Spell.dbc, but have no clue wich column to edit.

Thanks in advance,
- MD

Navigation

[0] Message Index

[#] Next page

Go to full version