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

changename in talkaction

Indenpedens

Banned User
Joined
Nov 6, 2010
Messages
584
Reaction score
39
Location
Poland
Welcome
I need changename command in talkaction for gold coins :)
like !changename and something like maybe accoujnt manager console to change name
 
LUA:
function onSay(cid, words, param, channel)
	local money = 10000
	if(not(param)) then
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
		doPlayerSendCancel(cid, "You did not specify a param.")
		return false
	end
	if(getPlayerMoney(cid) < money) then
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
		doPlayerSendCancel(cid, "You don't have enought money.")
		return false
	end
	if(getCreatureCondition(cid, CONDITION_INFIGHT)) then
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
		doPlayerSendCancel(cid, "You can't do this while you're in combat.")
		return false
	end
	doPlayerRemoveMoney(cid, money)
	doRemoveCreature(cid)
	db.executeQuery("UPDATE `players` SET `name` = " .. param .. " WHERE `id` = " .. getPlayerGUID(cid) .. "")
	return true
end
A simple change name script.
 
!changename "Hej785!@#6&OtlandKo77687^%6
Good luck... Simply but bad.

@Down
I don't want it, but I said that this script is useless, because you didn't predict a lot of possibilities...
 
Last edited:
Back
Top