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

frag system script for 0.3.5, would this work?

Triggah

TrigCore
Joined
Aug 1, 2007
Messages
436
Reaction score
2
Lua:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)

	if isPlayer(mostDamageKiller) == TRUE then
		db.executeQuery("UPDATE `players` SET `frags` = `frags` + 1 WHERE `name` = '"..getCreatureName(lastHitKiller).."';")
	end
	if isPlayer(lastHitKiller) == TRUE and lastHitKiller ~= mostDamageKiller then
		db.executeQuery("UPDATE `players` SET `frags` = `frags` + 1 WHERE `name` = '"..getCreatureName(mostDamageKiller).."';")
	end
	return TRUE
end
and in sql i have
Lua:
ALTER TABLE `players` ADD `points` INT(32) NOT NULL DEFAULT'0';

would this frag system work for 0.3.5?
 
Lua:
function onKill(cid, target, lastHit)
if isPlayer(target) then
 db.executeQuery("UPDATE `players` SET `frags` = `frags` + 1 WHERE `id` = " .. getPlayerGUID(cid) .. ";")
   end
return true
end
 
09:09 You currently have 20 frags today, 20 this week and 20 this month.
09:09 Last frag at 18 February 2011 03:31:28 on level 111 (Demond Druid).
09:09 Your red skull will expire at 18 February 2011 13:31:28

My Frags Not Down and REd skull Not down what i can do For make this Frags and Red skull down All Help me For 0.3.6
 
Back
Top Bottom