• 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:
You have to tell me in detail in a very understandable english or swedish grammer excatly what it is that you want.


Good GRAMMAR :>
 
First of, I am glad that there is someone who runs a free service, so let me be the first one to make advantage of this (A), if it's not a hard thing to script.

Here we go:
Basically what I need is some kind of transformation system, when I put item1 x:100 y:100 z:7 item2 x:101 y:100 z:7 and item3 x:102 y:100 z:7(just an sample) and I pull a lever those items transforms in another item on x:103 y:100 z:7, and then that I can add more transformation options myself in that script.

I hope you got enough info and it is not to hard to understand.

Thanks in advance~
 
First of, I am glad that there is someone who runs a free service, so let me be the first one to make advantage of this (A), if it's not a hard thing to script.

Here we go:
Basically what I need is some kind of transformation system, when I put item1 x:100 y:100 z:7 item2 x:101 y:100 z:7 and item3 x:102 y:100 z:7(just an sample) and I pull a lever those items transforms in another item on x:103 y:100 z:7, and then that I can add more transformation options myself in that script.

I hope you got enough info and it is not to hard to understand.

Thanks in advance~

So those three items will turn into 1 item is what you mean?
 
try this.

Lua:
local pos = {x = 100, y = 100, z = 7}, {x = 101, y = 100, z = 7}, {x = 102, y = 100, z = 7},
local transformItemTile = {x = 103, y = 100, z = 7},
local item1, item2, item3 = [2476, 2147, 2160],
local newItem = [7000]
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1945 then
		if getThingFromPos(pos[1]).actionid, getThingFromPos(pos[2]).actionid, getThingFromPos(pos[3]).actionid = 9991, 9992, 9993 then
			if getTileItemById(pos[1], item1) and getTileItemById(pos[2], item2) and getTileItemById(pos[3], item3) then
				doTransformItem(item.uid, 1946, 1)
				doPlayerRemoveItem(cid, item1, 1)
				doPlayerRemoveItem(cid, item2, 1)
				doPlayerRemoveItem(cid, item3, 10)
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have created an item!.")
				doCreateItem(newItem, 1, transformItemTile)
				doTransformItem(item.uid, 1945, 1)
			else
				doPlayerSendCancel(cid, "The required items have not been placed on the tile.")
			end
		end
	end
	return true
end
 
Last edited:
try this.

Lua:
local pos = {x = 100, y = 100, z = 7}, {x = 101, y = 100, z = 7}, {x = 102, y = 100, z = 7}
local transformItemTile = {x = 103, y = 100, z = 7},
local item1, item2, item3 = [2476, 2147, 2159*10]
local newItem = [7000]

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1945 then
		if pos[1].actionid, pos[2].actionid, pos[3].actionid = 9991, 9992, 9993 then
			if getTileItemById(pos[1], item1) and getTileItemById(pos[2], item2) and getTileItemById(pos[3], item3) then
				doTransformItem(item.uid, 1946, 1)
				doPlayerRemoveItem(cid, item1, 1)
				doPlayerRemoveItem(cid, item2, 1)
				doPlayerRemoveItem(cid, item3, 10)
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have created an item!.")
				doCreateItem(newItem, 1, transformItemTile)
				doTransformItem(item.uid, 1945, 1)
			end
		end
	end
	return true
end

Shouldn't you use "getThingFromPos(pos[1]).actionid"etc ?
 
Ok i want this script then if 4 players in pos 1,pos 2,pos 3,pos 4 and like 10cc is pos x,pos x,pos x,pos x then they pull the lever then items removed and they get teleported to pos 1,pos 2,pos 3,pos 4.
 
Ok i want this script then if 4 players in pos 1,pos 2,pos 3,pos 4 and like 10cc is pos x,pos x,pos x,pos x then they pull the lever then items removed and they get teleported to pos 1,pos 2,pos 3,pos 4.

Lua:
local beforePos = {x = 100, y = 100, z = 7}, {x = 101, y = 100, z = 7}, {x = 102, y = 100, z = 7}, {x = 102, y = 100, z = 7},
local afterPos = {x = 100, y = 100, z = 7}, {x = 101, y = 100, z = 7}, {x = 102, y = 100, z = 7}, {x = 102, y = 100, z = 7}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1945 and item.actionid == 9998 then
		if getPlayerItemCount(beforePos[1], 2160, 10) and getPlayerItemCount(beforePos[2], 2160, 10) and getPlayerItemCount(beforePos[3], 2160, 10) and getPlayerItemCount(beforePos[4], 2160, 10) then
			if(getCreaturePosition(beforePos[1]) and getCreaturePosition(beforePos[2]) and getCreaturePosition(beforePos[3]) and getCreaturePosition(beforePos4)) then
				doTransformItem(item.uid, 1946, 1)
				doPlayerRemoveItem(beforePos[1], 2160, 10)
				doPlayerRemoveItem(beforePos[2], 2160, 10)
				doPlayerRemoveItem(beforePos[3], 2160, 10)
				doPlayerRemoveItem(beforePos[4], 2160, 10)
				doTeleportThing(beforePos[1], afterPos[1], false)
				doTeleportThing(beforePos[2], afterPos[2], false)
				doTeleportThing(beforePos[3], afterPos[3], false)
				doTeleportThing(beforePos[4], afterPos[4], false)
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have successfully been teleported!.")
				doTransformItem(item.uid, 1945, 1)
			else
				doPlayerSendCancel(cid, "Everybody must stand on the tiles.")
			end
		else
			doPlayerSendCancel(cid, "Someone does not have 10 crystal coins.")
		end
	end
	return true
end

I made the script so they have the 10 crystal coins on their characters when pulling the lever
 
y u asked me to post it here then? .__.


TT__TT Okay...
Then i guess i have a request, im looking for a working stamina refill rev 3777:3

btw... you know about a pet system working in that rev or you can make one?:3

Lua:
function onLogout(cid)
	for os.time("%S", 60*3) do
		doPlayerAddStamina(cid, 1)		
	end
end

If that doesn't work then it has to be done in source, also I can't make you a pet system, it's too big. But there are already existing pet systems on the forums :)
 
Ok thanks:D

Theres a rain system?

Btw, sorry i didn't said correctly, im looking for a action, a item that refills stamina:$
 
Back
Top