Log in

View Full Version : Xenobot Error Help :///



zeqterbot
01-16-2016, 04:15 PM
Hi i have problem with full afk script (my fist full afk script) Error
15:25 XenoScript Error:
Script: glooth rmk bp.lua
Line #: 106
Chunk: C:?Users?zeq?DOCUME?1?XenoBot?Scripts??GLOOTH?2.LU A
Error: syntax error near 'if'
This is an error with user-input and should not be reported as a bug with XenoBot.

106 line >>>> if labelName == 'Buy' then
107 line >>>> Self.SayToNpc({'hi', 'trade'})
108 line >>>> Self.ShopBuyItem(238, (MaxManas-Self.ItemCount(238)))
109 line >>>> Self.ShopBuyItem(3155, (MaxSD-Self.ItemCount(3155)))
110 line >>>> end
Someone can help me with this ? ://///
I think I would need 1 person to help when i search more error's

uhtex
01-16-2016, 04:32 PM
delete the word "If" on line 106?

Fatality
01-16-2016, 04:35 PM
If there is an error that doesn't mean you just delete the word. that would result in

labelName == 'Buy' then
Self.SayToNpc({'hi', 'trade'})
Self.ShopBuyItem(238, (MaxManas-Self.ItemCount(238)))
Self.ShopBuyItem(3155, (MaxSD-Self.ItemCount(3155)))
end


Anyhow, The error is not in the code you posted, please post line 100-105

zeqterbot
01-16-2016, 04:36 PM
Still not working :////
Error: syntax error near 'labelName'

In early part of this script 1-100 lines i doing same deleting if adding ([[

zeqterbot
01-16-2016, 04:40 PM
100 if labelName == 'Bank' then
101 Self.SayToNpc({'hi', 'deposit all', 'yes', 'withdraw' .. math.ceil((120(MaxManas-Self.ItemCount(238)))0)*120, 'balance'})
102 Self.SayToNpc({'hi', 'deposit all', 'yes', 'withdraw' .. math.ceil((108(MaxSD-Self.ItemCount(3155)))0)*108, 'balance'})
103 end end ]])
104 ----------------------------------------------------------------------
105
106 if labelName == 'Buy' then
107 Self.SayToNpc({'hi', 'trade'})
108 Self.ShopBuyItem(238, (MaxManas-Self.ItemCount(238)))
109 Self.ShopBuyItem(3155, (MaxSD-Self.ItemCount(3155)))
110 end

eldera
01-16-2016, 07:36 PM
Show us whole script.