• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Pokemon Portrait System

Zysen

=)
Joined
Sep 18, 2010
Messages
2,270
Reaction score
170
Location
Bosnia & Herzegovina
Here's Pokemon Portrait System
TFS 0.3.6

When you put a poke ball example: 2453 on your feet then its will appear a picture on that creature which is contain on that 2453! On your legs that image will appear!

LUA:
local fotos = {
["Abra"] = {fotopoke = 8485},
}
 
local idballs = {
[2532] = "Pokeball"
}
 
function onEquip (cid, item, slot)
local nome = getItemName(item.uid)
local balls = idballs[item.itemid]
local image = getPlayerSlotItem(cid, 7)
local semimage = 2649
 
function setItemName(uid,name)
 return doItemSetAttribute(uid,'name',name)
end
 
 
for i,x in pairs(fotos) do
if i == balls then
		doTransformItem(image.uid,x.fotopoke)
		setItemName(image.uid, "portfoli's")
	return true
       end
   end
end


Credits to fast atk on OTFANS!
 
Last edited:
but if you put the pokeball and there are no portrait on legs slot, then you can't tranfsform item
 
lol the credits go to fast atk on otfans
 
Back
Top