• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Action script

felek02

New Member
Joined
Feb 4, 2011
Messages
80
Reaction score
1
elo mam taki skrypt
Code:
function onUse(cid, item, frompos, item2, topos)
local yal1 = {x=2090, y=235, z=7, stackpos=1}
local yal2 = {x=2090, y=237, z=7, stackpos=1}
local yal3 = {x=2092, y=235, z=7, stackpos=1}
local yal4 = {x=2092, y=237, z=7, stackpos=1}

local getyal1 = getThingfromPos(yal1)
local getyal2 = getThingfromPos(yal2)
local getyal3 = getThingfromPos(yal3)
local getyal4 = getThingfromPos(yal4)

	if(item.uid == 5378 and item.itemid == 9825 and getyal1.itemid == 9778  and getyal2.itemid == 9776  and getyal3.itemid == 9777 and 

getyal4.itemid == 2542) then

		doRemoveItem(getyal1.uid, 1)
		doRemoveItem(getyal2.uid, 1)
		doRemoveItem(getyal3.uid, 1)
		doRemoveItem(getyal4.uid, 1)
		doCreateItem(8905,1,{x=2092, y=233, z=7})
		doTransformItem(item.uid, item.itemid+1)
	elseif(item.uid == 5378 and item.itemid == 9826) then
		doTransformItem(item.uid, item.itemid-1)
	else
		doSendCancel(cid, "Sorry not possible.")
	end
return TRUE
end

wczoraj jeszcze mi dzialal a dzisiaj cos mu sie znudzilo mam taki blad w silniku
Code:
[11/03/2011 07:51:29] [Error - Action Interface] 
[11/03/2011 07:51:29] data/actions/scripts/Felekot/yh.lua:onUse
[11/03/2011 07:51:29] Description: 
[11/03/2011 07:51:29] data/actions/scripts/Felekot/yh.lua:22: attempt to call global 'doSendCancel' (a nil value)
[11/03/2011 07:51:29] stack traceback:
[11/03/2011 07:51:29] 	data/actions/scripts/Felekot/yh.lua:22: in function <data/actions/scripts/Felekot/yh.lua:1>

wie ktos od czego to moze byc ??
 
ok dzieki choc blad byl w samym srypcie to dzieki bo chociaz mi bledy w sinku nie wywalaja ;)
 
Back
Top