Itutorial
Legendary OT User
- Joined
- Dec 23, 2014
- Messages
- 2,339
- Solutions
- 68
- Reaction score
- 1,023
This will allow you to spawn monsters up to 2sqm away from the position. Instead of the normal 1sqm.
data/lib/core/game.lua
Enjoy! If you want to check out my server and help test it to earn some donation points for: outfits, mounts, or VIP for access to more hunting areas come over to: legendsot.com
MODERATOR PLEASE CHANGE TITLE TO: Game.advancedCreateMonster(creature, position, [effect])
data/lib/core/game.lua
Lua:
function Game.advancedCreateMonster(name, position, effect)
local monster = nil
local positions = {
[1] = Position(position.x, position.y, position.z),
[2] = Position(position.x - 2, position.y - 2, position.z),
[3] = Position(position.x, position.y - 2, position.z),
[4] = Position(position.x + 2, position.y - 2, position.z),
[5] = Position(position.x + 2, position.y, position.z),
[6] = Position(position.x + 2, position.y + 2, position.z),
[7] = Position(position.x, position.y + 2, position.z),
[8] = Position(position.x - 2, position.y + 2, position.z),
[9] = Position(position.x - 2, position.y, position.z)
}
for i = 1, #positions do
monster = Game.createMonster(name, positions[i])
if monster then
if effect then
monster:getPosition():sendMagicEffect(effect)
end
return true
end
end
return false
end
Enjoy! If you want to check out my server and help test it to earn some donation points for: outfits, mounts, or VIP for access to more hunting areas come over to: legendsot.com
MODERATOR PLEASE CHANGE TITLE TO: Game.advancedCreateMonster(creature, position, [effect])
Attachments
-
show.png2.1 MB · Views: 105 · VirusTotal
Last edited: