![]() |
Levellist
It would help me if there was a list of levels I can access serverside. I'd need the variables levelscount and #L(...) to randomly place NPCs in certain levels (or to refill the fishrate).
#L(...) should be sorted alphabetically and #L(0) should not be the same as #L, but the first level in the order. Then I could do something like this: NPC Code: |
If the NPCs server level list was optomised it could be useful, but right now every level you ever put on the server, even if you took it off, is on the level list... so eventually you'd get a level that doesn't exsists. *shrugs*... I don't see why you'd really need it though, I'm sure there are other ways, maybe even more efficient ways of doing what you want.
|
Thats a pretty good idea, aslong as the levellist is up to date and all that. Are there any other ways to do this, other than using a string list of all the levels you'd need? Considering that there would be atleast a couple hundred indecies just for levels w/ fish, that wouldn't be very efficient at all...
|
Quote:
Quote:
And then there are the pets of Classic: fighting fish. Currently they are placed randomly when the player entered the level. Again, I don't like that it depends on when a player entered. Currently it is possible to cheat by standing at the border of two levels and pressing two keys at once, so you warp between the two levels very often. Before I wrote a fix for it you got 20 fighting fish in each level, now I did it so you can only get one fish in a certain amount of time. But one cheated fish is one cheated fish too much. Of course I could solve it using a string list, but imagine a stringlist containing 6000 levelnames.... |
Quote:
|
Quote:
And do you think I want to add the NPCs to all those levels? Of course, I could try to make the script converter place them, but the poor program has enough work to do. (Or more to the fact: the poor programmer). |
Quote:
|
Quote:
NPC Code: I was thinking of something like this: NPC Code: But still...the NPC Server would have to keep record of timeouts in 2000 levels or so. And I'd have to add this NPC to all of this levels. |
I think Kai meant have one NPC that sends a fish to each level listed...or something, somehow.
Terrible how all the NPCServ people look down on Classic people for not having a year or so experience |
Who care, you will leanr new stuff. And you will probably end up being better than everyone else, maybe!
|
Quote:
Question, though: What do these fish do? If you're worried about timeouts then how are you going to make them do anything other than float on the water's surface and do nothing? Quote:
|
Quote:
Quote:
I'll save how much time has past since the last time the level was refilled. This time will be used for calculating the current increase/chance. Something like this: (the used numbers are just examples. I have to calculate better values) NPC Code: |
Note to Com:
Fish system on Classic Dev NPC server, working at this very moment on the client interface to the probability system. EDIT: Serverside part of pole in NPC weapon "Unhackable Fish System" and controller NPC in DBNPC "Fish-Control" |
Quote:
Using a stringlist of all the levels with fish inside them? Er...I guess we'd nuke the limit of the string size sooner or later. |
| All times are GMT +2. The time now is 10:53 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.