Jump to content
×
×
  • Create New...
  • 0

Call external function


Randomize

Question

  • Answers 8
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

8 answers to this question

Recommended Posts

  • 0

I didn't test the 1st way,but I think it's gonna work

#include "char.h"
#include "char_manager.h"
#include "questmanager.h"

char_event_info* info = dynamic_cast<char_event_info*>( event->info );
LPCHARACTER ch = info->ch;
ch->ChatPacket(CHAT_TYPE_INFO,"GetRaceNum(): %d",ch->GetRaceNum());

//For quests
LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
ch->ChatPacket(CHAT_TYPE_INFO,"GetRaceNum(): %d",ch->GetRaceNum());
Link to comment
Share on other sites

  • 0

But it does not set the sex to other for permanently, or yes?

 

Now I try other way: put the function I wrote to char.cpp

I will share the result after it finished compiling.

Edited by Randomize
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / 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.