i have an idea that for a script that when ever a player logs out there person become an npc in there hometown and just walks around like a normal citizen. if this is possible and anyone would like to help develop this please pm me.
i have an idea that for a script that when ever a player logs out there person become an npc in there hometown and just walks around like a normal citizen. if this is possible and anyone would like to help develop this please pm me.
Well, then you would need to have the players information saved x times per day. Then the info would be transfered to that npc that belongs to the specific player, and then spawn the mob.
Or, if it is possible, you could trun the player into a npc.
I'm sorry I can't help you with this, but I wish you good luck![]()
May the Force be with you
--2d wasnt here--
Last edited by Greed; 02-25-2009 at 06:43 PM.
As I thought...
May the Force be with you
Is possible but would be extremly hard and could be very very unstable/laggy unless coded well. Would also need to be done in C++ unless a new function library is added to Lua.
Basically,
On player leave world
spawn creature (id for player) at coords
then
player enter world
despawn npc
on player create insert into creature_names + proto
Just that sort of layout.
Could be done with some core edits and a C++ script.
Last edited by stoneharry; 02-25-2009 at 12:10 PM.
Lol.
If you have 1500 players on your server Orgrimmar would be like OMG
does anyone want to try and take a stab at this and help me?
Actually this could be considered possible,
Logging Out.
Before logging out, save all the player's gear and stats.
Add a new logout hook.
Crack "SMSG_MIRROR_IMG"(Something like this, forgot the real name) and implement it.
Use and send the data in that packet and make a new npc.
Add random waypoints to it through its AI.
Win!?
Logging in
Check and see if an NPC exists with your name.(Or add a boolean value like bHasClone and check it) (EDIT: Can't check the GUID because the NPC would have a different one duh :P)
If theres an npc that matches its, and delete it.
Win!?
And also, you could check to see if the player keeps logs out to spam that opcode being sent to the client and disconnect/ban him. And IMO, I'd make it like a random event with like a 10% chance of occuring to prevent server-lag.
EDIT: Its SMSG_MIRRORIMAGE_DATA
Last edited by Clain; 02-25-2009 at 06:54 PM.
Go leanr all about lua in a guide an teach yourself that, THEN go learn a guide about c++ teach yourself bout that...