
Smurfin
Active Members-
Posts
26 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Smurfin's Achievements

Seeker (1/7)
0
Reputation
-
Randomize with specific percentage
Smurfin replied to Smurfin's topic in AutoIt General Help and Support
I just have the time to get back at this, how about this error : >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "K:\AutoIT\LB Sim\GLVEx_Example_1.au3" K:\AutoIT\LB Sim\GLVEx_Example_1.au3 (41) : ==> Error in expression.: Local $aHdrData[][] = [["Col 0", "Col 1", "Col 2"], ["", "", ""], ["", "", "New 1|New 2|New 3"]] Local $aHdrData[^ ERROR >Exit code: 1 Time: 0.310 how's that supposed to be written in old autoit ? -
Randomize with specific percentage
Smurfin replied to Smurfin's topic in AutoIt General Help and Support
Ok tq I'll try it myself for the next ones, I'll ask again if I get it wrong. -
Randomize with specific percentage
Smurfin replied to Smurfin's topic in AutoIt General Help and Support
@SadBunny : Oh ok then I won't discuss it further I'll just fix the unknown line to old format. Now how do I fix this line to work with the old Autoit ? SetExtended(($iKeyCode = 0x0D) ? (True) : (False)) There will be more, I'll ask one by one until the script run properly. Pls help. -
Randomize with specific percentage
Smurfin replied to Smurfin's topic in AutoIt General Help and Support
What's weird is it doesn't show any error when run or compiled, but it's working erratically. It contains packet sending , memory read and write using nomadmemory, and a few other stuffs that I use to multiclient a game and remote all other alt characters to follow me using hotkeys, attack my target, go to xyz position while I'm active on my main character's window. On the latest AutoIT, it's acting up like only working for a few characters but not for the others. I really have no clue and even if I rewrite it, I'll still use the same thing. Don't know what's changed in autoit that makes it acting up like that. -
Randomize with specific percentage
Smurfin replied to Smurfin's topic in AutoIt General Help and Support
What is this error ? It works on the latest AutoIT, but using the latest version makes my older projects not working properly. Is there anyway I could make older autoit working with this udf and recognize that syntax without having to install the latest one ? -
Randomize with specific percentage
Smurfin replied to Smurfin's topic in AutoIt General Help and Support
Will do, thanks Melba23. -
Randomize with specific percentage
Smurfin replied to Smurfin's topic in AutoIt General Help and Support
Ok, I'll try it later and ask specific question when I bump into a wall. btw is filereadtoarray a new syntax because i use old autoit version it didn't seem to recognize it the last time i tried it. also, is it possible to create a table with different colors for each data like in my screenshot above ? what syntax would you recommend, for the chatbox above I ever tried editbox iirc but when I changed color it changed the whole text color in the box, not only the last line. -
Randomize with specific percentage
Smurfin replied to Smurfin's topic in AutoIt General Help and Support
@SadBunny : Ok. I'll keep that in mind when I start working on opening the packs function later. --- I've made the Interface like this : That blank area on the right is going to be used to list the contents of this pack -> http://www.pwdatabase.com/pwi/items/42202 I've made the mini database file (War Avatar Pack S,ini) like below. There are 5 strings separated by commas, the first is The name of the set, second is Grade (S/A/B) and should have different color each which is Orange for S, Yellow for A, Purple for B, third is Card Type and there are six types, fourth is the name of the card, and fifth is the chance. There should be a counter too for each and every card. It's basically like this : Is it possible to make a script that reads the data in the ini file then create and put it onto a table like above ? if not then I have to put everything hardcoded without customization using ini file. Right clicking the chest icon should run the function to open the pack and will give info what item appears in the chatbox. left clicking will change pack and contents on the right. Nuema Portal (6) 100%,S,Destroyer,Althea,0.04 Nuema Portal (6) 100%,S,Battle,Kestra,0.04 Nuema Portal (6) 100%,S,Longevity,Astrid,0.04 Nuema Portal (6) 100%,S,Durability,Lorelei,0.04 Four Generals of the Human (4) 60%,S,Battle,Gu Hensin,0.04 Four Generals of the Human (4) 60%,S,Destroyer,Lio Gianni,0.04 Four Generals of the Human (4) 60%,S,Soulprime,Tsen the Heavensent,0.04 Four Generals of the Human (4) 60%,S,Lifeprime,Fen the Victorious,0.04 Dream of Three Generations (3) 40%,S,Destroyer,Ancestor Feng Loriel,0.04 Dream of Three Generations (3) 40%,S,Soulprime,Saint Feng Drime,0.04 Dream of Three Generations (3) 40%,S,Longevity,King Feng Triton,0.04 Balance of Three Races (3) 40%,S,Durability,General Jen,0.04 Balance of Three Races (3) 40%,S,Lifeprime,General Chung,0.04 Balance of Three Races (3) 40%,S,Battle,General Po,0.04 World Watcher (2) 20%,S,Durability,Elder of the Streams,0.04 World Watcher (2) 20%,S,Longevity,Elder of Archosaur,0.04 Twin Stars (2) 20%,S,Battle,Radiance,0.04 Twin Stars (2) 20%,S,Destroyer,Dark Radiance,0.04 Four Lords of the Winged Elf (4) 60%,S,Longevity,Yi the Mighty Wing,0.04 Four Lords of the Winged Elf (4) 60%,S,Durability,Feather Lord,0.04 Four Lords of the Winged Elf (4) 60%,S,Soulprime,Ien the Arbor,0.04 Four Lords of the Winged Elf (4) 60%,S,Lifeprime,Yi the Earthquake,0.04 Sin of the Fallen God (2) 20%,S,Soulprime,Minister Tsu,0.04 Sin of the Fallen God (2) 20%,S,Lifeprime,Tsuan,0.04 Autumn Omen (2) 20%,S,Battle,Yeh Kuhan,0.04 Inner Devil (4) 60%,S,Lifeprime,Holeen,0.04 Inner Devil (4) 60%,S,Longevity,Vanished Ancestor,0.04 Non Set,S,Soulprime,Harpy Wraith,0.04 Non Set,S,Battle,Archdemon Isrifar,0.04 Powerful Army (2) 20%,S,Destroyer,General Summer,0.04 Aria of Dawn (3) 40%,S,Longevity,Emperor Tsang,0.04 Symphony of Fate (2) 20%,S,Durability,Princess of Moonlight,0.04 Symphony of Fate (2) 20%,S,Destroyer,Chungyun,0.04 Aria of Dawn (3) 40%,S,Soulprime,Lethal Vengeance,0.04 Aria of Dawn (3) 40%,S,Lifeprime,Armageddon,0.04 Sacred Feather Wings (2) 20%,S,Durability,Elven Priest Yuusa,0.04 Sacred Feather Wings (2) 20%,S,Longevity,Plume City Elder,0.04 NonSet,S,Battle,Etherblade Elder,0.04 Corona (2) 20%,S,Durability,Elder Star,0.04 Corona (2) 20%,S,Lifeprime,Elder Yashimo,0.04 Inner Devil (4) 60%,S,Battle,Yelling to the Sky,0.04 Lord of All Beasts (2) 20%,S,Soulprime,City of the Lost Elder,0.04 Lord of All Beasts (2) 20%,S,Destroyer,Beastmaster Hokka,0.04 Inner Devil (4) 60%,S,Soulprime,Emperor Aurogon,0.04 Wiseman (2) 20%,S,Lifeprime,Tiger Won,0.04 Wiseman (2) 20%,S,Battle,Anonymous Wiseman,0.04 NonSet,S,Durability,Jane the Harper,0.04 Nuema Portal (6) 100%,S,Lifeprime,Grand Wizard Tensa,0.04 Nuema Portal (6) 100%,S,Soulprime,Soul Controller Saki,0.04 Warsong City (6) 70%,S,Longevity,The Incacerate,0.04 NonSet,S,Destroyer,Winged Commander,0.04 NonSet,S,Destroyer,General Helian,0.04 Celestial Tigers (2) 20%,A,Destroyer,Heavenly Tiger,0.09 Celestial Tigers (2) 20%,A,Battle,Demonic Tiger,0.09 Dark Trio (3) 35%,A,Destroyer,Thom Mundan,0.09 Dark Trio (3) 35%,A,Soulprime,Gaurnob Guard,0.09 Dark Trio (3) 35%,A,Longevity,Monoblat Dracoboa,0.09 Three Venerators (3) 35%,A,Durability,Infernal Spikewing,0.09 Three Venerators (3) 35%,A,Battle,Rancid Venerator,0.09 Three Venerators (3) 35%,A,Lifeprime,Torturess Venerator,0.09 Devil Lord Soul (2) 20%,A,Longevity,Dread Lord Hengchih,0.09 Dimension (4) 50%,A,Durability,Chaotic Ravager,0.09 Dimension (4) 50%,A,Soulprime,Wolfen Ironside,0.09 Dimension (4) 50%,A,Lifeprime,Lady Frostburn,0.09 Dimension (4) 50%,A,Longevity,Ultimate Stance,0.09 Skynet (4) 50%,A,Durability,Primeval Elemental,0.09 Skynet (4) 50%,A,Soulprime,Shonabu,0.09 Skynet (4) 50%,A,Destroyer,Astaria,0.09 Skynet (4) 50%,A,Longevity,Madam Sadi,0.09 Devil Lord Soul (2) 20%,A,Soulprime,Dismal Duke,0.09 NonSet,A,Durability,Dimentora,0.09 NonSet,A,Longevity,Burial Inferno,0.09 Eternal Difference (2) 20%,A,Soulprime,Chin Wuming,0.09 Eternal Difference (2) 20%,A,Lifeprime,Fei Kungxing,0.09 Autumn Omen (2) 20%,A,Durability,Miss Chiu,0.09 Corona (3) 35%,A,Durability,King Kisian,0.09 Shroud (3) 35%,A,Battle,Prophet Mogo,0.09 Luminance (3) 35%,A,Lifeprime,Lord Gugg,0.09 Divine Furies (3) 35%,A,Destroyer,Emissary of Light,0.09 Divine Furies (3) 35%,A,Soulprime,Emissary of Shadow,0.09 Divine Furies (3) 35%,A,Longevity,Emissary of Void,0.09 Oath of Extinction (3) 35%,A,Durability,Emissary of Corona,0.09 Oath of Extinction (3) 35%,A,Battle,Emissary of Shroud,0.09 Oath of Extinction (3) 35%,A,Lifeprime,Emissary of Luminance,0.09 Abaddon (5) 60%,A,Soulprime,Puppeteer,0.09 Abaddon (5) 60%,A,Longevity,Mask of Grief,0.09 Abaddon (5) 60%,A,Durability,Leaf Rain Dryad,0.09 Abaddon (5) 60%,A,Destroyer,Borobudur Lord,0.09 Abaddon (5) 60%,A,Battle,Peachblossom Ritualist,0.09 Seat of Torment (4) 50%,A,Longevity,Queen Xipher,0.09 Seat of Torment (4) 50%,A,Lifeprime,Trap Master Fierce,0.09 Seat of Torment (4) 50%,A,Soulprime,Lord of Captivation,0.09 Seat of Torment (4) 50%,A,Destroyer,Hellfire Abomination,0.09 Powerful Army (2) 20%,A,Battle,Guard Seven,0.09 Six Candleflame Sovereigns (6) 70%,A,Soulprime,Emperor Aohe,0.09 Six Candleflame Sovereigns (6) 70%,A,Longevity,Gorath,0.09 Six Candleflame Sovereigns (6) 70%,A,Durability,Emperor Chigo,0.09 Six Candleflame Sovereigns (6) 70%,A,Battle,Mistress of Night,0.09 Six Candleflame Sovereigns (6) 70%,A,Lifeprime,Ghost Wing,0.09 Six Candleflame Sovereigns (6) 70%,A,Destroyer,Emperor Locen,0.09 NonSet,A,Lifeprime,Duke Blacke,0.09 Autumnal God (3) 35%,A,Longevity,Celestial Sister,0.09 Autumnal God (3) 35%,A,Lifeprime,Tideborn Princess,0.09 Autumnal God (3) 35%,A,Battle,Sheomay,0.09 Warsong City (6) 70%,A,Soulprime,Pestilent Destroyer,0.09 Warsong City (6) 70%,A,Durability,Obscure Reaper,0.09 Warsong City (6) 70%,A,Destroyer,Snakefist Guardian,0.09 Warsong City (6) 70%,A,Lifeprime,Cannonfist Orclord,0.09 Warsong City (6) 70%,A,Battle,Shadowskull Lich,0.09 Human (2) 15%,A,Soulprime,Blademaster Trainer,0.09 Human (2) 15%,A,Battle,Wizard Trainer,0.09 Untamed (2) 15%,A,Longevity,Barbarian Trainer,0.09 Untamed (2) 15%,A,Lifeprime,Venomancer Trainer,0.09 Winged Elf (2) 15%,A,Destroyer,Archer Trainer,0.09 Winged Elf (2) 15%,A,Durability,Cleric Trainer,0.09 T.born (2) 15%,A,Destroyer,Assassin Trainer,0.09 T.born (2) 15%,A,Soulprime,Psychic Trainer,0.09 E.guard (2) 15%,A,Durability,Seeker Trainer,0.09 E.guard (2) 15%,A,Lifeprime,Mystic Trainer,0.09 NonSet,A,Destroyer,Overseer Aeban,0.09 NonSet,A,Destroyer,Pet Skill Trainer Tsu,0.09 NonSet,A,Battle,Lord Isrifar,0.09 Earliest Trial (3) 35%,B,Destroyer,Rend Razorjaw,1.28 Earliest Trial (3) 35%,B,Soulprime,Poisontail Occultist,1.28 Earliest Trial (3) 35%,B,Longevity,Thromh the Mighty,1.28 NonSet,B,Lifeprime,Farng,1.28 NonSet,B,Battle,Krimson Beyond,1.28 NonSet,B,Destroyer,Suzerix, Adalwolf Elder,1.28 Army Crowd (3) 35%,B,Battle,Commander Fugma,1.28 Army Crowd (3) 35%,B,Durability,Archmage Kashu,1.28 Army Crowd (3) 35%,B,Lifeprime,Omnipotent Drake,1.28 NonSet,B,Soulprime,Jewelscalen,1.28 NonSet,B,Longevity,Viriddis Stormhorn,1.28 NonSet,B,Durability,Qingzi,1.28 Twin Lords of Hell (2) 15%,B,Destroyer,Damned Gaurnob,1.28 Twin Lords of Hell (2) 15%,B,Battle,Cenequus Polearm,1.28 NonSet,B,Destroyer,Watchman Chin,1.28 NonSet,B,Battle,Nightspike Bloodguard,1.28 NonSet,B,Soulprime,Soulbanisher,1.28 NonSet,B,Durability,Vipenalt,1.28 NonSet,B,Lifeprime,Fataliqua,1.28 NonSet,B,Longevity,Soulripper,1.28 NonSet,B,Durability,Coredash,1.28 NonSet,B,Soulprime,Djinscream,1.28 NonSet,B,Destroyer,Steelation,1.28 NonSet,B,Longevity,Dark Colluseast,1.28 NonSet,B,Battle,Hu the Head Robber,1.28 NonSet,B,Lifeprime,Inferno of Sacrifice,1.28 NonSet,B,Soulprime,Soul of Hsuehfeng,1.28 NonSet,B,Battle,99 White Guard,1.28 NonSet,B,Destroyer,Chintien,1.28 NonSet,B,Lifeprime,Lord of Percussion,1.28 NonSet,B,Longevity,Cosmoforce,1.28 NonSet,B,Durability,Deathflow,1.28 NonSet,B,Lifeprime,Illusion Nemen,1.28 Dust of History (2) 15%,B,Soulprime,General Wurlord,1.28 Dust of History (2) 15%,B,Lifeprime,General Feng,1.28 NonSet,B,Soulprime,Spirit of Yi Chinglin,1.28 Corona (3) 35%,B,Soulprime,Taomaster Kyno,1.28 Shroud (3) 35%,B,Soulprime,Craftsman Yurin,1.28 Luminance (3) 35%,B,Durability,Tactician Mur,1.28 Corona (3) 35%,B,Longevity,Stargazer Kin Soz,1.28 Shroud (3) 35%,B,Destroyer,Knight Synea,1.28 Luminance (3) 35%,B,Battle,Knight Inuwen,1.28 NonSet,B,Lifeprime,Mystical Jarax,1.28 NonSet,B,Battle,Relic of Wind,1.28 NonSet,B,Destroyer,Foretoken Bearer,1.28 NonSet,B,Longevity,Burning Soul,1.28 NonSet,B,Durability,Drake Fling,1.28 NonSet,B,Battle,Genesis Blink,1.28 NonSet,B,Destroyer,Massaca Seben,1.28 NonSet,B,Durability,Ancient Tigara,1.28 NonSet,B,Lifeprime,Herzen Sori Demos,1.28 NonSet,B,Longevity,Primal Fear,1.28 NonSet,B,Lifeprime,Buddha's Servant,1.28 NonSet,B,Soulprime,Hauntery Queen,1.28 Lunaweaver (2) 15%,B,Battle,Crimson Lunaweaver,1.28 NonSet,B,Longevity,Herald of Agony,1.28 Lunaweaver (2) 15%,B,Destroyer,Darkness Lunaweaver,1.28 NonSet,B,Durability,Knight of Terror,1.28 NonSet,B,Battle,Bloodsurge Ultera,1.28 NonSet,B,Destroyer,Infernal Sonikbeast,1.28 NonSet,B,Durability,Wang Erhli,1.28 NonSet,B,Longevity,Wang Tali,1.28 Golden Flower Silverleaf (2) 15%,B,Durability,Mrs. Zoologist,1.28 Golden Flower Silverleaf (2) 15%,B,Longevity,Zoologist Yin,1.28 NonSet,B,Lifeprime,Niang Hu,1.28 NonSet,B,Soulprime,Ladywraith,1.28 Wraith Lord (6) 60%,B,Battle,Luminoc Architect,1.28 Wraith Lord (6) 60%,B,Destroyer,Krixxix,1.28 Wraith Lord (6) 60%,B,Longevity,Gouf - Aerox Chief,1.28 Wraith Lord (6) 60%,B,Durability,Demonic Feligar,1.28 Wraith Lord (6) 60%,B,Lifeprime,Khewy - Rattus Lord,1.28 Wraith Lord (6) 60%,B,Soulprime,Oggo,1.28 Packs Opening Simulator.rar -
Randomize with specific percentage
Smurfin replied to Smurfin's topic in AutoIt General Help and Support
The actual packs I'm going to simulate are from Perfect World MMO game, there are a lot of packs and here below are examples of them, there are various items and chances in each http://www.pwdatabase.com/pwi/quest/34010 http://www.pwdatabase.com/pwi/items/42202 there is one item with (0.0005%), that's 0.000005 , so many zeros, if using array do you think 1 million arrays are gonna work ? Simulating x% chance like that using randomized number is correct, right ? it's still gonna be x% that way. I'll design about how the GUI would be like and use the example you guys gave later on, it's gonna be using icons too, like in that link, so the ini file would contain how many items in the packs, the icon file, chances, and names. I'd also like to count how many packs opened until xxxxxxxxxx item appears, manual and automatically so I'd know the odds. Thanks again. -
I want to make something like opening lucky packs, but the contents of the packs are fixed like for example : Opening Lucky Pack A will give one of these items with fixed chances in percentage - Candy (90%) - Hamburger (4%) - Hot Dog (4%) - Fried Chicken (1%) - iPhone (0.4%) - iPad (0.4%) - Laptop (0.1%) - Motorcycle (0.07%) - Car (0.02%) - Small House (0.009%) - Big House (0.001%) If we add all those chances, it will be equal to 100%. My idea is to just randomize integer from 1 to 100000 then put the function onto a button and when the button is clicked if the number appears is : 1 to 90000 then the prize is candy 90001 to 94000 the prize is Hamburger 94001 to 98000 the prize is Hot Dog 98001 to 99000 the prize is Fried Chicken 99001 to 99400 the prize is iPhone 99401 to 99800 the prize is iPad 99801 to 99900 the prize is Laptop 99901 to 99970 the prize is Motorcycle 99971 to 99990 the prize is Car 99991 to 99999 the prize is Small House 100000 the prize is Big House It seems right to me but I'm open to other methods because I'd like to customize the chances and the items in an ini file , so I can make and add as many customizable Lucky Packs easier by just creating new ini files and edit it. The only randomize I know from AutoIT is by using Random(). Is there any easier method to make this ?
-
hi, can anyone give a hint how to create two loops but executed at the same time, like running 2 compiled exe. for example i want to freeze a value in memory using nomadmemory's _memorypointerwrite udf and loop it using while, and i want to put some other things in the loop but they have some delay in it using sleep(), if I put together in one loop, the _memorypointerwrite will be affected by the delay, but if i use two 'while' , it'll be nested in one of the 'while' until it terminates, so how do i make them running at the same time ?
-
how to make a timer inside a loop
Smurfin replied to Smurfin's topic in AutoIt General Help and Support
thanks everyone, I'll try to figure out how to fit these scripts to use with my existing scripts. I'll post again later if I got stuck. -
can anyone please teach me how to make a timer inside a main program loop, so the timer will only execute a certain function after like 30 minutes and the loops goes on without executing this one function again, only after the next 30 minutes it will be executed again. thanks in advance.
-
[ask] how to release window focus ?
Smurfin replied to Smurfin's topic in AutoIt General Help and Support
already did that, in fact I played four char ID, and four of them gained focus, and that eats lots of resources and the one window I active on suffer performance/framerate hit badly.