Quote:13-07-2006, Nazghul
- Added: CURFOLLOWER, MAXFOLLOWER with no built-in functionality. These variables
change values on a status gump.
for ages all we got is this, it's 2 basic values but not the entire system. My ideia is finish this engine and get it fully working - and hardcoded.
Why hardcoded if it can be done using scripts? Because the idea is make it working for everyone just setting simple properties on chars/npcs, without needing a much more complex scripted engine which will need many tags, events, funcions, etc. I can make a custom script myself on my server, but the idea is make it working for the entire community, not just for me.
The engine is simple and can be easily made
------------------------------------------------
The basics / Whats needed:
1)
on/off setting on sphere.ini (EF_PetSlots already exists, but there's no use since the engine is incomplete)
2)
CURFOLLOWER / MAXFOLLOWER (nothing to do here, properties already exists)
3) new CONTROLSLOTS property on NPCs (to determine how many CURFOLLOWER slots will raise/decrease). If not set on NPC, it wont use any slot.
4) OPTIONAL: new CURFOLLOWER.0, CURFOLLOWER.1 [...] returning pet UID [read-only]. Not really needed, but will be a huge improvement to allow ppl create custom scripts like a custom dialog showing all pets the player has, a custom spell/function to run on all pets of this player, etc. It's like a reverse <OWNER> function.
The fully working engine:
1) counter will raise when:
-unshrink some creature (@DClick on t_figurine)
-summon a creature using some spell (@Start on spells)
-get a pet transfered to you
-buy a pet on a npc (animal trainer, etc)
-retrieve a pet stabled on NPC
2) counter will decrease when:
-pet get removed (@Destroy)(this already includes pet die/shrink/stable I think)
-pet get untamed (@PetDesert, "all release" command or when owner attack it)
-pet get transfered to someone
3) prevent the actions (on 1) if it would exceed the MAXFOLLOWER limit