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

Transforming a soul orb into 25 infernal bolts!!!

Snow

New Member
Joined
Jan 16, 2008
Messages
381
Reaction score
0
I had a script of that but it sent the msg in greenn, I want the msg to be in orange!

Transoforming 1 soul orb into 25 infernal bolts!!

thanks!!
 
local config = {
infernalId = 6529,
soulId = 5944,
text = "You have transformed a soul orb into 25 infernal bolts."
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == config.soulId then
doRemoveItem(item.uid, 1)
doPlayerAddItem(cid, config.infernalId, 25)
doPlayerSendTextMessage(cid, 25, config.text)
else
doPlayerSendCancel(cid, "Sorry, not possible")
end

return TRUE
end
 
Code:
local config = {
	newId = 6529,
	amount = 25,
	msgType = [B]MESSAGE_EVENT_ORANGE[/B],
	text = "You have transformed a soul orb into 25 infernal bolts."
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	doRemoveItem(item.uid, 1)
	doPlayerAddItem(cid, config.newId, config.amount)
	doPlayerSendTextMessage(cid, config.msgType, config.text)
	return TRUE
end
You can also try MESSAGE_STATUS_CONSOLE_ORANGE
 
Back
Top