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

Few requests

breadmaker

New Member
Joined
Jul 16, 2010
Messages
160
Reaction score
3
Hello i have few small requests:
(If anyone can do it)

TFS 0.3.5pl1
-------------------------------------

1) Item: 10495, after click on item, we have message:
The demon has been summoned​
and send magic effect = "40", item transform to item: 4950 + spawn monster: Demon
AFTER 5 minutes item 4950 decay to 10495 (respawn)

-------------------------------------

2) [CreatureScript] Wall damaging (idea):
If we hit in wall (i made monster), the wall destroying:
- On 10.000 HP it got outfit: 6281
- On 5.000 HP it got outfit: 6283
wallsg.png


-------------------------------------

3) [CreatureScript] After kill monster named: Orc, send magic effect = "40" and spawn monster: Orc Warrior.
 
Last edited:
that gave me an awesome idea, thank you :)

but sadly I don't have time to make a script for you =(
if I by any chance get time later tonight I'll try to mix something up for you :)
 
The second one:
- If the wall got 10k hp the outfit of wall changing to: 6281, next:
- If the wall got 5k hp the outfit of wall changing to: 6283.

This give you visual effect about destroying wall..

Can you make me these scripts ?
Please... anyone ?
 
@up
ofc it is

Here is the script:
Put this in the monster file:
Code:
<script>
     		<event name="wall"/>
	</script>
And this in creaturescripts.xml:
Code:
<event type="think" name="wall" event="script" value="wall.lua"/>
and this in wall.lua
Code:
local outfits = {
	[10000] = 6281,
	[5000] = 6283
}

function onThink(cid, interval)
	for health, outfit in pairs(outfits) do
		if getCreatureHealth(cid) < health and getCreatureOutfit(cid).lookType ~= outfit then
			doSetItemOutfit(cid, outfit, -1)
		end		
	end
	return true
end

you can add new outfits:
[10000] = 6281,
[5000] = 6283
health - outfit
 
Thanks Summ repped+, how about this:

1) Item: 10495, after click on item, we have message:
The demon has been summoned​
and send magic effect = "40", item transform to item: 4950 + spawn monster: Demon
AFTER 5 minutes item 4950 decay to 10495 (respawn)

-------------------------------------

3) [CreatureScript] After kill monster named: Orc, send magic effect = "40" and spawn monster: Orc Warrior.
 
in creature event, regestire event name in login.lua
LUA:
function onKill(cid,target)
if isPlayer(cid) and getCreatureName(target) == "Orc" then
   doSendMagicEffect(getThingPos(cid,40)
  doSummonCreature("Orc Warrior",pos)
end
return true
end
 
First request:
Register in actions.xml
Add the normal itemid:
Code:
<action itemid="xxxx" event="script" value="req.lua"/>
Code:
local new = xxxx  -- the item item of the transformed item
local monster = "Demon"

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if doCreateMonster(monster, toPosition) then
		doTransformItem(item.uid, 6096, 1)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The "..monster.." has been summoned.")
		doSendMagicEffect(getThingPos(cid), 40)
		doDecayItem(item.uid)
	else
		doPlayerSendCancel(cid, monster .. " could not be summoned.")
	end
	return true
end
and in items.xml goto the item that it is when transformed and add:
Code:
		<attribute key="decayTo" value="FROM_ITEMID" />
		<attribute key="duration" value="300" />

Rep++ again..
 
Back
Top