Jump to content
  • 0

Not working OnClaimReward:


Get Backers

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.02
  • Content Count:  70
  • Reputation:   0
  • Joined:  11/23/20
  • Last Seen:  

Hi, guys can i request fixed this my script not working OnClaimReward:

 

    set #hourly_timer, gettimetick(2) + 3600;
    addtimer .countdown *1000, strnpcinfo(NPC_NAME) +"::OnClaimReward";
    close2;
    cutin "",255;
    end;
OnClaimReward:
    dispbottom "You have been online 1 hour. Talk to Hourly Reward NPC to get your rewards!";

 

I have a hourly reward npc how to do if in about an hour will appear in the chat box example if it is close to one hour someone will appear in the chat box  say "You have been online 1 hour. Talk to Hourly Reward NPC to get your rewards!"

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

@Get Backers Seems like you've got the right idea... It's strnpcinfo(0) not NPC_NAME though.

 

-    script    LoginRewards#1    -1,{
OnPCLoginEvent:
    addtimer 3600000, strnpcinfo(0)+"::OnClaimReward";
    end;
OnClaimReward:
    dispbottom "You have been online 1 hour. Talk to Hourly Reward NPC to get your rewards!";
}

 

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...