• 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!

[help]naruto jutsu shadow clones

spiderspr

New Member
Joined
Oct 1, 2008
Messages
6
Reaction score
0
naruto jutsu, that creates a copy of the player, I wanted a copy had looktype, hp and mp, clothes, nick ...
can someone make a script, I think it is doing in c + +.
I'll be very grateful if someone help me.
 
You should explain more...

He (and I) wants a spell, that if you say "Shadow Clone Jutsu", 5 clones will appear with the exact same hp, mana, looktype and the same nick.
 
This script and Kratos in c + +, so that Rost ... someone can resolve this error?

std::string shadowclone = "clone"; // create a monster.xml setup all raw datas and give him same file name and ingame name as here, it will be changed when its going to be summoned.
uint16_t soulCost = 0; //if you want the spell to cost soul, change this
uint16_t spellmana = 100; //add here how much mana u want the spell to cost.
if(text == "Bunshin no Jutsu")
{
if(player->getMana() >= spellmana)
{
player->addManaSpent(spellmana);
if(!player->hasFlag(PlayerFlag_HasInfiniteMana)){
player->changeMana(-(int32_t)spellmana);
}
}

if(!player->hasFlag(PlayerFlag_HasInfiniteSoul)){
if(soulCost > 0){
player->changeSoul(-(int32_t)soulCost);
}
}


Monster* monster = Monster::createMonster(shadowclone);
if(!monster)
return false;
MonsterType* mType = NULL;
mon = g_monsters.getMonsterType(shadowclone);
if(!mon)
return false;

mon->health = player->getHealth();
mon->maxhealth = player->getMaxHealth();
mon->name = player->getName();
mon->base_speed = player->getStepSpeed();
mon->outfit.lookType = player->defaultOutfit.lookType;
mon->outfit.lookHead = player->defaultOutfit.lookHead;
mon->outfit.lookBody = player->defaultOutfit.lookBody;
mon->outfit.lookLegs = player->defaultOutfit.lookLegs;
mon->outfit.lookFeet = player->defaultOutfit.lookFeet;


if(g_game.placeCreature(monster, creature->getPosition()))
g_game.addMagicEffect(creature->getPosition(), CONST_ME_TELEPORT);
else
return false;

player->addSummon(monster);



}
the error and this:
Compilador: Default compiler
Building Makefile: "C:\Documents and Settings\Administrador\Meus documentos\DaniloKNO\nsso5.0\Futura NssO\Source\dev-cpp\Makefile.win"
Executando make...
make.exe -f "C:\Documents and Settings\Administrador\Meus documentos\DaniloKNO\nsso5.0\Futura NssO\Source\dev-cpp\Makefile.win" all
g++.exe -c ../game.cpp -o obj//game.o -I"include" -D__USE_MYSQL__ -D__USE_SQLITE__ -fexpensive-optimizations -O1

../game.cpp: In member function `bool Game:layerSay(uint32_t, uint16_t, SpeakClasses, const std::string&, const std::string&)':
../game.cpp:3276: error: `g_monsters' was not declared in this scope
../game.cpp:3281: error: 'class MonsterType' has no member named 'maxhealth'

../game.cpp:3291: error: `g_game' was not declared in this scope
../game.cpp:3291: error: `creature' was not declared in this scope

make.exe: *** [obj//game.o] Error 1

Execução terminada
 
To copy the nick isn't that simple. I mean, when I did that there was no way to do that in Lua, now I don't know...
Maybe i can search on my old hard disk for this code and release...
 
To copy the nick isn't that simple. I mean, when I did that there was no way to do that in Lua, now I don't know...
Maybe i can search on my old hard disk for this code and release...

plz!! oversearch
I have seen this working in a ot
 
@up
in this thread we want the clone's name to be the same as player's via source editing
 
Back
Top