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

Compiling Avesta & Jiddo NPC System

Jakes

DevlandOT.eu
Joined
May 27, 2009
Messages
302
Reaction score
115
Location
Poland
GitHub
JakesFromBB
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:
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
 
Back
Top