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

Lua bug in some task mod

1268995

Member
Joined
Sep 9, 2010
Messages
422
Reaction score
13
Hello guys... i am talking too much in this forum, han... X

8.60 - this is a MOD

Well, i have a simple task system, something like that:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Simple Task" version="3.0" author="Vodkart" contact="xtibia.com" enabled="yes">
<config name="task_func"><![CDATA[

tasktabble = {
["dragon lord"] = {monster_race={"dragon lord"}, storage_start = 200201, storage = 91001,count = 1000,exp = 10000000,money = 100000},
["dragon lord vip II"] = {monster_race={"dragon lord vip ii"}, storage_start = 200202, storage = 91002,count = 1500,exp = 15000000,money = 200000},
(more code down here)

When i go to npc tasker, i say: hi, task, dragon lord, yes... OK, now i am making dragon lord task
When i go to npc tasker and say, hi, task, dragon lord vip II... the npc say: say the correct name of task...

So the problem is that when i say "dragon lord vip II", the code only read "dragon lord", and because i wrote more than only "dragon lord", appear the message "say the correct name of task".

So i need something that make sensitive letters... to make the code read all that i said (dragon lord vip II), and not only (dragon lord).

Do u guys understood? Thanks!
 
Well, i used vip 2 dragon lord; vip 3 dragon lord, and worked!
That's not beautful but works, thanks @Xikini
It that works.. try placing them in reverse order.. Lol it will read the code from top to. bottom.. and find dragon lord by itself at the end.. Worth a try. lol
dragon lord vip iii
dragon lord vip ii
dragon lord vip i
dragon lord
 
Back
Top