[EN] Module Team

Status
Hilo no abierto para más respuestas.

Soulzone

Developer
Staff Member
Admin
Lua Crew
The Module Team is a group of developers who create minigames for the community to enjoy playing, by using the Module API.

Members of the team have access to a few additional functions to create modules, some of which are more resource intensive on the server than other functions so are limited.

Some of the features available to the module team exclusively are:
Access to a dedicated chat channel to talk with the rest of the members of the team directly.
The ability to load scripts outside of the tribe house.
Saving information to a database, for things like persistent leaderboards.
Saving statistics for each user, allowing persistent stats for your minigame.
Displaying custom images in modules.
addImage function.

The full list of team members is kept private as some members wish to remain anonymous or not handle whispers, however the following people listed are public members of the team, you may contact them for help developing your module, getting your module made official, or ask them any other questions you may have.
  • Sevenops
  • Soulzone
  • Sphygmus
 
Last edited:

Killstrike

Active Mouse
Dude what image do work for this command :/ the images in imgur like the one below doesn't work so what image do miceforce support

tfm.exec.addImage(imageName, target, xPosition, yPosition,targetPlayer)
Effect: Displays an image. Returns the ID of the image.
Arguments:
  • imageName (string) - The file name of the image, including the extension. This only works with images uploaded to imgur.com. For example, "1Sg9gfU.png" would be valid as it corresponds with the image hosted at http://i.imgur.com/1Sg9gfU.png
  • target (string) - The part of the map, or dynamic object that the image will be attached to. Each target has a special character that's used as a prefix for the ID or name attached to.

    • #mobileID - A shaman object. The ID can be obtained through eventSummoningEnd(), tfm.get.room.objectList, or returned from tfm.exec.addShamanObject().
    • $playerName - A player in the room, their mouse graphic will stay and this image will be appended relative to it.
    • %playerName - A player in the room, their mouse graphic will be removed and this image will replace it completely.
    • ?backgroundLayerDepth -
    • _groundLayerDepth -
    • !foregroundLayerDepth -
    • &fixedLayerDepth -
  • xPosition (integer) - The X coordinate that the top-left of the image will be displayed at relative to the target.
  • yPosition (integer) - The Y coordinate that the top-left of the image will be displayed at relative to the target.
  • targetPlayer (string) - The player to display the image to. If this argument is nil, the image will be displayed to all players in the room.
Example:
tfm.exec.addImage("1Sg9gfU.png","%Dark_nlght",-21,-30)
 

Cryaotic

¡Ándale! ¡Ándale!

Killstrike

Active Mouse
how do i remove image?
XD
tfm.exec.removeImage(id)
doesn't work -,-
i am trying to remove
tfm.exec.addImage("b909577051d111e78ef9109836a51f7d.png","%"..name.."", -32, -50)
 

Ant1leve

Mouse
how do i remove image?
XD
tfm.exec.removeImage(id)
doesn't work -,-
i am trying to remove
tfm.exec.addImage("b909577051d111e78ef9109836a51f7d.png","%"..name.."", -32, -50)
To add
Code:
local image1 = tfm.exec.addImage("b909577051d111e78ef9109836a51f7d.png","%"..name, -32, -50)
To remove
Code:
tfm.exec.removeImage(image1)
 

Ant1leve

Mouse
doesn't work
it says bad argument, numberexpected got nil

so how do i remove previous image like the village so
when i change my body to another image it doesn't do like this
http://prntscr.com/fk83qg
Well, it works for me but there is another method to do that. You can simply change the image like this:

1- You create the image variable:
Code:
local image1 = ''
2- You make the image appear in a player through a function. Example:
Code:
function eventChatCommand(name, cmd)
    if cmd == "naruto" then
        image1 = tfm.exec.addImage("b909577051d111e78ef9109836a51f7d.png", "%"..name, -32, -50)
    end
end
3- Now the image1 variable have your own image, and for change you just put another image instead of the before image. You can do it in the same function:
Code:
function eventChatCommand(name, cmd)
    if cmd == "naruto" then
        image1 = tfm.exec.addImage("b909577051d111e78ef9109836a51f7d.png", "%"..name, -32, -50)
    elseif cmd == "changeimg1" then
        image1 = tfm.exec.addImage("another image here...", "%"..name, -32, -50)
    end
end
(It's just an example you can change the image)

To remove the image you can do the same thing I said in the last post I did.

Please, ask for scripts or help in this thread next time. Our messages can be considered as spam here because they are beyond the theme of the thread.
 

Omaraldin

Little Mouse
Well, it works for me but there is another method to do that. You can simply change the image like this:

1- You create the image variable:
Code:
local image1 = ''
2- You make the image appear in a player through a function. Example:
Code:
function eventChatCommand(name, cmd)
    if cmd == "naruto" then
        image1 = tfm.exec.addImage("b909577051d111e78ef9109836a51f7d.png", "%"..name, -32, -50)
    end
end
3- Now the image1 variable have your own image, and for change you just put another image instead of the before image. You can do it in the same function:
Code:
function eventChatCommand(name, cmd)
    if cmd == "naruto" then
        image1 = tfm.exec.addImage("b909577051d111e78ef9109836a51f7d.png", "%"..name, -32, -50)
    elseif cmd == "changeimg1" then
        image1 = tfm.exec.addImage("another image here...", "%"..name, -32, -50)
    end
end
(It's just an example you can change the image)

To remove the image you can do the same thing I said in the last post I did.

Please, ask for scripts or help in this thread next time. Our messages can be considered as spam here because they are beyond the theme of the thread.
but where i can upload image ?
 

Dudugz

Little Mouse
How can I be a member of the moon team? I'm a great moon programmer and I even helped the khedive.
 

Dudugz

Little Mouse
I agree new programmers means improvement in minigames and events and faster creation of minigames and events.
 
Last edited:
Status
Hilo no abierto para más respuestas.
Top
"Dev-TR" theme by Soulzone