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

FragReward scripters please look

pawlacz741

New Member
Joined
Jan 23, 2009
Messages
90
Reaction score
2
Hello

I need frag reward for TFS 0.2.7.

I have one but it not working, no errors on console... nothing

Have somebody this script?
 
give me the script and i will help you out fixing it.... probably it is just an error in the script much faster than scripting it from the hell begining!
 
test this
Script by Cikotitan
LUA:
function onKill(cid, target, lastHit)
    if isPlayer(target) and lastHit then
        doPlayerAddItem(cid, 4850, 1) <-- 4850 id item take, 1 how much are take you 1 or 2 etc..
    end
    return true
end

creaturescripts.xml
LUA:
registerCreatureEvent(cid, "reward")
 
Code:
function onDeath(cid, corpse, killer)
	if isPlayer(killer) == TRUE then
		doPlayerSendTextMessage(killer, MESSAGE_STATUS_CONSOLE_ORANGE, 'You killed ' .. getCreatureName(cid) .. '!')
		doSendMagicEffect(getThingPos(killer), CONST_ME_MAGIC_BLUE)
		doPlayerAddItem(killer, 2151, 1)
		doSetItemSpecialDescription(doPlayerAddItem(killer, 5944, 1), 'This is the heart of ' .. getCreatureName(cid) .. ' killed at level ' .. getPlayerLevel(cid) .. ' by ' .. getCreatureName(killer) .. '.')
	end
	return TRUE
end

^.-
 
Nothing working : D

Idk what is wrong ; /
No errors on console / no actions in game.

Somebody have idea?

function onKill(cid, target, lastHit)
if isPlayer(target) and lastHit then
doPlayerAddItem(cid, 4850, 1)
end
return true
end

-

<event type="kill" name="reward" event="script" value="reward.lua"/>
registerCreatureEvent(cid, "reward")


EDIT WORKING- BUT CAN SOMEBODY MAKE ANTYMC FRAGREWARD? U KNOW WHAT I MEAN
 
Last edited:
Back
Top