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

Tile msg! also want remove hp!

Ates.tr

Im back
Joined
Nov 11, 2007
Messages
1,046
Reaction score
2
Location
Sweden
Will this work ? also im wondering if this function work doPlayerRemoveHealth or doCreatureRemoveHealth something like that ? doRemoveHealth?

anyway script:

PHP:
-- Script by Ates
-- Start --
function onStepIn(cid, item, position, fromPosition)

if item.uid == 25001 then
if isPlayer(cid) then

doCreatureSay(cid, "Muhahahaha", TALKTYPE_ORANGE_1)
doMoveCreature(cid, NORTH)

elseif item.uid == 25002
if isPlayer(cid) then

doCreatureSay(cid, "Muhahahahahahaha", TALKTYPE_ORANGE_1)
doMoveCreature(cid, SOUTH)

elseif item.uid == 25003
if isPlayer(cid) then

doCreatureSay(cid, "Buhahahaha", TALKTYPE_ORANGE_1)
doMoveCreature(cid, EAST)

elseif item.uid == 25004
if isPlayer(cid) then

doCreatureSay(cid, "Wahauhahahaha", TALKTYPE_ORANGE_1)
doMoveCreature(cid, LEFT)
end
return TRUE
end
end
end
end
end
end
end
-- End --

will this script work liek i said ?
 
Code:
-- Script by Ates
-- Start --
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) then
		if item.uid == 25001 then
			doCreatureSay(cid, "Muhahahaha", TALKTYPE_ORANGE_1)
			doMoveCreature(cid, NORTH)
		elseif item.uid == 25002 then
			doCreatureSay(cid, "Muhahahahahahaha", TALKTYPE_ORANGE_1)
			doMoveCreature(cid, SOUTH)
		elseif item.uid == 25003 then
			doCreatureSay(cid, "Buhahahaha", TALKTYPE_ORANGE_1)
			doMoveCreature(cid, EAST)
		elseif item.uid == 25004 then
			doCreatureSay(cid, "Wahauhahahaha", TALKTYPE_ORANGE_1)
			doMoveCreature(cid, WEST)
		end
	end
	return TRUE
end
-- End --
 
Code:
-- Script by Ates
-- Start --
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) then
		if item.uid == 25001 then
			doCreatureSay(cid, "Muhahahaha", TALKTYPE_ORANGE_1)
			doMoveCreature(cid, NORTH)
		elseif item.uid == 25002 then
			doCreatureSay(cid, "Muhahahahahahaha", TALKTYPE_ORANGE_1)
			doMoveCreature(cid, SOUTH)
		elseif item.uid == 25003 then
			doCreatureSay(cid, "Buhahahaha", TALKTYPE_ORANGE_1)
			doMoveCreature(cid, EAST)
		elseif item.uid == 25004 then
			doCreatureSay(cid, "Wahauhahahaha", TALKTYPE_ORANGE_1)
			doMoveCreature(cid, WEST)
		end
	end
	return TRUE
end
-- End --

Tack brushan ;)
 
Problems in your script.

PHP:
if isPlayer(cid) then
change to
PHP:
if isPlayer(cid) == TRUE then

And it is
PHP:
doCreatureAddHealth(cid, -100)
or how much you want;)

@edit
Why are you using if item.uid? you should do that in the movements.xml
PHP:
<movevent event="StepIn" uniqueid="the uid" script="script_name.lua" />
 
Hi.

Colandus nobz cant script........ i make shorrtttt

Code:
-- Script by Ates
-- Start --
local config = {
	[25001] = { "Muahahahaha", NORTH, 200 },
	[25002] = { "Muahagasgashahaha", SOUTH, 200 },
	[25003] = { "Buahahahaha", EAST, 200 },
	[25004] = { "Wuahahahaha", WEST, 200 }
}
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) == TRUE then
		for action, variable in pairs(config) do
			if item.actionid == action then
				doCreatureSay(cid, variable[1], TALKTYPE_ORANGE_1)
				doMoveCreature(cid, variable[2])
				doCreatureAddHealth(cid, - variable[3])
			end
		end
		return TRUE
	end
end
-- End --

pls nop kill if nao work ;/////
 
Problems in your script.

PHP:
if isPlayer(cid) then
change to
PHP:
if isPlayer(cid) == TRUE then

And it is
PHP:
doCreatureAddHealth(cid, -100)
or how much you want;)

@edit
Why are you using if item.uid? you should do that in the movements.xml
PHP:
<movevent event="StepIn" uniqueid="the uid" script="script_name.lua" />

Eh you not helped :S he already said all that...

edit: thanks for doCreatureAddHealth(cid, -100) ....
 
Hi.

Colandus nobz cant script........ i make shorrtttt

Code:
-- Script by Ates
-- Start --
local config = {
	[25001] = { "Muahahahaha", NORTH, 200 },
	[25002] = { "Muahagasgashahaha", SOUTH, 200 },
	[25003] = { "Buahahahaha", EAST, 200 },
	[25004] = { "Wuahahahaha", WEST, 200 }
}
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) == TRUE then
		for action, variable in pairs(config) do
			if item.actionid == action then
				doCreatureSay(cid, variable[1], TALKTYPE_ORANGE_1)
				doMoveCreature(cid, variable[2])
				doCreatureAddHealth(cid, - variable[3])
			end
		end
		return TRUE
	end
end
-- End --

pls nop kill if nao work ;/////

thx
 
Hi.

Colandus nobz cant script........ i make shorrtttt

Code:
-- Script by Ates
-- Start --
local config = {
	[25001] = { "Muahahahaha", NORTH, 200 },
	[25002] = { "Muahagasgashahaha", SOUTH, 200 },
	[25003] = { "Buahahahaha", EAST, 200 },
	[25004] = { "Wuahahahaha", WEST, 200 }
}
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) == TRUE then
		for action, variable in pairs(config) do
			if item.actionid == action then
				doCreatureSay(cid, variable[1], TALKTYPE_ORANGE_1)
				doMoveCreature(cid, variable[2])
				doCreatureAddHealth(cid, - variable[3])
			end
		end
		return TRUE
	end
end
-- End --

pls nop kill if nao work ;/////

well i thought he'd add stuff to the script, as this was just "test" i'd suppose he'd do more than just move creature so I let it be :)

as you know, people are complaining for getting too much help so i should stay low ;)
 
well i thought he'd add stuff to the script, as this was just "test" i'd suppose he'd do more than just move creature so I let it be :)

as you know, people are complaining for getting too much help so i should stay low ;)

Yup.


> Now I will get reported/there will be a complaint made about me not writing full sentence ;////////////
 
Back
Top