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

Is this possible?

DestinationSer

@echo off
Joined
Mar 7, 2009
Messages
2,806
Solutions
1
Reaction score
676
Ok, Its hard to explain but i want a script that does like when you say the spell:
Exevo Con Defense it comes up a monster that is exactly like you. Your name is like Rolf then it comes like Rolf Summon.
The monster is gonna have your hp and it heals it full after each atk. Its not supposed to atk peoples.
The spell is gonna be for lvl 500k and gonna cost like 10kk mana.
Only 1 summon not 2
 
.
I found thing but you need to create new xml file on data/monsters/ called clone.xml and put this:
XML:
<?xml version="1.0" encoding="UTF-8"?> 
<monster name="Clone" nameDescription="a clone" race="undead" experience="0" speed="400" manacost="0"> 
<health now="1000000" max="100000"/> 
<look type="21" head="20" body="30" legs="40" feet="50" corpse="1397"/> 
<targetchange interval="50000" chance="0"/> 
<strategy attack="100" defense="0"/> 
<flags> 
<flag summonable="1"/> 
<flag attackable="1"/> 
<flag hostile="1"/> 
<flag illusionable="0"/> 
<flag convinceable="1"/> 
<flag pushable="0"/> 
<flag canpushitems="0"/> 
<flag canpushcreatures="0"/> 
<flag targetdistance="1"/> 
<flag staticattack="90"/> 
<flag runonhealth="0"/> 
</flags> 
<attacks> 
<attack name="melee" interval="1000" skill="3555" attack="35555"/> 
<attack name="arrow" interval="1000" chance="40" min="-2" max="-4"/> 
<attack name="throwing star" interval="1000" chance="500" min="-35555" max="-3555555"/> 
<attack name="throwing knife" interval="1000" chance="6000" min="-35555" max="-3555555"/> 
</attacks> 
<defenses armor="1" defense="5"/> 
<defense name="haste" interval="3000" chance="40"/> 
<defense name="light healing" interval="6000" chance="70" min="20" max="40"/> 
<immunities> 
<immunity physical="0"/> 
<immunity energy="0"/> 
<immunity fire="0"/> 
<immunity poison="0"/> 
<immunity lifedrain="1"/> 
<immunity paralyze="1"/> 
<immunity outfit="1"/> 
<immunity drunk="1"/> 
<immunity invisible="1"/> 
</immunities> 
<loot> 
</loot> 
</monster>

now on monsters.xml
XML:
<monster name="Clone" file="Clone/Clone.xml"/>

Now you go to spells/script create lua life and put:
LUA:
function onCastSpell(cid, var) 
----COPY PLAYER STATUS 
local playerpos = getPlayerPosition(cid) 
local cloth = getCreatureOutfit(cid) 
local health = getCreatureHealth(cid) 
local maxhealth = getCreatureMaxHealth(cid) 

----CLONE THE PLAYER 
local clone = doCreateMonster("clone", playerpos) 
doConvinceCreature(cid, clone)
setCreatureMaxHealth(clone, maxhealth) 
doCreatureAddHealth(clone, health) 
doSetCreatureOutfit(clone, cloth, -1) 
doSendMagicEffect(playerpos, 50) 
return true
end

now on spells.xml
XML:
<instant name="Clone kill" words="Clone spell" lvl="2500" params="1" exhaustion="1350" needlearn="0" script="clone.lua">
<vocation name="vocation to use" />
</instant>
 
Back
Top