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

a pet stub

Capaverde

New Member
Joined
Sep 30, 2007
Messages
107
Reaction score
4
Code:
function onLogin(cid)
local petn = getPlayerStorageValue(cid, 39825)
if petn > 0 and petn <= #petlist then -- it means he has a pet
local petname = petlist[petn]
local pet = doSummonCreature(petname, getPlayerPosition(cid))
doConvinceCreature(cid, pet)
	return TRUE
end
	return TRUE
end
 
but the pet is able to die right?, whats the hp of the pet mama lvl speed etc..
 
its something like
petlist = { "Dog", "Bear", "Chicken", "Bat", etc..

that you put in global.lua
 
@Cronos
no, cause its onLogin
@fokuleh
first you make an action or npc that sets your storagevalue adequately and you place the table petlist on the global.lua
then you just login and your pet will login with you
 
whats the hp of the pet mama lvl speed etc..
It'll be the same as the real monster. Ie. My pet is a demon, therefore it will have the same hp, mana and attacks as a real demon. It does not gain exp.
 
Back
Top