Jump to content
  • 0

Hourly Points


Question

Posted (edited)

First, I do not have any idea if this topic was taken already.

Second, Thank you in advance if you would help me out.

Third, Sorry for disturbing.

So here it goes.

- script Hourly Points -1,{
OnTimer000:
if(checkvending() >= 0 || checkchatting() == 0)
{
stopnpctimer;
end;
}
OnTimer00000:
if( #minute == 0 )
{
set #minute,0;
set .@point_amt, 0;
set #KAFRAPOINTS, #KAFRAPOINTS + .@point_amt;
set #consecutive_hour, #consecutive_hour + 0;
}
if(#consecutive_hour == 0)
{
set #consecutive_hour, 0;
set .@point_amt, 0;
set #KAFRAPOINTS, #KAFRAPOINTS + .@point_amt;
}
end;
}

This script is account-based, stops the Hourly Points if the user is Vending/OnPub but I've edited 50% of that script because I will just request; how to have IN ONE NPC the following:

1. Hourly Points Checker (checks how many points a player has with his/her account)

2. Log In to Hourly Points System (which is hassle-free so players will no longer need to relog if they were vending, in a chat/pub, or idle - 'coz the system restricts a player from vending/pub)

3. A shop

Looking forward for replies.

Again, thank you very much.

Edited by Henesy

4 answers to this question

Recommended Posts

Posted (edited)

Thank you sir Emistry, I now have the checking of Hourly Points and Log-In, but the Shop isn't there. Hope you can give me a sample script of an Hourly Points Shop at the same time Hourly Points system itself in one NPC.

Edited by Henesy
Posted

find any dynamic shop script in the forum....and use it...

if you want it to combined into the shop script..

just copy the part for

OnPCLoginEvent:

paste the whole part into the dynamic shop script you got...

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...