Writing my own script |
Kamiityx2 « Citoyen » 1596554880000
| 2 | ||
What are the base and body for building the script? I cant find detailed thread or scripts that might show me properly how its done. If anyone responds, I'll be thankful! ^^ |
Bhvana « Censeur » 1596557520000
| 0 | ||
What do you mean by "script?" |
Kamiityx2 « Citoyen » 1596564780000
| 0 | ||
The lua code like this one I tried to create, reading other scripts: admin = "Kamiityx2#4813" local map = <C><P /><Z><S><S H="46" X="401" o="390a00" L="810" Y="382" P="0,0,0.3,0.2,0,0,0,0" T="12" /></S><D><P C="fbb16b" X="0" P="0,0" T="34" Y="0" /></D><O /></Z></C> local spawnSpots local spawnSpotsN local spawnSpots local spawnSpotsN function main() tfm.exec.disableAutoNewGame() tfm.exec.disableAfkDeath() tfm.exec.disableAutoShaman() tfm.exec.newGame(map) end function eventNewGame() local xml = tfm.get.room.xmlMapInfo.xml local xmldom = parseXml(xml) |
0 | ||
I think it could be better to post on Questions & Answers thread. You can also ask in Fifty Shades of Lua Discord server. |
Kamiityx2 « Citoyen » 1596568140000
| 0 | ||
Ori a dit : I'll ask for sure |
0 | ||
Hi! You could also check out this thread, which has a Lua resources section, and the official Lua documentation thread. Since this is a thread created to ask a question and does not have much discussion value, it will be locked. Good luck on your script! |