Jump to content

  •  

Photo

Want to make script Comeback is real npc


  • Please log in to reply
1 reply to this topic

#1 dikapramantya

dikapramantya

    Advanced Member

  • Members
  • PipPipPip
  • 76 posts

Posted 13 August 2016 - 02:34 PM

I want to make npc like this illustration :

 

Player with last login 1 june 2016 or less can get reward from NPC Comeback is real .

if last login more than 1 june (2 june, 3 june, and next) is can't access the npc

 

what command should i use ?


banner%20cilik_zps08ivzjuo.png

 

www.uniteragnarok.com

High Rate Server | 250/70 | Pra Renewal | Customable Extended Super Novice | Balancing System


#2 morpolche

morpolche

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 14 August 2016 - 07:04 AM

If you're asking what to do (I think) the best way would be to query the login SQL table

 

There's a column for last login date

query_sql

 

 

then make a bit of code to check the current date

gettimestr

https://github.com/H...pt_commands.txt


Edited by morpolche, 14 August 2016 - 07:18 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 44 user(s)