From 279478325db611a824f176739a3eeee979483238 Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Sat, 29 May 2010 21:44:05 +0000 Subject: [PATCH] Fix 'WriteKey()' needing a string, not an integer. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13327 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/dialog/npc_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/dialog/npc_dialog.py b/python/dialog/npc_dialog.py index 4fd92232f..c5b7029df 100644 --- a/python/dialog/npc_dialog.py +++ b/python/dialog/npc_dialog.py @@ -113,5 +113,5 @@ for jsonRule in dialogs: if speech.speak(Crossfire.WhatIsMessage()) == 0: # block the NPC for some time - Crossfire.WhoAmI().WriteKey('talked_to', random.randint(3, 8), 1); + Crossfire.WhoAmI().WriteKey('talked_to', str(random.randint(3, 8)), 1); Crossfire.SetReturnValue(1)