• 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!

Troll Scripter's Free Script Service.

Troll Scripter

Gesior is my God.
Joined
Jan 29, 2012
Messages
145
Reaction score
4
Request scripts here and I'll make them for you if it's not ALL too much work to be done.

  • I am scripting with the latest TFS 0.4 functions, so it is not recommended to ask for a script if you are using below 0.4.
  • I don't edit existing scripts because I don't want to go trough other people's code. I only go trough my own, so if you make a request I'll make it from scratch.
  • You have to tell me in detail excatly what it is that you want.
  • I don't make spells, NPC's or PHP.

Understand that a script can take minutes or hours to make from the time that you've made a post. It all depends on my activity.

P.S: If you're a scripter, don't create scripts in my thread. This is my thread and I make the scripts here :)
 
Last edited:
Can you make, something similar at Zombie event, but the only diference "automatic"
I'll explain you:
1- At 3:00, the event starts with a message "We need 10 players to start the event!
Then, the Item that blocks the TP, will disapear.
When the 10 players get in, the event start, if there's no 10 ppl, they get teleported back to temple. "Sorry there's no sufficient players enought".
If the event starts, make's a x monsters in x places (configurable).
_______________________________________________Extra.

You can make it, if the monster kill's you you win a prize and you get teleported "and Show the name of the winner".

Or, if the monster touch you you get teleported, but if you kill it then 2 new monsters apears.

Hope u understand me and not to be difficult for you.
 
[Error - LuaInterface::loadFile] data/actions/scripts/other/randomitem.lua:25: '=' expected near '>='
[15:48:49.681] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/other/randomitem.lua)
[15:48:49.682] data/actions/scripts/other/randomitem.lua:25: '=' expected near '>='


:S
 
Can you make, something similar at Zombie event, but the only diference "automatic"
I'll explain you:
1- At 3:00, the event starts with a message "We need 10 players to start the event!
Then, the Item that blocks the TP, will disapear.
When the 10 players get in, the event start, if there's no 10 ppl, they get teleported back to temple. "Sorry there's no sufficient players enought".
If the event starts, make's a x monsters in x places (configurable).
_______________________________________________Extra.

You can make it, if the monster kill's you you win a prize and you get teleported "and Show the name of the winner".

Or, if the monster touch you you get teleported, but if you kill it then 2 new monsters apears.

Hope u understand me and not to be difficult for you.

go read topic again, script is too long lol.
 
no error if I reload actions but I get this error if I use the item

[Error - Action Interface]
[16:6:57.208] data/actions/scripts/other/randomitem.lua:eek:nUse
[16:6:57.208] Description:
[16:6:57.209] data/actions/scripts/other/randomitem.lua:21: attempt to index upvalue 'lowChance' (a number value)
[16:6:57.209] stack traceback:
[16:6:57.209] data/actions/scripts/other/randomitem.lua:21: in function <data/actions/scripts/other/randomitem.lua:20>
 
explain how you want it to work
[ESENTIAL]
At 3:00 pm starts a event or with interval, no problem.
Then it removes a wall that block tp or tp apears.
The event start with a x monsters, and you kill them.

[EXTRA]
A message "We need 10 ppl for the event"
When there's 10 ppl, the tp gets blocked again, you have to kill monsters until the last survivor, gets a redward.
 
Can you help mi with this ? NPC travel in trade with time teleport place but trade don't open and place with time waiting don't tp player to next location. If you can test this on your server and u see console bug.

Code:
local keywordHandler = KeywordHandler:new() 
local npcHandler = NpcHandler:new(keywordHandler) 
NpcSystem.parseParameters(npcHandler) 
local talkState = {} 
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
function onCreatureAppear(cid)              npcHandler:onCreatureAppear(cid)            end
function onCreatureDisappear(cid)           npcHandler:onCreatureDisappear(cid)         end
function onCreatureSay(cid, type, msg)            npcHandler:onCreatureSay(cid, type, msg)        end
function onThink()                  npcHandler:onThink()                    end
function greetCallback(cid)
talkState[talkUser] = 0
return true
end
function creatureSayCallback(cid, type, msg) 
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
	        if(not npcHandler:isFocused(cid)) then  
	                return false  
	        end 
local trade = {
	[B]{id=2113, buy=230, pos1, name="Mars"},	
        {id=2003, buy=250, pos2, name="Earth"},	[/B]		  
			  }
