Teleport system for Premium User only

10/18/2016 11:09 raventh1984#1
Hi elitepvpers,

i am trying to make the teleport system for users that has an premium status.

For testing purposes i did not create the premium system yet.
Instead i am using IK3_ARMOREFFECTCHANGE

so

CWndTeleporter::OnInitialUpdate(void)

if(g_pPlayer->HasBuffByIk3(IK3_ARMOREFFECTCHANGE)
{
Destroy();
}

it simply means when the player has the buff IK3_ARMOREFFECTCHANGE
it wont open CWndTeleporter.

However when i have the buff active it still opens up the Teleporter.

I also tried it for testing with SM_MODE SM_MAX_HP

So
if(g_pPlayer->IsSMMode(SM_MAX_HP))
Destroy();

Also that one isn't working.
10/18/2016 11:32 alfredico#2
BOOL CWndTeleporter::Process()
{
if (g_pPlayer->HasBuffByIk3(IK3_ARMOREFFECTCHANGE))
Destroy();

return TRUE;
}
10/18/2016 11:43 Nortix#3
if(g_pPlayer->IsSMMode(SM_MAX_HP))
Destroy();

Did you to activate Bull Hamstern?
10/18/2016 12:04 raventh1984#4
Thanks but it isnt working

Even with SM_MODE it isnt working.

If i do this
CWndTeleporter::OnInitialUpdate(void)

if(g_pPlayer->GetWorld()->GetID() == 1)
Destroy();

Then its working like it should be.

Yes Nortix i activated the Bull
10/18/2016 12:07 Nortix#5
Just tested it, works finde with the code above.
10/18/2016 12:25 raventh1984#6
Hmm that is strange at my side it aint working.
So it could be that my scroll is different then yours.

II_CHR_FOO_COO_BULLHAMS IDS_PROPITEM_TXT_004472 1 999 IK1_EFFECT IK2_KEEP IK3_SCROLL

Could it be because its IK2_KEEP instead of IK2_BUFF2?
10/18/2016 12:32 Nortix#7
II_CHR_FOO_COO_BULLHAMS IDS_PROPITEM_TXT_004472 1 99 IK1_CHARGED IK2_FOOD IK3_COOKING


Try other SM modes and have a look if its working with other items. You'll find them in _ADDSMMODE()
10/18/2016 12:36 raventh1984#8
Quote:
Originally Posted by Nortix View Post
II_CHR_FOO_COO_BULLHAMS IDS_PROPITEM_TXT_004472 1 99 IK1_CHARGED IK2_FOOD IK3_COOKING


Try other SM modes and have a look if its working with other items. You'll find them in _ADDSMMODE()

Ok used SM_BANK15
When its on the teleport aint working.

So thanks i know now where to look and how to script it.

First things first need to have some sleep :D.

Thanks again.