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

Pomoc

Status
Not open for further replies.

Aleh

Active Member
Joined
Jan 9, 2009
Messages
1,228
Reaction score
39
Location
Rzeszów
Mam taki skrypt i nie wiem co jest w nim zle. Jak pociagne za dzwignie to wyskakuje mi ze Nikt tam nie stoi choc na prawde stoi..
local config = {
playerPos = {x=996, y=998, z=5},
damageHP = -10000
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pPos = getPlayerPosition(cid)
if item.itemid == 1945 then
doPlayerAddHealth(cid, config.damageHP)
doSendMagicEffect(pPos, 28)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "massage")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Nikt Tam nie stoi")
return TURE
end
end
Skrypt polega na tym ze jak pociagniesz za wajche zabija tego co stoi na x y z...
Pomocy!!!!!!!!!!!!!
 
Code:
local config = {
playerPos = {x=996, y=998, z=5},
damageHP = -10000
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local [B]playerPos[/B] = getPlayerPosition(cid)
if item.itemid == 1945 then
doPlayerAddHealth(cid, config.damageHP)
doSendMagicEffect([B]playerPos[/B], 28)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "massage")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Nikt Tam nie stoi")
return TURE
end
end
pogrubione błędy ;)
 
Code:
local config = {
playerPos = {x=996, y=998, z=5},
damageHP = -10000
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local [B]playerPos[/B] = getPlayerPosition(cid)
if item.itemid == 1945 then
doPlayerAddHealth(cid, config.damageHP)
doSendMagicEffect([B]playerPos[/B], 28)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "massage")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Nikt Tam nie stoi")
return TURE
end
end
pogrubione błędy ;)

zmieniles tylko nazwe zmiennej i co Ci to dalo?
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local cipa = item.itemid
	local kurwa = {x = , y = , z = }
	local kutas = getTopCreature(kurwa)

	if (cipa == 1945) then
		doTransformItem(item.uid, cipa + 1)
	else
		if (isPlayer(kutas.uid)) then
			doCreatureAddHealth(kutas.uid, -getCreatureHealth(kutas.uid), TRUE)
			doTransformItem(item.uid, cipa - 1)
		end
	end
	return true
end
 
Chojrak jak twoje zmienne sa zawsze takie to twoje pliki tworza istna kamasutre :)
 
Status
Not open for further replies.
Back
Top