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

[C++] Getting 1 soul after kill 1 monster

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
671
Hello.
Im using tfs 0.3.6pl1
and i need to remove soul system and add something like this:
- I can only get soul by kill monster
- I got one soul point by kill one monster

how2 do that ?
what line in cpp ?
 
LUA:
function onKill(cid, target, lastHit)
	if isPlayer(cid) and isMonster(target) then
		doPlayerAddSoul(cid, 1)
		doSendMagicEffect(getThingPos(target), CONST_ME_YALAHARIGHOST)
	end
	return true
end

register in login.lua
 
Back
Top