local items = {}  
    for _, item in ipairs(trade) do
		[B]items[item.id] = {pos1 = item.pos, item_id = item.id, buyPrice = item.buy, subType = 0, realName = item.name}
		items[item.id] = {pos2 = item.pos, item_id = item.id, buyPrice = item.buy, subType = 0, realName = item.name}[/B]
	end 
	local onBuy = function(cid, item, subType, amount, ignoreCap, inBackpacks)
		doPlayerRemoveMoney(cid, items[item].buyPrice)  
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE , "You fly to the"..items[item].realName..".")
		doSendMagicEffect(getCreaturePosition(cid), 29)
	end
    if msgcontains(msg, 'travel') or msgcontains(msg, 'fly') then  
			openShopWindow(cid, trade, onBuy, onSell) 
			selfSay("Click on your location.", cid) 
    end
[B]local pos1 = {x=2140,y=1148,z=9}
doTeleportThing(cid,pos1)
addEvent(teleport, 5 * 1000, cid)
end
function teleport(cid)
doTeleportThing(cid,mars)
mars = {x=1000, y=1000, z=7} 
end
local pos2 = {x=2170,y=1158,z=7}
doTeleportThing(cid,pos2)
addEvent(teleport1, 5 * 1000, cid)
end
function teleport1(cid)
doTeleportThing(cid,earth)
earth = {x=1000, y=1000, z=7} [/B]
return true
end
npcHandler:setMessage(MESSAGE_WALKAWAY, "Pipipipi!")
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) 
npcHandler:addModule(FocusModule:new())
 
Last edited:
i wana make formula of this spell

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DROWNDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 2)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -150, -1.0, -150)

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DROWNDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 2)

function onGetFormulaValues(cid, level, maglevel)
	local min = (level * 1)  --- add the minimum you want outside parenthesis it will be added last. So for lvl 0 and ml 0, min damage = 750
	local max = (level * 1) --- here 1000 is the minimum max value
	return -min, -max
end

setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

local function onCastSpell1(parameters)
    doCombat(parameters.cid, combat, parameters.var)
end

local function onCastSpell2(parameters)
    doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell3(parameters)
    doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell4(parameters)
    doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell5(parameters)
    doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell6(parameters)
    doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell7(parameters)
    doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell8(parameters)
    doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell9(parameters)
    doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell10(parameters)
    doCombat(parameters.cid, combat1, parameters.var)
end

function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 0, parameters)
addEvent(onCastSpell2, 2000, parameters)
addEvent(onCastSpell3, 4000, parameters)
addEvent(onCastSpell4, 6000, parameters)
addEvent(onCastSpell5, 8000, parameters)
addEvent(onCastSpell6, 10000, parameters)
addEvent(onCastSpell7, 12000, parameters)
addEvent(onCastSpell8, 14000, parameters)
addEvent(onCastSpell9, 16000, parameters)
addEvent(onCastSpell10, 18000, parameters)


return TRUE
end

i wana delete this type of formula
Code:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -150, -1.0, -150)

and add this type to local combate too
Code:
function onGetFormulaValues(cid, level, maglevel)
	local min = (level * 1)  --- add the minimum you want outside parenthesis it will be added last. So for lvl 0 and ml 0, min damage = 750
	local max = (level * 1) --- here 1000 is the minimum max value
	return -min, -max
end

cuz when i added 2 formula functions it says
Code:
Warning: [CallBack::loadCallBack] Event onGetFormulaValues not found
 
Hello, i need code that wont take any charges from runes if used by player with 12345 storgeid, can u help me ? :D

i found that in spell.cpp
Code:
if(result)
    {
        Spell::postSpell(player);
        if(hasCharges && item && g_config.getBool(ConfigManager::REMOVE_RUNE_CHARGES))
            g_game.transformItem(item, item->getID(), std::max((int32_t)0, ((int32_t)item->getItemCount()) - 1));
    }
 
Hello,
Could i get a Prestige script which when you say "!rebirth" yo prestige and it says in your name when you look at them. also is it possible for it to say like this:
19:34 You see [Name] (Level 717217). He is a [Prestige Here] elite knight.
and not:
19:34 You see Epic Have a 2 Rebirth's. Have a 3 Rebirth's. Have a 4 Rebirth's. Have a 5 Rebirth's. Have a 6 Rebirth's. Have a 7 Rebirth's. Have a 8 Rebirth's. Have a 9 Rebirth's. Have a 10 Rebirth's. Have a 11 Rebirth's. (Level 717217). He is an elite knight.
Thank and hope you understand what i mean :)
 
Back
Top