• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

How to do Eggs

WiLDTuRTLE

Member
Joined
Feb 26, 2011
Messages
478
Reaction score
5
Example; every monsters can drop eggs but THE EGG is hydra egg, but it have it's description like,

You see Skunk egg.
It blablabal (MONSTER NAME CHANGE DEPENDING ON THE EGG)
OnUse spawn the monster (monster never disapear till it dies or maybe disapear after X seconds)

It also have X chance to break (5 use if monster doesnt spawn it breaks) and such

Would i have to "dupe" the eggs?

Know what i mean?

ps; im not asking a request just asking how i would have to do it , but i have an idea how to do it, but about the description im not sure:|
 
Is simple mate, you should create a new item and call it for example "skunk egg" and then make it loteable by a skunk, then make a script to use the egg and if you have luck (chance), it will summon (if you want the baby skunk be your summon), or will create a wild creature and remove the egg, and then you have your idea
 
Chance of breaking no, but i can quickly make a one for summoning, i will pm you when a reach my house

Edit:

Okay, remember, this is just an example, this won't work at all

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

local egg = xxxx --ItemId of the egg
local summon = "baby skunk" --Put here the exact name of the summon
local effect = 0 --Effect when the egg is cracked, ex: 1, 2, 3...
local text = "A baby skunk appear from the egg" --Some message showed to the player

if item.itemid == egg then
doSummonCreature(summon, toPosition)
doSendMagicEffect(toPosition, effect)
doPlayerSendTextMessage(cid, 22, text)
end
return true
end

It is just an example mate, also it has a 100% chance to summon the creature
 
Last edited:
Back
Top