31
Endless Nights' Script Library / Re: ENs - Script Library
« on: October 23, 2016, 01:10:02 PM »I am attempting to learn how to call your scripts. IF I wanted to call your ENs-Subs-BodsAndNPCs, I would do the following?Code: [Select]Call #curpath , ENs-Settings.txt
Call %EN_SubScriptPath , \ENs-Subs-BodsAndNPCs.txt ENs_sellItem
then to useCode: [Select]Call %ENs-Subs-BodsAndNPCs SellItem abc123 John Talk ENK 5 6 End
I believe the parameters are as follows:
abc123 - vendorid
John - name
ENK - item to sell
5 - Quantity
6 - minimal price
end - end resume
Is this correct?
Been a long time.. so did it work It should be extremely simple to get running...
Did not work. I have your files in the same diretory as Easyuo and used the following code:
Code: [Select]
set #curpath , ENs-Settings.txt
set %EN_SubScriptPath%EN_SubScriptPath , \ENs-Subs-BodsAndNPCs.txt ENs_sellItem
start:
Call %ENs-Subs-BodsAndNPCs SellItem YYJVQ Neztam Talk WZF 10 1 End
halt
Any thoughts? I tried call & set