Jakes
DevlandOT.eu
Sup, guys!
I have a problem with somethin'
Today I have compiled latest Avesta sources: https://code.google.com/p/avesta74/ using Visual Studio 10 with npc.cpp and npc.h that supports Jiddo NPC System. Compiling process gone successful.
One problem was deprecated functions: getPlayerName and getPlayerPosition, so I was change it in npchandler.lua and modules.lua for getCreatureName and getCreaturePosition (newest Avesta's source have this functions ofc).
And after that there's no errors in console, all is going good. Problem is with parameters, because they don't work.
Example:
NPC do not answering due saying "buy parcel", "parcel" etc.
If we'll make buying script in .lua, npc works fine.
Anybody knows how to fix this problem?
Kind regards,
Jakes
I have a problem with somethin'
Today I have compiled latest Avesta sources: https://code.google.com/p/avesta74/ using Visual Studio 10 with npc.cpp and npc.h that supports Jiddo NPC System. Compiling process gone successful.
One problem was deprecated functions: getPlayerName and getPlayerPosition, so I was change it in npchandler.lua and modules.lua for getCreatureName and getCreaturePosition (newest Avesta's source have this functions ofc).
And after that there's no errors in console, all is going good. Problem is with parameters, because they don't work.
Example:
Code:
<?xml version="1.0"?>
<npc name="Carly" script="post.lua" speed="80">
<look type="136" head="116" body="68" legs="58" feet="57"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="message_greet" value="Welcome in, |PLAYERNAME|. How can I help you?" />
<parameter key="shop_buyable" value="parcel,2595,15;label,2599,1;letter,2597,5"/>
</parameters>
</npc>
NPC do not answering due saying "buy parcel", "parcel" etc.
If we'll make buying script in .lua, npc works fine.
Anybody knows how to fix this problem?
Kind regards,
Jakes