Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pet system
Author Message
t9king
Apprentice
*

Posts: 10
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Jan 2017
Reputation: 0



Post: #1
Pet system
How can I write a set of animal age script? For example, if I tame this horse, it will show the survival time immediately. If you don't ride the system for a while, it will automatically clean it up
03-28-2020 10:45 PM
Find all posts by this user Like Post Quote this message in a reply
jdchixin
Apprentice
*

Posts: 49
Likes Given: 9
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #2
RE: Pet system
it's easy, you can test pet's age use "ONTRIGGER=TIMER"

like this

ONTRIGGER=TIMER
if <cont.age> > 36000 //about 10 hours
cont.remove
return 1
else
timer=60
return 1
endif
04-17-2020 08:39 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

This forum uses Lukasz Tkacz MyBB addons.