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

wysyłanie items do depo

Seminari

Banned User
Joined
Dec 13, 2009
Messages
1,496
Reaction score
34
Location
Poland
przeglądając skrypty na forum w jednym z nich znalazłem ciekawą funkcję;

Code:
local function doPlayerAddDepotItems(cid, pos, town, items, notify) -- credits to Chojy for idea.
	local parcel = doCreateItemEx(2595)
	local label = doAddContainerItem(parcel, 2599)
	doSetItemText(label, getCreatureName(cid) .."\n".. town)
	doAddContainerItemEx(parcel, items)
	doTeleportThing(parcel, pos)
	if(notify == true) then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your reward has been sent to your depot because you were unable to carry it.")
	end

Code:
local config = {
	storage = 7500,
	mailbox = {
		{x = 95, y = 112, z = 7} -- mailbox location on map
	}
}

Ale pytanie moje, czy jest jakaś funkcja wysyłająca do depo? bo tutaj poprostu skrypt wypisuje na labelu gdzie ma wysłać, a potem przenosi na skrzynkę..?

Oryginalny temat skąd funkcja:
http://otland.net/f82/ranking-system-137264/
 
Funkcji raczej nie ma, a ten sposób który podałeś wyżej to jedyny jaki znam. Może że by coś wystrugać w C++. Wiem na pewno, że jest pobieranie przedmiotów z depo
Lua:
getPlayerDepotItems(cid, depotid)


@refresh a jednak nie, trochę szukałem i znalazłem takie coś
Lua:
//doPlayerSendMailByName(name, item[, town[, actor]])
 
Last edited:
Back
Top Bottom