Page 1 of 1

is there a way to print out in client %u with

Posted: Wed Feb 06, 2013 9:58 am
by WiiStream
PChar->pushPacket(new CChatMessagePacket(PChar, MESSAGE_SAY, "Getting Max Magic Points %u")),PChar->Health.mp;

something like that.

I was wondering about this when the getMaxHp function is being called is it requesting a value

inline int32 CLuaBaseEntity::getMaxMP(lua_State *L)

getMaxHP(value);

or is it just asking to get the value to send it back to some thing?

what one would be right

getMaxHP(value);

getMaxHP();

or both?

Re: is there a way to print out in client %u with

Posted: Mon Feb 11, 2013 9:24 am
by WiiStream

Code: Select all

int32 n = PChar->GetMaxHP();
    char buf[110];
    sprintf(buf,"Getting Max Health Points: %d", (int)n);
	PChar->pushPacket(new CChatMessagePacket(PChar, MESSAGE_STRING_SAY , ("%s",buf)));