puzzle?sure, i'm sorry for request something from them...
then I want to request some games, puzzle, memory, bomberman
i dont wanna make scripts that someone's already thought of or made
this thread isnt for support, it's for requestsHey there!
I got an problem aswell on my tfs 1.2 server.
I can not /reload any scripts.
I have on accounts at type: 5.
And group_id on characters is at : 6. Tried 5 aswell, 4 aswell.
I still can't reload anything. And yes, During changing I was offline.
What's wrong? Please help me...
wewthis thread isnt for support, it's for requests
this thread isnt for support, it's for requests
Make a support thread instead. LolBro I understand but im sure you can help me out with this aswell...
Come on
i don't understand what you're trying to sayand one npc change Gold nuggets x items? and if you want can roll to improve this item with extra gold nuggets?(can broken roll)
hi xeraphus can you give me this 2 scripts for tfs 1.2 please
i need a script that a chest give you a mount
and the other is the script of lottery.
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getStorageValue(88888) == -1 then
player:addMount(MOUNT ID HERE)
player:setStorageValue(88888, 1)
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, 'You have been awarded with a new mount.')
end
return true
end
<action actionid="65355" script="mount.lua"/>
local rewards = {
{itemid = 2160, count = 100},
{itemid = 2148, count = 30}
}
function onThink(interval, lastExecution)
local players = Game.getPlayers()
if #players > 0 then
while true do
local player = players[math.random(#players)]
if not player:hasAccess() and player:getAccountType() == ACCOUNT_TYPE_NORMAL then
local reward = rewards[#rewards]
local item = player:addItem(reward.itemid, math.random(reward.count))
local itemName = item:getCount() > 1 and item:getPluralName() or item:getName()
Game.broadcastMessage(('[LOTTERY] %s has won %d %s, next lottery in 30 minutes'):format(player:getName(), item:getCount(), itemName), MESSAGE_STATUS_CONSOLE_ORANGE)
break
end
end
return true
end
<globalevent event="think" interval="1800000" script="lottery.lua"/>
createItemOnTile.luaCan you make a talckaction that creates an item on the sqm im looking too, like /r but a creating one
function onSay(player, words, param)
if param == '' then
return true
end
local split = (param):split(',')
local item, subtype = split[1], split[2]
if item then
local nextPos = player:getPosition():getNextPosition(player:getDirection())
Game.createItem(tonumber(item) or ItemType(item):getId(), subtype and tonumber(subtype) or 1, nextPos)
nextPos:sendMagicEffect(CONST_ME_MAGIC_BLUE)
else
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Usage: /xi itemid, count')
end
return true
end
<talkaction words="/xi" separator=" " script="createItemOnTile.lua"/>
[Warning - Event::checkScript] Can not load script: scripts/lottery.lua
data/globalevents/scripts/lottery.lua:20: 'end' expected (to close 'function' at line 6) near '<eof>'
local rewards = {
{itemid = 2160, count = 100},
{itemid = 24774, count = 5}
}
function onThink(interval, lastExecution)
local players = Game.getPlayers()
if #players > 0 then
while true do
local player = players[math.random(#players)]
if not player:hasAccess() and player:getAccountType() == ACCOUNT_TYPE_NORMAL then
local reward = rewards[#rewards]
local item = player:addItem(reward.itemid, math.random(reward.count))
local itemName = item:getCount() > 1 and item:getPluralName() or item:getName()
Game.broadcastMessage(('[LOTTERY] %s has won %d %s, next lottery in 30 minutes'):format(player:getName(), item:getCount(), itemName), MESSAGE_STATUS_CONSOLE_ORANGE)
break
end
end
return true
end
local rewards = {
{itemid = 2160, count = 100},
{itemid = 24774, count = 5}
}
function onThink(interval, lastExecution)
local players = Game.getPlayers()
if #players > 0 then
while true do
local player = players[math.random(#players)]
if not player:hasAccess() and player:getAccountType() == ACCOUNT_TYPE_NORMAL then
local reward = rewards[#rewards]
local item = player:addItem(reward.itemid, math.random(reward.count))
local itemName = item:getCount() > 1 and item:getPluralName() or item:getName()
Game.broadcastMessage(('[LOTTERY] %s has won %d %s, next lottery in 30 minutes'):format(player:getName(), item:getCount(), itemName), MESSAGE_STATUS_CONSOLE_ORANGE)
break
end
end
end
return true
end
i was thinking about addings no raids to the rules list but i didn't think anyone would ever request oneAutomatic raids for 1.3 with easy tables for setup...
With possibilities use in x day and x hour each boss... and each raid u can setup boss and monsters.
PS: Great job this iniciative
cant do this even with PlayernMoveItemI need a script that allows me to move unmovable items, like wall, counters etc