Add linkpearl to new characters
Re: Add linkpearl to new characters
Cool, got past that part, how does it get Slot ID? Its showing undefined.
Re: Add linkpearl to new characters
oh, that's returned from AddItem, i'll update thattagban wrote:Cool, got past that part, how does it get Slot ID? Its showing undefined.
Re: Add linkpearl to new characters
Seems to be working in giving the item now, but its not working properly, the item is un-droppable, unlike normal Linkshells, and its black and doesn't ACTUALLY connect. But its better than it was!
Re: Add linkpearl to new characters
Code: Select all
if player:hasItem(515) then
-- Do Nothing
--player:PrintToPlayer("You have 515 (Pearl)");
elseif player:hasItem(514) then
-- Do Nothing
--player:PrintToPlayer("You have 514 (Sack)");
elseif player:hasItem(513) then
-- Do Nothing
--player:PrintToPlayer("You have 513 (Shell)");
else
-- player:AddLinkpearl("BNETcc");
-- player:PrintToServer(string.format("%s has joined BNETcc Linkshell~", player:getName()), 0xE)
end
Re: Add linkpearl to new characters
yeah, i'm being dumb - i updated it again actually putting it through a compiler
Re: Add linkpearl to new characters
Honestly, I figured it was my fault, so no biggie. lol
Re: Add linkpearl to new characters
Perfect! Thanks!!!
Re: Add linkpearl to new characters
I have been trying to input this function and tried all three ways listed and all come back with same or similar errors. Can anyone point me in right direction or help me out?
Is the most recent error I have got.
Thanks
Code: Select all
src/map/lua/lua_baseentity.cpp:206:30: error: ‘SLOT_LINK’ was not declared in this scope
PChar->equip[SLOT_LINK] = invSlotID;
^
src/map/lua/lua_baseentity.cpp:210:21: error: ‘linkshell’ has not been declared
linkshell::AddOnlineMember(PChar, PLinkshell);
^
make: *** [dsgame-lua_baseentity.o] Error 1
Thanks
Re: Add linkpearl to new characters
SLOT_LINK was replaced with SLOT_LINK1 (because of dual linkshells)
Re: Add linkpearl to new characters
Awesome thank you.kjLotus wrote:SLOT_LINK was replaced with SLOT_LINK1 (because of dual linkshells)