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

NPC [ULTRA Release] !EXCLUSIVE! Marriage System!

[14/02/2009 16:21:36] data/npc/scripts/marriage.lua:eek:nCreatureSay

[14/02/2009 16:21:36] ./data/functions.lua:353: attempt to index global 'db' (a nil value)
[14/02/2009 16:21:36] stack traceback:
[14/02/2009 16:21:36] ./data/functions.lua:353: in function 'getMarryStatus'
[14/02/2009 16:21:36] data/npc/scripts/marriage.lua:52: in function 'callback'
[14/02/2009 16:21:36] data/npc/lib/npcsystem/npchandler.lua:374: in function 'onCreatureSay'
[14/02/2009 16:21:36] data/npc/scripts/marriage.lua:8: in function <data/npc/scripts/marriage.lua:8>

[14/02/2009 16:21:40] Lua Script Error: [Npc interface]
[14/02/2009 16:21:40] data/npc/scripts/marriage.lua:eek:nCreatureSay

[14/02/2009 16:21:40] ./data/functions.lua:353: attempt to index global 'db' (a nil value)
[14/02/2009 16:21:40] stack traceback:
[14/02/2009 16:21:40] ./data/functions.lua:353: in function 'getMarryStatus'
[14/02/2009 16:21:40] data/npc/scripts/marriage.lua:52: in function 'callback'
[14/02/2009 16:21:40] data/npc/lib/npcsystem/npchandler.lua:374: in function 'onCreatureSay'
[14/02/2009 16:21:40] data/npc/scripts/marriage.lua:8: in function <data/npc/scripts/marriage.lua:8>
 
osian, either you didn't put the functions on "function.lua" or didn't create the table I said.
 
How I can drop the query(?):
PHP:
ALTER TABLE `players` ADD `marrystatus` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `marriage` ;
 
osian, either you didn't put the functions on "function.lua" or didn't create the table I said.

Actually he did. But his problem is that he uses 0.2, without the newer "LuaSQL" stuffs.

How I can drop the query(?):
PHP:
ALTER TABLE `players` ADD `marrystatus` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `marriage` ;

PHPMyAdmin
 
I got following error:

Code:
 data/npc/scripts/furniture.lua:52: attempt to call global 'getMarryStatus' (a nil value)
[20/02/2009 20:52:48] stack traceback:
[20/02/2009 20:52:48] 	data/npc/scripts/furniture.lua:52: in function 'callback'
[20/02/2009 20:52:48] 	data/npc/lib/npcsystem/npchandler.lua:374: in function 'onCreatureSay'
 
I got following error:

Code:
 data/npc/scripts/furniture.lua:52: attempt to call global 'getMarryStatus' (a nil value)
[20/02/2009 20:52:48] stack traceback:
[20/02/2009 20:52:48] 	data/npc/scripts/furniture.lua:52: in function 'callback'
[20/02/2009 20:52:48] 	data/npc/lib/npcsystem/npchandler.lua:374: in function 'onCreatureSay'

You didn't add the stuffs into functions.lua
 
Hey friend, on my PLAYERS DP, dont have "marriage", i'm using TFS 0.2-patch23, can you help me to add this on my server???

Many thx and congratulations for the greath release...

>>> Make this error, when i'm speak with NPC, i'm say HI, YES:
Lua Script Error: [Npc interface]
data/npc/scripts/atuais/married.lua:eek:nCreatureSay

data/global.lua:826: attempt to index global 'db' (a nil value)
stack traceback:
data/global.lua:826: in function 'getMarryStatus'
data/npc/scripts/atuais/married.lua:52: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:374: in function 'onCreatureSay'
data/npc/scripts/atuais/married.lua:8: in function <data/npc/scripts/atu
ais/married.lua:8>

F@bio
 
Last edited:
does it work for sqlite?
because i always get an error...
recognized token [oncreate_player
and than i got to cancel it :/
 
Last edited:
12:34 You see yourself. You are god, husband of Iareproplax.

haha :D

Btw do you know how to make it work on gesiors account page? Right now it keeps saying on the site: Marital status: single
 
@Up
It's working on Gesiors acc maker. It's showing single because this character is not married ;d

It is married, ingame it says: You are a god, a husband of ...
But on the site it still says Single :S
 
1.
Where in MyQSL i should paste it ? :blink: I'm new :p
Code:
ALTER TABLE `players` ADD `marrystatus` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `marriage` ;
2.
PLAYER1 goes to the NPC and start a conversation.
PLAYER1: Hi
PLAYER1: marry
PLAYER1: yes

And no reaction / sorry for my english :p
 
Last edited:
I get some errors i have done all right but gets error...

Code:
[01/06/2009 18:26:11] Lua Script Error: [Npc interface] 
[01/06/2009 18:26:11] data/npc/scripts/marry.lua:onCreatureSay

[01/06/2009 18:26:11] luaGetPlayerNameByGUID(). Player not found

[01/06/2009 18:26:11] Lua Script Error: [Npc interface] 
[01/06/2009 18:26:11] data/npc/scripts/marry.lua:onCreatureSay

[01/06/2009 18:26:11] data/npc/scripts/marry.lua:58: attempt to concatenate local 'marryname' (a nil value)
[01/06/2009 18:26:11] stack traceback:
[01/06/2009 18:26:11] 	data/npc/scripts/marry.lua:58: in function 'callback'
[01/06/2009 18:26:11] 	data/npc/lib/npcsystem/npchandler.lua:384: in function 'onCreatureSay'
[01/06/2009 18:26:11] 	data/npc/scripts/marry.lua:8: in function <data/npc/scripts/marry.lua:8>

OBS! Im using The Forgotten Server, version 0.3.4 (Crying Damson).
 
Back
Top