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

Action Record Custom Spawn Donation

Sync

Ø,ø
Joined
May 26, 2009
Messages
1,901
Reaction score
26
Location
Canada
This is a Simple script, And can be used for many other things beside this, This is basically showing players how they can record log files...

This script basically just records that a player has donated for a Custom Spawn of Dragon Lords, They will use the Item they got through the shop system or what not, Click it and it will record for you to read later who purchased a custom spawn.

Lua:
function onUse(cid, item, frompos, item2, topos) 
file = getDataDir() .. "/logs/customSpawns.txt"
  doWriteLogFile(file, "[Name: " .. getCreatureName(cid) .. "] [Vocation: " .. getPlayerVocationName(cid) .. "] [Level: " .. getPlayerLevel(cid) .. "] - purchased a custom DRAGON LORD Spawn.")
  doPlayerSendTextMessage(cid, 25, "The staff has now been notified that you have made the Custom Spawn Donation for Dragon Lords.")
  doRemoveItem(item.uid)
  return true
end

customSpawns.txt
Code:
[28/03/2010 12:34:19] [Name: Fear] [Vocation: Super Druid] [Level: 150] - purchased a custom DRAGON LORD Spawn.
[04/04/2010 13:31:04] [Name: Chris] [Vocation: Super Druid] [Level: 8] - purchased a custom TRAINER spawn.
[08/05/2010 14:06:15] [Name: Fluffers] [Vocation: Knight] [Level: 84] - purchased a custom HYDRA spawn.
[30/05/2010 20:17:02] [Name: Himon] [Vocation: Super Paladin] [Level: 140] - purchased a custom DEMON spawn.
Etc~

Simple but i guess helpfull in a way for other possibilitys.
 
@Existance
Don't TROLL dude, it may be lame for you, but it may be useful for others.
@Sync
Nice and simple!
 
doubt i will ever use it for donations spawns but for other things i think it will be pretty useful. maybe for my anti bot measures ;d ty and rep
 
nice ^^
a small edit
Lua:
function onUse(cid, item, frompos, item2, topos)
local pos = getCreaturePosition(cid)
local hname = getHouseFromPos(pos)
		if ((getTileInfo(pos).house )== true) then
			file = getDataDir() .. "/logs/customSpawns.txt"
			doWriteLogFile(file, "[Name: " .. getCreatureName(cid) .. "] [Vocation: " .. getPlayerVocationName(cid) .. "] [Level: " .. getPlayerLevel(cid) .. "] [House: " .. getHouseName(hname) .. "]- purchased a custom DRAGON LORD Spawn.")
			doRemoveItem(item.uid)
		letter = doPlayerAddItem(cid,2598,1)
			doSetItemText(letter, "|-->Information From server<--|" ..
			"\n ----------------------------"..
			"\nThanks for donation " ..
			"\nYour order contain:" ..
			"\n---" .. getItemNameById(item.itemid) .. 
			"and it will be add in \n--" .. getHouseName(hname) ..
			"\n ----------------------------"..
			"\nfor any information or problem please                           send us email at" ..
			"\n|-->[email protected]<--|" ..
			"")
		else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You must be in your house to use this item.'
  return true
end
end
now it will show the house location and send letter to the player with the donation information
 
Last edited:
Purchased a custom DRAGON LORD Spawn?
How i can set this in my ot?
 
Back
Top