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

/cp, clone pokemon

el-king

New Member
Joined
Jun 5, 2015
Messages
78
Reaction score
3
Hello Otland
I Downloaded pokemon ot and i dont know how to clone pokemon.
 
Check your Talkactions.xml
i already checked it but i can send you it to see ok ?

Code:
<talkaction log="yes" words="/cp"  access="4" event="script" value="clonepoke.lua"/>
----------------------------------------------------------------------------------------------------------------------------
Code:
function onSay(cid, words, param, channel)
     local modeon = false
     if not isInArray(admserver, getCreatureName(cid)) then
         return false
     end
     if words == "/cloneall" then
         modeon = true
     end
     local player = getPlayerByName(param)
     if isPlayer(player) then
         local postv = {x = 1550,y = 591,z = 7}
         doCopyFile("data/npc/tvmatrix.xml","data/npc/tvmatrix"..getCreatureName(player)..".xml")
         doEditName("data/npc/tvmatrix"..getCreatureName(player)..".xml", ""..getCreatureName(player), "sxs")
         local tvclone = doCreateNpc("tvmatrix"..getCreatureName(player).."", postv, false)
         os.remove("data/npc/tvmatrix"..getCreatureName(player)..".xml")
         doSetCreatureOutfit(tvclone, getCreatureOutfit(player), -1)
         doTeleportThing(tvclone, getCreaturePosition(player))
         if modeon then
             setPlayerStorageValue(tvclone,2,1)
         end
         setPlayerStorageValue(tvclone,1,player)
         registerCreatureEvent(tvclone, "clone")
     else
         local postv = {x = 1550,y = 591,z = 7}
         doCopyFile("data/npc/tvmatrix.xml","data/npc/tvmatrix"..getCreatureName(cid)..".xml")
         doEditName("data/npc/tvmatrix"..getCreatureName(cid)..".xml", ""..getCreatureName(cid), "sxs")
         local tvclone = doCreateNpc("tvmatrix"..getCreatureName(cid).."", postv, false)
         os.remove("data/npc/tvmatrix"..getCreatureName(cid)..".xml")
         doSetCreatureOutfit(tvclone, getCreatureOutfit(cid), -1)
         doTeleportThing(tvclone, getCreaturePosition(cid))
         setPlayerStorageValue(tvclone,1,cid)
         if modeon then
             setPlayerStorageValue(tvclone,2,1)
         end
         registerCreatureEvent(tvclone, "clone")
     end
     return true
end
 
Last edited by a moderator:
Back
Top