Heeeelp

10/15/2012 13:13 khshe#1
me need help!!!


function learn_skill()
local gold = get_value( "gold" )


if gold >= 100000 then
learn_all_skill
set_value( "gold", gold - 100000 )
update_gold_chaos()
npc_contact()
return

end
if gold < 100000 then
dlg_title( "" )
dlg_text( "" )

dlg_menu( "@90010002", '' )
return

end
end
10/15/2012 15:14 Tofrum#2
U need us to read it for u ?
10/15/2012 17:13 ismokedrow#3
function learn_skill()
local gold = get_value( "gold" )
gold = tonumber(gold)



if gold > 99999 then -- (Always use 1 below the desired)
learn_all_skill() -- (Always include the () )
set_value( "gold", gold - 100000 )
update_gold_chaos()
npc_contact()
end
else then
dlg_title("")
dlg_text("")
dlg_menu("")
dlg_show()
end
end
10/16/2012 18:31 5405045#4
Quote:
Originally Posted by ismokedrow View Post
function learn_skill()
local gold = get_value( "gold" )
gold = tonumber(gold)



if gold > 99999 then -- (Always use 1 below the desired)
learn_all_skill() -- (Always include the () )
set_value( "gold", gold - 100000 )
update_gold_chaos()
npc_contact()
end
else then
dlg_title("")
dlg_text("")
dlg_menu("")
dlg_show()
end
end
^
10/16/2012 22:25 Tekknoid#5
See i right they want a full pvp Server?
Start with full Equip and so on?
Stupid as they is, you can all manage this over first login, NPC.lua and some shops^^^maybe some hundred lines of equip´in your Marketresource.

trolled the question, wehre is the pvp^^
10/18/2012 21:38 marekrndr#6
OP ^

Didn't you come across an idea that he might just be testing out LUA programming slash coding?