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

Need help with a couple of things!

furstwin

New Member
Joined
Aug 9, 2007
Messages
486
Reaction score
1
Location
Sweden
Ahoi, thanks for reading!
Rep+ to the one who help me!

Im using [8.7] The Forgotten Server v0.2.9 (Mystic Spirit)

First:
SOLVED

Second:
SOLVED


Regards,
Furstwin.
 
Last edited:
Try to make it 1497

here is my script
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
Try to make it 1497

here is my script
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

Working, thanks! rep+
 
How do I make so no characters drop items
Lua:
function onKill(cid, target, lastHit)
if isPlayer(cid) then
   if isPlayer(target) then
      doSetCreatureDropLoot(target, false)
   end
end
return true
end
 
Ahoi, thanks for reading!
Rep+ to the one who help me!

Im using [8.7] The Forgotten Server v0.2.9 (Mystic Spirit)

First:
SOLVED

Second:
How do I make so no characters drop items, skills and so on?
(Im making a PVP ot.)


Regards,
Furstwin.

In your database, go to the specified characters and change "save = 1" to "save = 0"
 
What, why?
Players will still have their dead bodies, why wouldnt they? lol

Iirc, the way the sources are coded means that the utilization of that function prevents everything from happening regarding loot starting with the creation of a corpse; therefore, no body is created upon death.



Maybe I'm thinking of another function?
 
Iirc, the way the sources are coded means that the utilization of that function prevents everything from happening regarding loot starting with the creation of a corpse; therefore, no body is created upon death.



Maybe I'm thinking of another function?

You are probably thinking of a false returning onPrepareDead?
 
Last edited:
Back
Top