Code: Select all
Command> RomScript("GetPlayerPointInfo(1,1,\"\")")
onLoad error: [string "RomScript("GetPlayerPointInfo(1,1,\"\")")"]:1: attempt to
call global 'RomScript' (a nil value)
Command>
Code: Select all
Command> RomScript("GetPlayerPointInfo(1,1,\"\")")
onLoad error: [string "RomScript("GetPlayerPointInfo(1,1,\"\")")"]:1: attempt to
call global 'RomScript' (a nil value)
Command>
Code: Select all
RoMScript("GetPlayerPointInfo(1,1,\"\")")
Code: Select all
RoMScript('GetPlayerPointInfo(1,1,"")')
Code: Select all
function getCurrency(shell)
name = string.lower(name) -- Make lower case
local noSname = string.match(name,"^(.-)s?$") -- Take off ending 's'
local group, index
if noSname == "shell" or name == string.lower(getTEXT("SYS_MONEY_TYPE_11")) then
group, index = 1,1
elseif noSname == "energy" or noSname == "eoj" or name == string.lower(getTEXT("SYS_MONEY_TYPE_12")) then
group, index = 1,2
elseif noSname == "dreamland" or noSname == "pioneer sigil" or noSname == "sigil" or name == string.lower(getTEXT("SYS_MONEY_TYPE_10")) then
group, index = 1,3
elseif noSname == "mem" or noSname == "mento" or noSname == "memento" or name == string.lower(getTEXT("SYS_MONEY_TYPE_9")) then
group, index = 2,1
elseif noSname == "proof" or noSname == "pom" or name == string.lower(getTEXT("SYS_MONEY_TYPE_13")) then
group, index = 2,2
elseif noSname == "honor" or name == string.lower(getTEXT("SYS_MONEY_TYPE_4")) then
group, index = 3,1
elseif noSname == "trial" or noSname == "bott" or name == string.lower(getTEXT("SYS_MONEY_TYPE_8")) then
group, index = 3,2
elseif noSname == "warrior" or noSname == "botw" or name == string.lower(getTEXT("SYS_MONEY_TYPE_14")) then
group, index = 3,3
else
print("Invalid currency type. Please use 'shell', 'eoj', 'sigil', 'mem', 'proof', 'honor', 'trial' or 'warrior'.")
return 0,0
end
local amount, limit = RoMScript("GetPlayerPointInfo("..group..","..index..",\"\")")
return amount, limit-amount
if getCurrency(shell) > 899 then
loadPaths("buystats")
end
Code: Select all
if inventory:itemTotalCount(240181) > 950 then
-- Wait for user to use some shells.
cprintf(cli.yellow,"Reaching the maximum number of Phirius Shells (1000). Please spend some before continuing.\n")
player:sleep()
numshells = inventory:getItemCount(240181)
end
Code: Select all
if getCurrency("shell") > 950 then
-- Wait for user to use some shells.
cprintf(cli.yellow,"Reaching the maximum number of Phirius Shells (1000). Please spend some before continuing.\n")
player:sleep()
numshells = getCurrency("shell")
end
Code: Select all
<!-- # 1 --><waypoint x="xxxx" z="xxxx" y="xx" tag="start" type="TRAVEL">
ambolia wrote:hello, I am making a script to make mine and points of honor and I want where they are already full to move to another waypoint and count them. as I do that?
Code: Select all
<!-- # 1 --><waypoint x="xxxx" z="xxxx" y="xx" tag="start" type="TRAVEL">
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 24 guests