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

Island of Destiny

Xianji

New Member
Joined
May 7, 2014
Messages
17
Reaction score
0
Hey! I'm trying to get the NPC on Island of Destiny to work(the one(s) that turn you into a specific vocation.

I'm getting this error:
Code:
[13/05/2014 09:18:03] Lua Script Error: [Npc interface]
[13/05/2014 09:18:03] data/npc/scripts/iodsorcerer.lua:onCreatureSay
[13/05/2014 09:18:03] data/npc/scripts/iodsorcerer.lua:30: attempt to call global 'getCreatureStorage' (a nil value)
[13/05/2014 09:18:03] stack traceback:
[13/05/2014 09:18:03]    [C]: in function 'getCreatureStorage'
[13/05/2014 09:18:03]    data/npc/scripts/iodsorcerer.lua:30: in function 'callback'
[13/05/2014 09:18:03]    data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
[13/05/2014 09:18:03]    data/npc/scripts/iodsorcerer.lua:7: in function <data/npc/scripts/iodsorcerer.lua:7>
What is the problem? I'm trying to get into scripting so it'd be great to know how I can tell what it is!

Thanks in advance!
 
Hey! I'm trying to get the NPC on Island of Destiny to work(the one(s) that turn you into a specific vocation.

I'm getting this error:
Code:
[13/05/2014 09:18:03] Lua Script Error: [Npc interface]
[13/05/2014 09:18:03] data/npc/scripts/iodsorcerer.lua:onCreatureSay
[13/05/2014 09:18:03] data/npc/scripts/iodsorcerer.lua:30: attempt to call global 'getCreatureStorage' (a nil value)
[13/05/2014 09:18:03] stack traceback:
[13/05/2014 09:18:03]    [C]: in function 'getCreatureStorage'
[13/05/2014 09:18:03]    data/npc/scripts/iodsorcerer.lua:30: in function 'callback'
[13/05/2014 09:18:03]    data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
[13/05/2014 09:18:03]    data/npc/scripts/iodsorcerer.lua:7: in function <data/npc/scripts/iodsorcerer.lua:7>
What is the problem? I'm trying to get into scripting so it'd be great to know how I can tell what it is!

Thanks in advance!
add this
getCreatureStorage = getPlayerStorageValue

under function getPlayerStorageValue in compat.lua
 
Works perfectly! How did you figure out the problem? I've always had a deep respect for scripters because it all seems so confusing!

Thanks!
 
Works perfectly! How did you figure out the problem? I've always had a deep respect for scripters because it all seems so confusing!

Thanks!
I'm not an great scripter ore something but the error says
attempt to call global 'getCreatureStorage'
so it mean the function doesnt exist GetCreatureStorage is an function from 0.3 and ur using TFS 1.0 where that function is called getPlayerStorageValue
 
Ohh, now I see! Basically you're just telling the server to translate the term which is different on another server, but pretty much does the same thing.

Cool. Thanks!
 
Back
Top