he wares nothing i jsut made the char
only rook eq leatehr set you know
:/ Are you using TFS 0.3.5 pl1?
he wares nothing i jsut made the char
only rook eq leatehr set you know
-- Equipment spy by Azi [ersiu] --
function getItemsInContainer(cont, sep)
local text = ""
local tsep = ""
local count = ""
for i=1, sep do
tsep = tsep.."-"
end
tsep = tsep..">"
for i=0, getContainerSize(cont.uid)-1 do
local item = getContainerItem(cont.uid, i)
if isContainer(item.uid) == FALSE then
if item.type > 0 then
count = "("..item.type.."x)"
else
count = "("..item.type+(1)..")"
end
text = text.."\n"..tsep..getItemNameById(item.itemid).." "..count
else
if getContainerSize(item.uid) > 0 then
text = text.."\n"..tsep..getItemNameById(item.itemid)
text = text..getItemsInContainer(item, sep+1)
else
text = text.."\n"..tsep..getItemNameById(item.itemid)
end
end
end
return text
end
function onSay(cid, words, param, channel)
if(param == "") then
doPlayerSendCancel(cid, "Command requires param.")
return TRUE
end
local slotName = {"Head Slot", "Amulet Slot", "Backpack Slot", "Armor Slot", "Right Hand", "Left Hand", "Legs Slot", "Feet Slot", "Ring Slot", "Ammo Slot"}
local player = getPlayerByNameWildcard(param)
if isPlayer(player) == TRUE then
local text = getPlayerName(player).."'s Equipment: "
for i=1, 10 do
text = text.."\n"
local item = getPlayerSlotItem(player, i)
if item.itemid > 0 then
if isContainer(item.uid) == TRUE then
text = text..slotName..": "..getItemNameById(item.itemid)..getItemsInContainer(item, 1)
else
text = text..slotName..": "..getItemNameById(item.itemid)
end
else
text = text..slotName..": Empty"
end
end
doShowTextDialog(cid, 6579, text)
else
doPlayerSendCancel(cid, "This player is not online.")
end
return TRUE
end
not without modifyingWill this work on TFS v0.2.4??
I use TFS 0.3.5pl1plate armor
wooden shield
gold coin(79x)
mace(79x)
sword(79x)
crysal coin(44x)
zaoan armor(44x)
halberd(44x)
doShowTextDialog(cid, 6579, text)
doPlayerPopupFYI(cid, text)
... end
doPlayerPopupFYI(cid, text) -- First open that if there some itens
doShowTextDialog(cid, 6579, text) -- If have alot of itens open that line "too" and/or "only"
else ... ~
I test and work perfect for me.
I use change that line,
Lua:doShowTextDialog(cid, 6579, text)
For..
Lua:doPlayerPopupFYI(cid, text)
Is better to show equips..
more, if player has alot of itens that function not work. ;c
And, i do that,
Lua:... end doPlayerPopupFYI(cid, text) -- First open that if there some itens doShowTextDialog(cid, 6579, text) -- If have alot of itens open that line "too" and/or "only" else ... ~
I'ts work perfect.
Tnx, baby!
You get's many client debug's i don't see big apperance when you have popup message or item text o ;I'ts work perfect.Lua:... end doPlayerPopupFYI(cid, text) -- First open that if there some itens doShowTextDialog(cid, 6579, text) -- If have alot of itens open that line "too" and/or "only" else ... ~
Tnx, baby!
This only worked for me in 0.3.6pl W/ePHP:<talkaction log="yes" words="!equipment" acces="3" event="script" value="equipment.lua"/>
<talkaction log="yes" words="!equipment" access="3" event="script" value="equipment.lua"/>