• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Clear your deathlist and Farg Remover!

Zonet

Web Developer
Joined
Sep 1, 2008
Messages
4,393
Reaction score
52
Location
Tibia VS RL-life, guess whos back?
I want 2 scripts, one when you right click or say a command like !cleardeathlist then
PHP:
doRemoveItem(cid, itemid)

and then when you say so.. this will clean your deathlist which can be found on the website, and the second.

Is if you got a redskull or many frags and you want to reset them to 0 just use !resetfrag also for both of these items, you need a special item.. i know how to make but, i'm beginner at scripting so is there any fuction or something :p?


Thanks.
 
Without special C++ source it willn't run. Normaly any server haven't got reset death list or frag function.



Yours,
Gelio
 
!resetfrag
Code:
local config =
{
	item = 333,
	count = 1
}

function onSay(cid, words, param)
	if getPlayerItemCount(cid, config.item) >= config.count then
		doPlayerRemoveItem(cid, config.item, config.count)
		doPlayerSetRedSkullTicks(cid, 0)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been cleared.")
	else
		doPlayerSendCancel(cid, "You dont have this item.")
	end
	return TRUE
end

!cd [clear deathlist]
Code:
local config =
{
	item = 333,
	count = 1
}

function onSay(cid, words, param)
	if getPlayerItemCount(cid, config.item) >= config.count then
		db.execute("DELETE FROM `player_deaths` WHERE `player_id` = " ..getPlayerGUID(cid))
		doPlayerRemoveItem(cid, config.item, config.count)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your deathlist has been cleared.")
	else
		doPlayerSendCancel(cid, "You dont have this item.")
	end
	return TRUE
end

I wouldn't mind reputation point !
 
Last edited:
Request

!resetfrag
Code:
local config =
{
	item = 333,
	count = 1
}

function onSay(cid, words, param)
	if getPlayerItemCount(cid, config.item) >= config.count then
		doRemoveItem(cid, config.item, config.count)
		doPlayerSetRedSkullTicks(cid, 0)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been cleared.")
	else
		doPlayerSendCancel(cid, "You dont have this item.")
	end
	return TRUE
end

!cd [clear deathlist]
Code:
local config =
{
	item = 333,
	count = 1
}

function onSay(cid, words, param)
	if getPlayerItemCount(cid, config.item) >= config.count then
		db.execute("DELETE FROM `player_deaths` WHERE `player_id` = " ..getPlayerGUID(cid))
		doRemoveItem(cid, config.item, config.count)
		doPlayerSetRedSkullTicks(cid, 0)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your deathlist has been cleared.")
	else
		doPlayerSendCancel(cid, "You dont have this item.")
	end
	return TRUE
end



I wouldn't mind reputation point !

Could you make that it remove the items and just remove one frag?
 
Go post in the right section you fucking retard. You have fucking ~350 posts and you still don't know where to post a topic.
 
Back
Top