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

Help.

Elaney

Member
Joined
Jan 1, 2009
Messages
1,561
Reaction score
12
Location
Sweden
As i want to improve my scripting but my head is kinda emty atm. Can you post ideas 'easy' - 'medium' - 'hard' ideas of scripts i can make too see how good my scripting are.


Elaney
 
Easy

Make a lever by which a bridge of more than one sqm can dissappear and appear again.

Medium

Make the thing of easy with tables.

Hard

IDK? Something like Svargrond Arena? 0o
 
Code:
function onUse(cid, item, frompos, item2, topos)

	local switchUniqueID = 13001
	local switchID = 1945
	local switch2ID = 1946
	local bridge = {x=727, y=544, z=7, stackpos=0}
	local bridgs = {x=727, y=545, z=7, stackpos=0}
	
	local brids = getThingfromPos(bridge)
	local bride = getThingfromPos(bridgs)

	if item.uid == switchUniqueID and item.itemid == switchID and brids.itemid == 448 and bride.itemid == 448 then
			doRemoveItem(brids.uid,1)
			doRemoveItem(bride.uid,1)
			doTransformItem(item.uid, 1946)
	elseif item.uid == switchUniqueID and item.itemid == switch2ID then
			doCreateItem(448, bridge)
			doCreateItem(448, bridgs)
			doTransformItem(item.uid, 1945)
	else doPlayerSendCancel(cid,"Your not that strong man.")
end
	return 1
end

Didnt get the medium part :P
 
Back
Top