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

Function in need.

Flyckks

New Member
Joined
Jul 28, 2012
Messages
23
Reaction score
1
Location
Brazil
Hello my dears...

I would like to ask you guys for a function that I need:


I need a Function in C++ to be use in lua Scripts. I'm using a TFS 0.3.6

The function have only 2 parameters:

- summonId : Its the id for the player's summon.

- destPos: Its the position where the summon will be sent.


I think its not a hard function, but cannot do this.
 
To a system that i will do for him, but i need the function that moves the summon to the specified pos ;D
I think its not hard to make this function, if you can do it, please, help us.
 
data/lib/050-function.lua

paste this at down:

Lua:
function doTeleportSummon(summonId, DestPos)
doTeleportThing(summonId, DestPos)
end

but why you need to complicate and remember this function when you can use like this?

doTeleportThing(getCreatureSummons(cid)[1], {x=100, y=100, z=100})
 
that's not the same position lol
The player use an iten (with "use with" function) and then he mark the position (the "toPos" from action)
The summon walks to this position.
Got it?
 
Back
Top