this code does is reset health and mana cd useful for pvp :) http://pastebin.com/P0Nhs2Ky
faiver Esteemed Member Jul 14, 2013 #1 this code does is reset health and mana cd useful for pvp http://pastebin.com/P0Nhs2Ky
Parranoia Insane Member Jul 14, 2013 #2 Code: winner->GetSession()->SendNotification("You just defeated %s! in a duel!", looser->GetName()); Code: looser->GetSession()->SendNotification("%s defeated you in a duel!", winner->GetName()); Those two lines will cause the server to crash. Use GetName().c_str()
Code: winner->GetSession()->SendNotification("You just defeated %s! in a duel!", looser->GetName()); Code: looser->GetSession()->SendNotification("%s defeated you in a duel!", winner->GetName()); Those two lines will cause the server to crash. Use GetName().c_str()
faiver Esteemed Member Jul 16, 2013 #4 this deletion. and made a better one if you liked: ( note: Parranoia thanks for valuing my work