Jump to content

Question

Posted

Need help to
Make a setting type (and what would then be saved in cfg)
and then these values were used in the script

my exaple
 t[i] = {
            address = i.address + 4,
            flags = 16,
            value = (HERE VALUE OF THIS gg.prompt)
            gg.setValues(t)
          }

who can help with ?

12 answers to this question

Recommended Posts

  • 0
Posted
  On 2/28/2023 at 10:17 PM, Fowskill said:

Need help to
Make a setting type (and what would then be saved in cfg)
and then these values were used in the script

my exaple
 t[i] = {
            address = i.address + 4,
            flags = 16,
            value = (HERE VALUE OF THIS gg.prompt)
            gg.setValues(t)
          }

who can help with ?

Expand  

I didn't understand anything you said

 

  • 0
Posted
  On 2/28/2023 at 10:17 PM, Fowskill said:

Need help to
Make a setting type (and what would then be saved in cfg)
and then these values were used in the script

my exaple
 t[i] = {
            address = i.address + 4,
            flags = 16,
            value = (HERE VALUE OF THIS gg.prompt)
            gg.setValues(t)
          }

who can help with ?

Expand  

Why are many people lazy to read before asking?

Your answer is here.

  • 0
Posted
  On 3/2/2023 at 1:05 PM, HEROGAMEOfficial said:

Why are many people lazy to read before asking?

Your answer is here.

Expand  

how can i seach?

i need seach my item spec 



 gg.searchNumber(itemsSpec[itemType][item].id , gg.TYPE_QWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
  local t = gg.getResults(25000, nil, nil, nil, nil, nil, nil, nil, nil)

Its my item spec what i need change that for find that value (ID)
itemsSpec = {
  {
      id = 21,
      name = "1️⃣ Ball of Light "
    },
    {
      id = 22,
      name = "2️⃣ Poisonous Green Cloud "
    },
    {
      id = 33,
      name = "3️⃣ Piercing Trace "
    },
    {
      id = 24,
      name = "4️⃣ Ice Projectile "
    },
    {


 

  • 0
Posted
  On 3/3/2023 at 6:52 PM, Fowskill said:

how can i seach?

Expand  

Search what ? you need to give more information about your issue or if you are lucky enough people will try to guess else no one will resply to your topic

  • 0
Posted (edited)
  On 3/4/2023 at 9:45 AM, MAARS said:

Search what ? you need to give more information about your issue or if you are lucky enough people will try to guess else no one will resply to your topic

Expand  


ITS My script/
function skill()
  local itemType = gg.choice({
    "🪓Weapon Type0️⃣1️⃣",
    "🪓Weapon Type 0️⃣2️⃣",
    "🪓Weapon Type 0️⃣3️⃣",
    "🪓Weapon Type 0️⃣4️⃣",
  }, nil, "ℹWhat kind of Skill☯️ do you want to Trade?🔄")
  if itemType == nil then
    return
  end
  local item = gg.choice(map(itemsSpec[itemType], function(item)
    return item.name
  end
  ), nil, "ℹWhich Weapon Type ☯️ do you want to choose✅?")
  if item == nil then
    return
  end
  gg.clearResults()
  gg.setRanges(gg.REGION_ANONYMOUS)
  gg.searchNumber(I need here seach my itemsspec ID, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)




 its my itemsspec
itemsSpec = {
  {
    {
      id = 1,
      name = "1️⃣ Single Arrow "
    },
    {
      id = 2,
      name = "2️⃣ Rain Blue "
    },
    {
      id = 3,
      name = "3️⃣ Fire Arrow "
    },
    {
      id = 4,
      name = "4️⃣ Green Projectile"
    },
    {
      id = 5,
      name = "5️⃣ Black Spell "
    },
    {
      id = 6,
      name = "6️⃣ Blue Projectile "
    },

 

Edited by Fowskill
  • 0
Posted (edited)
  On 3/4/2023 at 10:20 AM, Fowskill said:


ITS My script/
function skill()
  local itemType = gg.choice({
    "🪓Weapon Type0️⃣1️⃣",
    "🪓Weapon Type 0️⃣2️⃣",
    "🪓Weapon Type 0️⃣3️⃣",
    "🪓Weapon Type 0️⃣4️⃣",
  }, nil, "ℹWhat kind of Skill☯️ do you want to Trade?🔄")
  if itemType == nil then
    return
  end
  local item = gg.choice(map(itemsSpec[itemType], function(item)
    return item.name
  end
  ), nil, "ℹWhich Weapon Type ☯️ do you want to choose✅?")
  if item == nil then
    return
  end
  gg.clearResults()
  gg.setRanges(gg.REGION_ANONYMOUS)
  gg.searchNumber(I need here seach my itemsspec ID, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)




 its my itemsspec
itemsSpec = {
  {
    {
      id = 1,
      name = "1️⃣ Single Arrow "
    },
    {
      id = 2,
      name = "2️⃣ Rain Blue "
    },
    {
      id = 3,
      name = "3️⃣ Fire Arrow "
    },
    {
      id = 4,
      name = "4️⃣ Green Projectile"
    },
    {
      id = 5,
      name = "5️⃣ Black Spell "
    },
    {
      id = 6,
      name = "6️⃣ Blue Projectile "
    },

 

Expand  

Your array is missing an array here an example i made

mo = {
{ 
    {id = 1,name = "one Single Arrow "},
    {id = 2,name = "two Rain Blue "},
    {id = 3,name = "three Fire Arrow "},
    {id = 4,name = "four Green Projectile"},
    {id = 5,name = "five Black Spell "},
    {id = 6,name = "six Blue Projectile "}
},{ -- I'm sure 80% you forgot to add this in your array or any other array -- and game guardian will not tell you to add the missing "{" he will tell you to remove the closeing "}" .
{id = 8,name = "some one "},
{id = 10,name = "some body "},
{id = 13,name = "some reason "},
{id = 15,name = "some thing "},
{id = 12,name = "some day "},
{id = 143,name = "some time "},
}
}

If you want to call this array it will be like

print(itemsSpec[1][2]) -- {id = 2,name = "two Rain Blue "}
print(itemsSpec[1][6]) -- {id = 6,name = "six Blue Projectile "}
print(itemsSpec[2][1]) -- {id = 8,name = "some one "}
print(itemsSpec[2][6]) -- {id = 143,name = "some time "}
print(itemsSpec[2][2].id) -- 10
print(itemsSpec[2][3].name)  -- some time
-- if you forget the array the answers will be like this
print(itemsSpec[1][2]) -- {id = 2,name = "two Rain Blue "}
print(itemsSpec[1][6]) -- {id = 6,name = "six Blue Projectile "}
print(itemsSpec[2][1]) -- nil
print(itemsSpec[2][6]) -- nil
print(itemsSpec[2][2].id) -- error 
print(itemsSpec[2][3].name) -- error 

If you forget the array this error will come to you 

Screenshot_2023-03-05-02-47-30-913_com.x8zs.sandbox.jpg

Edited by MANDO01

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.