Adblock breaks this site

LF Help. Random question

Discussion in 'Scar/Simba Help' started by moonman768, May 20, 2009.

  1. moonman768

    moonman768 Newcomer

    Joined:
    May 8, 2009
    Posts:
    2
    Referrals:
    0
    Sythe Gold:
    0
    LF Help. Random question

    Features i'm working on; - after you guys explain the difficulty

    Search all 27 slots of the inventory continuously.
    If an item was picked up, search images/ColorIds for possible items. If a match was found, store into a variable. Which later i'll use for total item counts.

    Question i'm running into is will scar know to tell scar that the item has aready been added in that particular slot so the same item doesn't get added more than once.

    I'm trying to make/find a loot logger.

    For some reason it's hard to explain. Please let me know if you think you may know what i'm talking about. How possible it is. Or if you need further knowledge.


    For a basic idea of the outcome i'm looking for heres an example. I already started this same script in another language but lacks image/search features that add the items by itself. In this program you add every item you get manually. Otherwise the script works flawlessly. Here's a log of it's findings.


    Cockroach drones, Stronghold


    ||Bank Trip || 9
    ||---------------------------
    ||You killed 112.090909 monsters || 4932 exp || 14845.485600 exp per hour!
    ||---------------------------
    ||19.933333 mins || 5.623290 kills per min! || 337.397400 kills per hour!
    ||---------------------------
    ||
    || Item || Amount Carried \ Total Amount [Average]
    ||
    ||---------------
    || Runes ||
    ||---------------
    ||Air || 44\413[45.888889]
    ||Fire || 53\453[50.333333]
    ||Water || 50\416[46.222222]
    ||---------------
    || Gems ||
    ||---------------
    ||Emerald || 0\8[0.888889]
    ||Diamond || 0\0[0.000000]
    ||Ruby || 1\4[0.444444]
    ||Sapphire || 1\18[2.000000]
    ||---------------
    || Other ||
    ||---------------
    ||Coal || 18\110[12.222222]
    ||Teeth || 0\0[0.000000]
    ||Loop || 0\1[0.111111]
    ||Limpwrut || 3\22[2.444444]
    ||Spiders Eggs || 1\11[1.222222]
    ||Gold || 300\3065[340.555556]
    ||---------------
    || Herbs ||
    ||---------------
    ||Guam || 2\35[3.888889]
    ||Can || 1\9[1.000000]
    ||Marren || 2\24[2.666667]
    ||Ranarr || 1\11[1.222222]
    ||Dwarf || 1\3[0.333333]
    ||Irit || 3\11[1.222222]
    ||Tarromin || 4\27[3.000000]
    ||Kwarum || 0\11[1.222222]
    ||Harra || 1\15[1.666667]
    ||Avan || 1\6[0.666667]
    ||Lant || 0\4[0.444444]
    ||---------------
    ||Log ends here||
    ||---------------

     
  2. slydevil420

    slydevil420 Newcomer

    Joined:
    May 21, 2009
    Posts:
    8
    Referrals:
    0
    Sythe Gold:
    0
    LF Help. Random question

    Its possible. Just need to assign 27 variables. Slot1,Slot2,ect. Boolean. Make em true when that slot has something in it.

    if(slot1=true)then
    skip this slot in surch
     
< SCAR need help on sw script | scar problems >


 
 
Adblock breaks this site