![]() |
#191
|
|||
|
![]() Code:
"[PvP] %s%s%s%s has been defeated by %s%s%s%s!", GetName(), GuildID() ? " <" : "", GuildID() ? guild_mgr.GetGuildName(GuildID()) : "", GuildID() ? ">" : "", Killer->GetName(), Killer->CastToClient()->GuildID() ? " <" : "", Killer->CastToClient()->GuildID() ? guild_mgr.GetGuildName(Killer->CastToClient()->GuildID()) : "", Killer->CastToClient()->GuildID() ? ">" : ""
__________________
| ||
|
#192
|
|||
|
![]() Code:
char phrase[255]; database.GetRandPvPSaying(phrase); worldserver.SendEmoteMessage(0,0,0,15, "%s (%u %s) <%s> %s %s (%u %s) <%s> in %s!", this->GetName(),this->GetLevel(),classes[this->GetClass()],guild_mgr.GetGuildName(this->GuildID()), phrase, killer->GetName(),killer->GetLevel(),classes[killer->GetClass()],guild_mgr.GetGuildName(killer->GuildID()), zone->GetLongName() ); | ||
|
#193
|
||||
|
![]() Quote:
| |||
|
#194
|
|||
|
![]() btw what is that Rogean perl or something? What's the world coming to with ternary operations in a string format. Wonder if that's valid in C/C++
| ||
|
#195
|
||||
|
![]() Quote:
"%s (%u %s) <%s> %s %s (%u %s) <%s> in %s!" Lack of guild causes unnecessary ") <> ". This is why I have %s%s%s, If there's no guild name, why add the extra support text around it. It looks cleaner. You have an extra space before "in". I did forget the zone name, I'll add that to mine.
__________________
| |||
|
#196
|
|||||
|
![]() Quote:
welcome back rogean
__________________
Quote:
Wipe it clean. | ||||
|
#197
|
|||
|
![]() its a myisam table. reads are virtually 0 overhead for how often a pvp slaying happens, especially compared to the trillions of database calls happening constantly. I did it so they could be added in realtime without recompiling and resetting the server, but it could be hardcoded array (mt_rand might have the same overhead realistically)
oh the original line with <> was a copypasta of null's code | ||
Last edited by GODPARTICLE; 05-17-2013 at 09:52 AM..
|
|
#198
|
|||
|
![]() plz send updates to my icq = 7050258
| ||
|
#199
|
|||||
|
![]() Quote:
Quote:
__________________
| ||||
|
#200
|
|||
|
![]() when will this be ready by?!?!!
| ||
|
![]() |
|
|