Help with Script
Help with Script
Whats wrong with this script?
-----------------------------------
-- Zone: Abyssea-La Theine
-- NM: La Theine Liege
-----------------------------------
package.loaded["scripts/zones/Abyssea-La_Theine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
require("scripts/zones/Abyssea-La_Theine/TextIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob,killer)
if (killer:hasKeyItem(PELLUCID_FLY_EYE) == false) then
killer:addKeyItem(PELLUCID_FLY_EYE);
killer:messageSpecial(KEYITEM_OBTAINED, PELLUCID_FLY_EYE);
killer:addCurrency("Cruor",500);
killer:messageSpecial(CRUOR_OBTAINED, 500);
end
end;
-----------------------------------
-- Zone: Abyssea-La Theine
-- NM: La Theine Liege
-----------------------------------
package.loaded["scripts/zones/Abyssea-La_Theine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
require("scripts/zones/Abyssea-La_Theine/TextIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob,killer)
if (killer:hasKeyItem(PELLUCID_FLY_EYE) == false) then
killer:addKeyItem(PELLUCID_FLY_EYE);
killer:messageSpecial(KEYITEM_OBTAINED, PELLUCID_FLY_EYE);
killer:addCurrency("Cruor",500);
killer:messageSpecial(CRUOR_OBTAINED, 500);
end
end;
Re: Help with Script
I have. That script works with all of my other Abyssea mob but this on is problematic for some reason.
Re: Help with Script
It's not giving me the key item when the mob is killed.
Re: Help with Script
did you make sure you didn't alrdy have ki from testing cara
other reason could be its not in your keyitem.lua
Code: Select all
-----------------------------------
-- Zone: Abyssea-La Theine
-- NM: La Theine Liege
-----------------------------------
package.loaded["scripts/zones/Abyssea-La_Theine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
require("scripts/zones/Abyssea-La_Theine/TextIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob,killer)
if (killer:hasKeyItem(PELLUCID_FLY_EYE) == false) then
killer:addKeyItem(PELLUCID_FLY_EYE);
killer:messageSpecial(KEYITEM_OBTAINED, PELLUCID_FLY_EYE);
killer:addCurrency("Cruor",500);
killer:messageSpecial(CRUOR_OBTAINED, 500);
end
end;
Code: Select all
PELLUCID_FLY_EYE = 1485;
Re: Help with Script
Key item isn't in my Abyssea key items and it's in the my key item.lua
Re: Help with Script
Look for an error message in your console log right when the code should be executing. And remember just about everything is case sensitive.
Hi, I run The Demiurge server.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
DO NOT PRIVATE MESSAGE ME ABOUT BUGSPLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE