Jump to content
  • 0

Hourly Points


Aeia

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   1
  • Joined:  09/18/12
  • Last Seen:  

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   1
  • Joined:  09/18/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   1
  • Joined:  09/18/12
  • Last Seen:  

There, got it.

Thank you so much sir Emistry, working fine!

Solved

Link to comment
Share on other sites

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.

×
×
  • Create New...