Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[SGO] = Shotgun Only. My style

Skilled Illusionist
Joined
Dec 24, 2011
Messages
356
Reaction score
35
So here it is.

Find on ZCharacterItem
case MMCIP_PRIMARY:
case MMCIP_SECONDARY:
{
if (pDesc->m_nType.Ref() != MMIT_RANGE)
{
return false;
}
}
break;
Replace to :
case MMCIP_PRIMARY:
case MMCIP_SECONDARY:
{
if (pDesc->m_nType.Ref() != MMIT_RANGE)
{
return false;
}
if (strstr(strlwr((char*)ZGetGameClient()->GetStageName()), "[SGO]"))
{
MMatchWeaponType pItem = pDesc->m_nWeaponType.Ref();
if (pItem > 0 && pItem < 18)
{
if (pItem != MWT_SHOTGUN)
return false;
}
}
}
break;

Tell if there any problem for.

Thanks to Lib
Like button accept too here.
 
Skilled Illusionist
Joined
Dec 24, 2011
Messages
356
Reaction score
35
Only shotgun can give damage.
if you use Sawed Shotgun add sawed shotgun too.
 
Newbie Spellweaver
Joined
Aug 6, 2014
Messages
61
Reaction score
0
hmm u mean [sgo] = can't use rifle or sniper or something?
 
Last edited:
I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
.CPP o .H ?

in ZCharacterItem read please...



So here it is.

Find on ZCharacterItem

Replace to :


Tell if there any problem for.

Thanks to Lib
Like button accept too here.

PHP:
	case MMCIP_PRIMARY:
	case MMCIP_SECONDARY:
	{
		if (pDesc->m_nType.Ref() != MMIT_RANGE)
		{
			return false;
		}
		if ((strstr(ZGetGameClient()->GetStageName(), "[sgo]")) || (strstr(ZGetGameClient()->GetStageName(), "[SGO]")))
		{
			MMatchWeaponType pItem = pDesc->m_nWeaponType.Ref();
			if (pItem > 0 && pItem < 18)
			{
				if (pItem != MWT_SHOTGUN)
					return false;
			}
		}
	}
	break;
 
Back
Top