HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
The domain www.kitopen.com will expire on 2018-08-17. Update your bookmarks to point at http://kito.forumotion.com/
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 How to prevent spawn critters?

Go down 
AuthorMessage
DarkHeta

avatar

Game username : DarkHeta
Server : Eternal Time
Female Posts : 77
Join date : 2016-01-18
Age : 18
Location : Russia

PostSubject: How to prevent spawn critters?   Thu Nov 08, 2018 6:48 pm

For example I have NPC-creatures, other creatures and limit 200.
How to make spawn only ONE NPC-creature of different types?

Imagine the spawn list of random map:

NPC_Connor
NPC_zzz
NPC_123
fish
fish
fish
fish
.
.
.
fish

and so on
Back to top Go down
https://vk.com/eternaltimenewserver
Tigg

avatar

Game username : Tigg
Server : Impressive Title by Tigg
Female Posts : 143
Join date : 2017-08-01
Age : 34
Location : Austria

PostSubject: Re: How to prevent spawn critters?   Thu Nov 08, 2018 7:51 pm

I would love to know that too.
I tried plwying arround with numbers but either way theres too much NPC's or none at all.
Imagined that npc characters would be better placed in maps which wont have any other critters.
Back to top Go down
http://www.tiggcreations.com
DarkHeta

avatar

Game username : DarkHeta
Server : Eternal Time
Female Posts : 77
Join date : 2016-01-18
Age : 18
Location : Russia

PostSubject: Re: How to prevent spawn critters?   Thu Nov 08, 2018 8:17 pm

Tigg wrote:

Imagined that npc characters would be better placed in maps which wont have any other critters.

This is not interesting in my case x'D
Back to top Go down
https://vk.com/eternaltimenewserver
Hyper
Admin
avatar

Game username : Hyper
Server : Azoptaos
Male Posts : 560
Join date : 2014-02-09
Age : 20

PostSubject: Re: How to prevent spawn critters?   Thu Nov 08, 2018 9:55 pm

you need to modify the code, theres no way to do it without having a single limit right now. i just loop through the critter list whenever a critter is told to spawn and return from the function if the critter already exists

________________________________
i can code you things
Back to top Go down
http://azoptaos.boards.net/
DarkHeta

avatar

Game username : DarkHeta
Server : Eternal Time
Female Posts : 77
Join date : 2016-01-18
Age : 18
Location : Russia

PostSubject: Re: How to prevent spawn critters?   Fri Nov 09, 2018 6:57 am

Hyper wrote:
you need to modify the code, theres no way to do it without having a single limit right now. i just loop through the critter list whenever a critter is told to spawn and return from the function if the critter already exists

Did you write a function that checks critters?
Is this function in the original KITO Sourse?
Back to top Go down
https://vk.com/eternaltimenewserver
Hyper
Admin
avatar

Game username : Hyper
Server : Azoptaos
Male Posts : 560
Join date : 2014-02-09
Age : 20

PostSubject: Re: How to prevent spawn critters?   Fri Nov 09, 2018 7:08 am

i didnt make a function but you could if you want. i just added a for loop in createCritter

________________________________
i can code you things
Back to top Go down
http://azoptaos.boards.net/
DarkHeta

avatar

Game username : DarkHeta
Server : Eternal Time
Female Posts : 77
Join date : 2016-01-18
Age : 18
Location : Russia

PostSubject: Re: How to prevent spawn critters?   Fri Nov 09, 2018 7:40 am

Hyper wrote:
i didnt make a function but you could if you want. i just added a for loop in createCritter

Did you write loop function in this function?

Back to top Go down
https://vk.com/eternaltimenewserver
Hyper
Admin
avatar

Game username : Hyper
Server : Azoptaos
Male Posts : 560
Join date : 2014-02-09
Age : 20

PostSubject: Re: How to prevent spawn critters?   Fri Nov 09, 2018 7:52 am

the one in critter manager i think

________________________________
i can code you things
Back to top Go down
http://azoptaos.boards.net/
DarkHeta

avatar

Game username : DarkHeta
Server : Eternal Time
Female Posts : 77
Join date : 2016-01-18
Age : 18
Location : Russia

PostSubject: Re: How to prevent spawn critters?   Fri Nov 09, 2018 8:02 am

Hyper wrote:
the one in critter manager i think

is it?

Back to top Go down
https://vk.com/eternaltimenewserver
Hyper
Admin
avatar

Game username : Hyper
Server : Azoptaos
Male Posts : 560
Join date : 2014-02-09
Age : 20

PostSubject: Re: How to prevent spawn critters?   Fri Nov 09, 2018 8:08 am

the one above it

________________________________
i can code you things
Back to top Go down
http://azoptaos.boards.net/
DarkHeta

avatar

Game username : DarkHeta
Server : Eternal Time
Female Posts : 77
Join date : 2016-01-18
Age : 18
Location : Russia

PostSubject: Re: How to prevent spawn critters?   Fri Nov 09, 2018 8:16 am

Hyper wrote:
the one above it
Well.. Should i to create const String or something?

Because I tried to return 0, when Type in list = type of the NPC. But NPCs not spawn at all
Back to top Go down
https://vk.com/eternaltimenewserver
Hyper
Admin
avatar

Game username : Hyper
Server : Azoptaos
Male Posts : 560
Join date : 2014-02-09
Age : 20

PostSubject: Re: How to prevent spawn critters?   Fri Nov 09, 2018 8:34 am

just return the critter that already exists

________________________________
i can code you things
Back to top Go down
http://azoptaos.boards.net/
DarkHeta

avatar

Game username : DarkHeta
Server : Eternal Time
Female Posts : 77
Join date : 2016-01-18
Age : 18
Location : Russia

PostSubject: Re: How to prevent spawn critters?   Fri Nov 09, 2018 9:29 am

Hyper wrote:
just return the critter that already exists
Immodest question. How to understand that creature already exists?
Back to top Go down
https://vk.com/eternaltimenewserver
Hyper
Admin
avatar

Game username : Hyper
Server : Azoptaos
Male Posts : 560
Join date : 2014-02-09
Age : 20

PostSubject: Re: How to prevent spawn critters?   Fri Nov 09, 2018 3:22 pm

im not sure what youre asking? you loop through the existing critter list. if a critter on the list already exists and you dont want another to spawn, you return the one that already exists

________________________________
i can code you things
Back to top Go down
http://azoptaos.boards.net/
Sponsored content




PostSubject: Re: How to prevent spawn critters?   

Back to top Go down
 
How to prevent spawn critters?
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: SUPPORT :: Support-
Jump to: