Hey there,
I'm having a problem with making the quest status work on my ModernAAC site. I understand that it relies on storage.
For example;
Here's the code I use for the NPC;
The NPC works well and all, but my command, setPlayerStorageValue(cid, 35700, 2) , doesnt add a entry in the database, therefore the injection.php can't find anything.
What am I doing wrong here? Help'll be appreciated.
I'm having a problem with making the quest status work on my ModernAAC site. I understand that it relies on storage.
For example;
PHP:
$characterPageQuests[] = array('storage'=>35700, 'value'=>2, 'name'=>'Demon Oak Quest');
Here's the code I use for the NPC;
PHP:
elseif msgcontains(msg, 'demon oak') then
selfSay('Did you defeat the demon oak?', cid)
talkState[talkUser] = 2
elseif msgcontains(msg, 'yes') and talkState[talkUser] == 2 then
if getCreatureStorage(cid, 35700) == 1 then
selfSay('Good job!', cid)
setPlayerStorageValue(cid, 35700, 2)
talkState[talkUser] = 0
else
The NPC works well and all, but my command, setPlayerStorageValue(cid, 35700, 2) , doesnt add a entry in the database, therefore the injection.php can't find anything.
What am I doing wrong here? Help'll be appreciated.