• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Drunk intensity is possible to know?

Code:
void Creature::onWalk(Direction& dir)
{
   if(!hasCondition(CONDITION_DRUNK))
       return;

   uint32_t r = random_range(0, 16);
   if(r > 4)
       return;

   switch(r)
   {
       case 0:
           dir = NORTH;
           break;
       case 1:
           dir = WEST;
           break;
       case 3:
           dir = SOUTH;
           break;
       case 4:
           dir = EAST;
           break;
   }

   g_game.internalCreatureSay(this, SPEAK_MONSTER_SAY, "Hicks!", isGhost());
}
It doesn't appear to have the drunk intensity levels as real Tibia does.
You'd have to create it yourself using lua functions, or edit your source to create the drunk intensity.
 
Code:
void Creature::onWalk(Direction& dir)
{
   if(!hasCondition(CONDITION_DRUNK))
       return;

   uint32_t r = random_range(0, 16);
   if(r > 4)
       return;

   switch(r)
   {
       case 0:
           dir = NORTH;
           break;
       case 1:
           dir = WEST;
           break;
       case 3:
           dir = SOUTH;
           break;
       case 4:
           dir = EAST;
           break;
   }

   g_game.internalCreatureSay(this, SPEAK_MONSTER_SAY, "Hicks!", isGhost());
}
It doesn't appear to have the drunk intensity levels as real Tibia does.
You'd have to create it yourself using lua functions, or edit your source to create the drunk intensity.
where put this?
 

Similar threads

Back
Top