• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Clonning player function! Need help.

Hello, I've made(with friend) a code which clone player(name, speed, outfit etc.), but there is a bug and first clone is without correct speed, outfit. Next clones are ok, but when another character make a clone, it have outfit and speed from previous character ;/.

You would have to do to the first clone was save after saving another clones...
 
man, you can not bump your thread before 24 hours, it's against the rules
you did it twice yesterday, you do it twice today again
 
i guess its like

<instant name="Shadow Clone" words="kage bushin" lvl="10" mana="20" aggressive="0" exhaustion="1000" needlearn="0" function="clone"/>
 
Wait... i think... ;P

Edit...
It's not easier to do in lua?

bool InstantSpell::ClonePlayer(const InstantSpell* spell, Creature* creature, const std::string& param)

replace:

bool InstantSpell::ClonePlayer(InstantSpell* spell, Creature* creature, const std::string& param)

Check it.
 
Last edited:
yes, i've done it in lua before, you can search for the old release
and it still sucks, this only rocks when clone monsters have the same name of the player, and player attr ofc
 
Back
Top