Jump to content
  • 0
Get Backers

Not working OnClaimReward:

Question

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

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.