| 11-21-2004, 08:08 PM | #1 |
How do you make a save load code name sensitive? |
| 11-21-2004, 08:28 PM | #2 |
store the name of the player in a variable and include it in the code |
| 11-21-2004, 08:32 PM | #3 |
Allright heres what I have so far. Can someone tell me how to convert it to letters/numbers from here and include it in code?. Actions For each (Integer A) from 1 to 16, do (Actions) Loop - Actions For each (Integer B) from 1 to 46, do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Substring((Name of Player 1 (Red)), (Integer A), ((Integer A) + 1))) Equal to UseableCharecters[(Integer B)] Then - Actions Set PlayerNameSum = (PlayerNameSum + (Integer B)) Else - Actions |
| 11-22-2004, 01:50 AM | #4 |
Allright heres what I have so far. Can someone tell me how to convert it to letters/numbers from here and include it in code?. Actions For each (Integer A) from 1 to 16, do (Actions) Loop - Actions For each (Integer B) from 1 to 46, do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Substring((Name of Player 1 (Red)), (Integer A), ((Integer A) + 1))) Equal to UseableCharecters[(Integer B)] Then - Actions Set PlayerNameSum = (PlayerNameSum + (Integer B)) Else - Actions |
| 11-22-2004, 03:13 PM | #5 |
I guess there is 1 mistake in this: u make a substring which contains 2 characters. playername="iNfraNe" int a=4 substring(playername, int a, int a + 1) would return "ra" as string. Change second int to int a aswell. Ithink you can learn alot from looking at other save/load codes. Just download one and try to understand it, then try making the same without looking on it. If u can make it without looking at the example you will prolly be able to make one yourself (but make sure you also understand it). |
| 11-23-2004, 03:55 AM | #6 |
already did it for him no need to reply further. |
| 11-24-2004, 04:56 AM | #7 |
Ive made a few save/loads, ive found the best way is to randomly generate a bunch of codesets, and make it into jass, so u would use an array from 1-99, then make the first 2 characters show waht code set so it can encode/decode with the correct 1. Heres a few things u can do 2 make it hard 2 crack: 1. add alot of code sets that r selected randomly 2. make it save the first 3 letters of a players name (this is the minimum of bnet) 3. if your saving 3 digits out of a max of 6 for exp or something, make the other 3 randomly generated characters 4. place constents, for instance, make the first and alst characters Xs, so if they r ever changed it wont work 5. dont make ur code just like player name, then exp, scramble it up, make the first character b the last character of player name, then the next character is the third exp character and so on. if ur wanting 2 c some triggers taht do this let me know, there fairly short also for a save/load. |
| 11-24-2004, 08:14 AM | #8 |
