Pixeel
-
Posts
5 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Content Type
Profiles
Bug Tracker
Wiki
Release Notes
Forums
Downloads
Blogs
Events
Posts posted by Pixeel
-
-
Hello, i'm looking for help to create a NPC who cast a spell on a specific target (http://www.wowhead.com/?npc=36171) when a player says or yell a specific string of characters ("Start the attack !"). How can I make do that to a NPC, please ?
-
Happy new year!
-
Hello all, I need some help writing a new command for make say something to character (like .npc say). I start to builds upon in my inspiration files "Player.cpp & Level1.ccp"
This gives it
bool ChatHandler::HandlePlayerSayCommand(const char* args)
{
if(!*args)
return false;
Player* pPlayer = getSelectedPlayer();
if(!pPlayer)
{
SendSysMessage(LANG_SELECT_CHAR_OR_CREATURE);
SetSentErrorMessage(true);
return false;
}
pPlayer->PlayerSay(args, LANG_UNIVERSAL, 0);
if(sWorld.getConfig(CONFIG_CHATLOG_PUBLIC))
sLog.outChat("[sAY] Player %s says (language %u): %s",
GetName(), language, text.c_str());
// Execute an emote is the last letter is "?" or "!"
char lastchar = args[strlen(args) - 1];
switch(lastchar)
{
case '?': m_session->GetPlayer( )->SetUInt32Value( UNIT_NPC_EMOTESTATE , EMOTE_ONESHOT_QUESTION ); break
case '!': m_session->GetPlayer( )->SetUInt32Value( UNIT_NPC_EMOTESTATE , EMOTE_ONESHOT_EXCLAMATION ); break
default: m_session->GetPlayer( )->SetUInt32Value( UNIT_NPC_EMOTESTATE , EMOTE_ONESHOT_TALK ); break
}
return true;
}
Can anyone help me to enrich this code and to make him able to work, please?
-
Hi all, I would like some help to give effect to a spell.
Example :
► I want that the spells 46082 have a Knockback for xx value.
http://www.wowhead.com/?spell=46082
I just looked in SpellEffects.cpp but I do not understand how to apply an effect to a spell. Please take a moment to help me.
&Spell::EffectKnockBack, // 98 SPELL_EFFECT_KNOCK_BACK
[Help]For create a npc who doing something when a player says something.
in OldC / C++
Posted
Ok, thanks for yours replies.