Advertisement
Guest User

Untitled

a guest
Oct 24th, 2015
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.78 KB | None | 0 0
  1.     void Priest_Open(Character *character, PacketReader &reader)
  2.     {
  3.         short id = reader.GetShort();
  4.  
  5.         UTIL_FOREACH(character->map->npcs, npc)
  6.         {
  7.             if (npc->index == id && npc->Data().type == ENF::Priest)
  8.             {
  9.                 character->npc = npc;
  10.                 character->npc_type = ENF::Priest;
  11.  
  12.                 if (!character->partner.empty())
  13.                 {
  14.                     ///here
  15.                    
  16.                     break;
  17.                 }
  18.  
  19.                 if (character->fiance.empty())
  20.                 {
  21.                     //npc->ShowDialog("You have no partner! Please buy a wedding approval from law bob or if you're already married, a divorce.");
  22.                     character->StatusMsg("You have no fiance! Please buy a wedding approval from law bob.");
  23.                     break;
  24.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement