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
master
ryo_saeba 2010-05-29 21:44:05 +00:00
parent c3a992c3ef
commit 279478325d
1 changed files with 1 additions and 1 deletions

View File

@ -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)