How to add key items to mob_droplist
How to add key items to mob_droplist
How do I add key items to mob_droplist?
Re: How to add key items to mob_droplist
mob_droplist is for items
if you wanted to add keyitems you'd have to do it in the mob's script in onMobDeath
if you wanted to add keyitems you'd have to do it in the mob's script in onMobDeath
Click here for a guide on scripting missions.<Giblet[NewBrain]> kj with this first step would be fine on my shit
Re: How to add key items to mob_droplist
Is this correct?
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob,killer)
if (killer:hasKeyItem(WARPED_GIGAS_ARMBAND) == false) then
killer:addKeyItem(WARPED_GIGAS_ARMBAND);
killer:messageSpecial(WARPED_GIGAS_ARMBAND);
end
end;
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob,killer)
if (killer:hasKeyItem(WARPED_GIGAS_ARMBAND) == false) then
killer:addKeyItem(WARPED_GIGAS_ARMBAND);
killer:messageSpecial(WARPED_GIGAS_ARMBAND);
end
end;
Re: How to add key items to mob_droplist
almost, make sure to require the globals where the vars are defined
oh and messsageSpecial takes more than one param: message/text id and param (e.g. messageSpecial(KEYITEM_OBTAINED, KEYITEM_ID)
(keyitems are scripts/globals/keyitems, messages/text ids are scripts/zones/ZONE_NAME/TextIDs, other shit is usually scripts/globals/status)
oh and indent cause non-indented code is ewww
oh and messsageSpecial takes more than one param: message/text id and param (e.g. messageSpecial(KEYITEM_OBTAINED, KEYITEM_ID)
(keyitems are scripts/globals/keyitems, messages/text ids are scripts/zones/ZONE_NAME/TextIDs, other shit is usually scripts/globals/status)
oh and indent cause non-indented code is ewww
Click here for a guide on scripting missions.<Giblet[NewBrain]> kj with this first step would be fine on my shit