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

TalkAction [Many] My fully lua PET system (MANY FEATURES)

Hello

How can i make a spell that health to the pet owner?, like a Sio'er that only can be summoned by knights

Cya
Thanks in avance
 
Code:
[25/10/2008  17:59:15] Lua Script Error: [TalkAction Interface] 
[25/10/2008  17:59:15] data/talkactions/scripts/pets/!petcarry.lua:onSay

[25/10/2008  17:59:15] data/talkactions/scripts/pets/!petcarry.lua:13: attempt to call global 'getItemWeight' (a nil value)
[25/10/2008  17:59:15] stack traceback:
[25/10/2008  17:59:15] 	data/talkactions/scripts/pets/!petcarry.lua:13: in function <data/talkactions/scripts/pets/!petcarry.lua:2>

Error! :/
Can you help me :D
 
Code:
[25/10/2008  17:59:15] Lua Script Error: [TalkAction Interface] 
[25/10/2008  17:59:15] data/talkactions/scripts/pets/!petcarry.lua:onSay

[25/10/2008  17:59:15] data/talkactions/scripts/pets/!petcarry.lua:13: attempt to call global 'getItemWeight' (a nil value)
[25/10/2008  17:59:15] stack traceback:
[25/10/2008  17:59:15] 	data/talkactions/scripts/pets/!petcarry.lua:13: in function <data/talkactions/scripts/pets/!petcarry.lua:2>

Error! :/
Can you help me :D

replace getItemWeight with getItemWeightById
 
marcinek paladinek
thank you
I was having the same error
this pet system only functionally with forgottenserver
 
I do not understand what i am doing wrong...I can summon the monster and everything works but when it dies and I go to the npc it doesn't respond when I said hi. Is it this working with the new tfs(alpha 3)?
 
wont work for me on beta 3. I say !pet and it just says not enough room and it gives error cannot find creature so I tried things like !pet "rat !pet "demon -.^ or does this just work different :S
 
Error:
Code:
[16/11/2008 18:10:50] The Forgotten Server - Version 0.3 (Alpha 4).
[16/11/2008 18:10:50] A server developed by Talaturen, Kiper, Kornholijo, Jonern, Lithium & Elf.
[16/11/2008 18:10:50] Visit our forum for updates, support and resources: http://otland.net/.

[16/11/2008 18:10:52] Tucki has logged out.
[16/11/2008 18:10:52] Trekes has logged in.

[16/11/2008 18:10:54] Lua Script Error: [TalkAction Interface] 
[16/11/2008 18:10:54] in a timer event called from: 
[16/11/2008 18:10:54] data/talkactions/scripts/pets/!pet.lua:onSay

[16/11/2008 18:10:54] luaGetPlayerStorageValue(). Player not found

[16/11/2008 18:10:54] Lua Script Error: [TalkAction Interface] 
[16/11/2008 18:10:54] in a timer event called from: 
[16/11/2008 18:10:54] data/talkactions/scripts/pets/!pet.lua:onSay

[16/11/2008 18:10:54] luaSetPlayerStorageValue(). Player not found
[16/11/2008 18:10:54] Trekes has logged out.
[16/11/2008 18:10:55] Tucki has logged in.
I login with my char (Trekes) and i use !pet, but when i logout without say !pet, error and i need to revive the pet again u.u

Please, help me

P.S.: Sorry for my english
 
can everyone write down a script that a pat can use for attack for example with a giant sword and can use magic plate armor and so on
 
I dont got a logout script please help me :D

maybe its called something else, i dont know :(

where could it be? :confused:
 
Npc doesnt work!![06/01/2009 14:03:27] data/npc/lib/npc.lua:43: attempt to perform arithmetic on global 'cx' (a table value)
[06/01/2009 14:03:27] stack traceback:
[06/01/2009 14:03:27] data/npc/lib/npc.lua:43: in function 'getDistanceToCreature'
[06/01/2009 14:03:27] data/npc/scripts/Pet Doctor.lua:52: in function <data/npc/scripts/Pet Doctor.lua:50>
 
I can't even summon the pet. It says I don't have enough space.

u need to change pet's name on Petconfig.lua

I dont got a logout script please help me :D

maybe its called something else, i dont know :(

where could it be? :confused:

data/creaturescripts/creaturescripts.xml
Code:
<event type="logout" name="PlayerLogout" script="logout.lua"/>


data/creaturescripts/scripts/logout.lua
Code:
dofile("./petConfig.lua")
 
function onLogout(cid)
	if isCreature(getPlayerStorageValue(cid, storages.petUid)) == 1 then
		if getPlayerStorageValue(cid, storages.petIsOnline) == 2 then
			setPlayerStorageValue(cid, storages.petIsOnline, 1)
		end
	end
	return TRUE
end
 
BUMBP!!

lisa%20BUMP.jpg


tibian no pet!
 
I'm not sure what u mean by putting the attacks in, where do they go? lol
 
Last edited:
@FEDEVI

-- Can you make a NPC to The Forgotten Server v0.3.2 (Crying Damson) for us plx????

-- Many thx for your release and congratulations for this bealtifull release...
 
Back
Top