• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

How to create tiles?

TheHax

New Member
Joined
Nov 21, 2007
Messages
9
Reaction score
0
Code:
Item::CreateItem(itemId, stackCount)

This one is used at doCreateItem() lua function
which is the function for create a tile?
 
doCreateItem() don't create tile?
What do you mind, saying "create tile"...
#add to empty, black, tile grass or something?

Say, what you want to do...
 
ground tile cannot be created by normal doCreateItem(), you can try putting some stuff from map loading here

Ahhh...
Sure this function can olny update tile or add item on tile...

I'm found it
Code:
		void setTile(uint16_t _x, uint16_t _y, uint16_t _z, Tile* newTile);
 
Ahhh...
Sure this function can olny update tile or add item on tile...
I'm talk about "doCrateItem" function...
Code:
void setTile(uint16_t _x, uint16_t _y, uint16_t _z, Tile* newTile);
This must work :)
 
I'm talk about "doCrateItem" function...
Code:
void setTile(uint16_t _x, uint16_t _y, uint16_t _z, Tile* newTile);
This must work :)

man, i want know if possible to make a tile without tile in map, example black tile empty tile. "in source edits".. :)
 
man, i want know if possible to make a tile without tile in map, example black tile empty tile. "in source edits".. :)

It must be possible but if map size is 10x10 and you create item on black tile[pos x>10 or y>10] you maybe have crash or somethig...
I don't know, this is dependent on your way to do that...
 
i want to force doCreateItem() create a item in blank/black tiles. It's i want. ^_^
example: i stay in solo floor "7".. and i stepin a certain tile and this tile have a action id to teleport me to up floor "6" and create a tile item in this floor to i stay.
example²: raid system make a monster to stepin a tile with action id to make a mass create item in a blank/black area inside map size, (create water, ship, monsters in ship and anothers graphics..)

I see that soon I will have to create a topic or send pvt..
 
Maybe you could create invisible tiles (ID: 460?) in map editor and then create the tiles you want on those invisible tiles
 
Last edited:
Back
Top