• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Damage low for NPC's in WoDCore

Status
Not open for further replies.

homework

Emulation Addict
Can you post your line of for .npc info? Might have a small problem with it. Although this is a different kind of support. Can try to fix it for ya.

Sorry Sylica, what do you mean by the line? Like the script?
And this is off-topic, but do you have like Skype or Kik or some kind of messenger I could message you on if I ever need help? I would reward you of course for helping me if I ever needed it.
 

Sylica

Exalted Member
Sorry Sylica, what do you mean by the line? Like the script?
And this is off-topic, but do you have like Skype or Kik or some kind of messenger I could message you on if I ever need help? I would reward you of course for helping me if I ever needed it.

Yea, sorry I meant the script for the command you're trying to use. Working on my script engine for my project lol.
Only thing I have currently is Skype, but barely use it. You can message me on here, since I'm mostly on here.
 

homework

Emulation Addict
Yea, sorry I meant the script for the command you're trying to use. Working on my script engine for my project lol.
Only thing I have currently is Skype, but barely use it. You can message me on here, since I'm mostly on here.

No problem, on here will do :)
And you'll have to forgive me once again, what part of the npc file do you want?

Like what am I looking for exactly? Do you need the 'npc_commandscript' who file or...? Sorry once again D:


I'm just not very good with scripts at all. I'm completely new to coding. But every bit is teaching me more.
 

Sylica

Exalted Member
No problem, on here will do :)
And you'll have to forgive me once again, what part of the npc file do you want?

Like what am I looking for exactly? Do you need the 'npc_commandscript' who file or...? Sorry once again D:


I'm just not very good with scripts at all. I'm completely new to coding. But every bit is teaching me more.

Its the file called, "cs_npc.cpp" in the commands located in the scripts folder.
 

Sylica

Exalted Member
Oh I knew that but I wasn't sure if you wanted to whole file. But since I'm probably wasting your time I'll give the whole thing anyways:
http://pastebin.com/uc2xvVrZ

No, its fine. I love helping people out the best I can. Only thing that is different from mine is this line of code:
Code:
	if (CreatureData const* data = sObjectMgr->GetCreatureData(target->GetSpawnId()))		
        {		
            handler->PSendSysMessage(LANG_NPCINFO_PHASES, data->phaseid, data->phaseGroup);		
            if (data->phaseGroup)		
            {		
                std::set<uint32> _phases = target->GetPhases();		
                if (!_phases.empty())		
                {		
                    handler->PSendSysMessage(LANG_NPCINFO_PHASE_IDS);		
                    for (uint32 phaseId : _phases)		
                        handler->PSendSysMessage("%u", phaseId);		
                }		
            }		
        }

It could the cause of the crash, not sure. Might need more views on this. Might have to look though the issue tracker to see if this is a current problem.
 
Status
Not open for further replies.
Top