Hashirama479
World of Ninja
- Joined
- Dec 19, 2016
- Messages
- 536
- Solutions
- 6
- Reaction score
- 74
Can someone help me to edit that part so it shows rebirth instead of levels?
TFS 0.4 ^^ thanks
TFS 0.4 ^^ thanks
if(speaker && type != SPEAK_RVR_ANSWER && !speaker->isAccountManager() && !speaker->hasCustomFlag(PlayerCustomFlag_HideLevel)) {
std::string value;
speaker->getStorage("85987" , value);
int16_t ii = atoi(value.c_str());
if(ii < 1)
ii=1;
msg->put<uint16_t>(ii);}
else
msg->put<uint16_t>(0x00);
}
This requires source editing it can not be done through a standard script.Can someone help me to edit that part so it shows rebirth instead of levels?
TFS 0.4 ^^ thanks
This requires source editing it can not be done through a standard script.
if(speaker && type != SPEAK_RVR_ANSWER && !speaker->isAccountManager() && !speaker->hasCustomFlag(PlayerCustomFlag_HideLevel) && (pg == NULL || pg != NULL && !pg->getIsCast()))
msg->put<uint16_t>(speaker->getPlayerInfo(PLAYERINFO_LEVEL));
else
msg->put<uint16_t>(0x00);
}
if(speaker && type != SPEAK_RVR_ANSWER && !speaker->isAccountManager() && !speaker->hasCustomFlag(PlayerCustomFlag_HideLevel) && (pg == NULL || pg != NULL && !pg->getIsCast())){
uint32_t keyes = 85987;
std::string valueses;
speaker->getStorage(keyes , valueses );
int16_t ii = atoi(valueses.c_str());
if(ii < 1)
ii=1;
msg->put<uint16_t>(ii);}
else
msg->put<uint16_t>(0x00);
}
Idk if XxdestroyerxX script works, but Hashirama479 your function dont have any pg parameter
just remove this and try
&& (pg == NULL || pg != NULL && !pg->getIsCast())
I think @Pretx was quite clear but here you go anyway.Can u explain me what u mean with "just remove this and try" then ur command thing xD I dont understand it at all to be honest
if(speaker && type != SPEAK_RVR_ANSWER && !speaker->isAccountManager() && !speaker->hasCustomFlag(PlayerCustomFlag_HideLevel)){
uint32_t keyes = 85987;
std::string valueses;
speaker->getStorage(keyes , valueses );
int16_t ii = atoi(valueses.c_str());
if(ii < 1)
ii=1;
msg->put<uint16_t>(ii);}
else
msg->put<uint16_t>(0x00);
}
if(speaker && type != SPEAK_RVR_ANSWER && !speaker->isAccountManager() && !speaker->hasCustomFlag(PlayerCustomFlag_HideLevel)) {
std::string value;
speaker->getStorage("85987" , value);
int16_t ii = atoi(value.c_str());
if(ii < 1)
ii=1;
msg->put<uint16_t>(ii);}
else
msg->put<uint16_t>(0x00);
}