XenoBot Forums - Powered by vBulletin

User Tag List

Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 32

Thread: getWorld()

  1. #21
    Banned
    Join Date
    Aug 2012
    Location
    Netherlands
    Posts
    1,460
    Mentioned
    38 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Milice View Post
    FALSE
    Since it have to be ran decrypted there is obviously a way for the user to just simply remove the encryption.
    Good luck:

    Code:
    code='\27\76\117\97\81\0\1\4\4\4\8\0\56\0\0\0\64\67\58\92\85\115\101\114\115\92\74\101\114\111\101\110\92\68\111\99\117\109\101\110\116\115\92\88\101\110\111\66\111\116\92\83\99\114\105\112\116\115\92\46\101\110\99\114\121\112\116\46\108\117\97\0\1\0\0\0\29\0\0\0\0\0\0\8\29\0\0\0\36\0\0\0\69\64\0\0\70\128\192\0\129\192\0\0\193\0\1\0\1\65\1\0\65\129\1\0\129\129\1\0\193\129\1\0\92\128\128\3\71\0\0\0\69\64\0\0\70\128\192\0\129\0\2\0\193\0\1\0\1\65\2\0\65\129\2\0\129\129\1\0\193\129\2\0\92\128\128\3\71\192\1\0\69\192\2\0\133\64\3\0\134\128\64\1\193\0\3\0\36\65\0\0\156\128\128\1\73\128\0\134\30\0\128\0\14\0\0\0\4\8\0\0\0\115\116\97\109\72\85\68\0\4\4\0\0\0\72\85\68\0\4\4\0\0\0\78\101\119\0\3\0\0\0\0\0\0\36\64\3\0\0\0\0\0\0\55\64\4\10\0\0\0\83\116\97\109\105\110\97\58\32\0\3\0\0\0\0\0\224\111\64\4\9\0\0\0\115\116\97\109\50\72\85\68\0\3\0\0\0\0\0\64\80\64\4\1\0\0\0\0\3\0\0\0\0\0\0\0\0\4\3\0\0\0\95\71\0\4\11\0\0\0\114\101\102\114\101\115\104\72\85\68\0\4\7\0\0\0\77\111\100\117\108\101\0\2\0\0\0\0\0\0\0\2\0\0\0\8\0\0\0\0\1\0\7\14\0\0\0\65\64\0\0\71\0\0\0\64\0\0\0\131\0\128\1\22\192\0\128\69\1\0\0\134\1\1\0\85\129\129\2\71\1\0\0\97\64\0\0\22\64\254\127\69\0\0\0\94\0\0\1\30\0\128\0\2\0\0\0\4\7\0\0\0\98\117\102\102\101\114\0\4\1\0\0\0\0\0\0\0\0\14\0\0\0\3\0\0\0\3\0\0\0\4\0\0\0\4\0\0\0\4\0\0\0\5\0\0\0\5\0\0\0\5\0\0\0\5\0\0\0\4\0\0\0\5\0\0\0\7\0\0\0\7\0\0\0\8\0\0\0\5\0\0\0\7\0\0\0\115\116\114\116\98\108\0\0\0\0\0\13\0\0\0\16\0\0\0\40\102\111\114\32\103\101\110\101\114\97\116\111\114\41\0\4\0\0\0\11\0\0\0\12\0\0\0\40\102\111\114\32\115\116\97\116\101\41\0\4\0\0\0\11\0\0\0\14\0\0\0\40\102\111\114\32\99\111\110\116\114\111\108\41\0\4\0\0\0\11\0\0\0\2\0\0\0\118\0\5\0\0\0\9\0\0\0\0\0\0\0\0\0\0\0\16\0\0\0\25\0\0\0\0\1\0\6\50\0\0\0\69\64\0\0\70\128\192\0\133\192\0\0\134\0\65\1\156\128\128\0\143\64\65\1\92\128\0\1\71\0\0\0\69\64\0\0\70\128\192\0\133\192\0\0\134\0\65\1\156\128\128\0\143\64\65\1\197\0\0\0\141\192\0\1\142\64\65\1\92\128\0\1\71\128\1\0\69\192\1\0\75\0\194\0\197\0\0\0\1\65\2\0\69\129\1\0\213\64\129\1\92\64\128\1\69\192\0\0\70\0\193\0\92\128\128\0\25\128\194\0\22\128\1\128\69\192\1\0\75\192\194\0\193\0\3\0\1\65\3\0\65\129\3\0\92\64\128\2\22\128\2\128\69\192\0\0\70\0\193\0\92\128\128\0\25\192\195\0\22\64\1\128\69\192\1\0\75\192\194\0\193\0\4\0\1\65\4\0\65\65\4\0\92\64\128\2\30\0\128\0\18\0\0\0\4\5\0\0\0\115\116\97\109\0\4\5\0\0\0\109\97\116\104\0\4\6\0\0\0\102\108\111\111\114\0\4\5\0\0\0\83\101\108\102\0\4\8\0\0\0\83\116\97\109\105\110\97\0\3\0\0\0\0\0\0\78\64\4\6\0\0\0\115\116\97\109\50\0\4\9\0\0\0\115\116\97\109\50\72\85\68\0\4\8\0\0\0\83\101\116\84\101\120\116\0\4\2\0\0\0\58\0\3\0\0\0\0\0\192\162\64\4\13\0\0\0\83\101\116\84\101\120\116\67\111\108\111\114\0\3\0\0\0\0\0\64\106\64\3\0\0\0\0\0\64\90\64\3\0\0\0\0\0\0\62\64\3\0\0\0\0\0\64\138\64\3\0\0\0\0\0\224\111\64\3\0\0\0\0\0\0\0\0\0\0\0\0\50\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\20\0\0\0\20\0\0\0\20\0\0\0\20\0\0\0\20\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\22\0\0\0\22\0\0\0\22\0\0\0\22\0\0\0\22\0\0\0\23\0\0\0\23\0\0\0\23\0\0\0\23\0\0\0\23\0\0\0\23\0\0\0\25\0\0\0\1\0\0\0\7\0\0\0\109\111\100\117\108\101\0\0\0\0\0\49\0\0\0\0\0\0\0\29\0\0\0\8\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\16\0\0\0\16\0\0\0\16\0\0\0\16\0\0\0\25\0\0\0\16\0\0\0\25\0\0\0\29\0\0\0\1\0\0\0\4\0\0\0\104\52\120\0\1\0\0\0\28\0\0\0\0\0\0\0'
    loadstring(code) ()

  2. #22
    Senior Member Tripkip's Avatar
    Join Date
    Aug 2012
    Location
    Netherlands
    Posts
    1,310
    Mentioned
    105 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Avani View Post
    Good luck:

    Code:
    code='\27\76\117\97\81\0\1\4\4\4\8\0\56\0\0\0\64\67\58\92\85\115\101\114\115\92\74\101\114\111\101\110\92\68\111\99\117\109\101\110\116\115\92\88\101\110\111\66\111\116\92\83\99\114\105\112\116\115\92\46\101\110\99\114\121\112\116\46\108\117\97\0\1\0\0\0\29\0\0\0\0\0\0\8\29\0\0\0\36\0\0\0\69\64\0\0\70\128\192\0\129\192\0\0\193\0\1\0\1\65\1\0\65\129\1\0\129\129\1\0\193\129\1\0\92\128\128\3\71\0\0\0\69\64\0\0\70\128\192\0\129\0\2\0\193\0\1\0\1\65\2\0\65\129\2\0\129\129\1\0\193\129\2\0\92\128\128\3\71\192\1\0\69\192\2\0\133\64\3\0\134\128\64\1\193\0\3\0\36\65\0\0\156\128\128\1\73\128\0\134\30\0\128\0\14\0\0\0\4\8\0\0\0\115\116\97\109\72\85\68\0\4\4\0\0\0\72\85\68\0\4\4\0\0\0\78\101\119\0\3\0\0\0\0\0\0\36\64\3\0\0\0\0\0\0\55\64\4\10\0\0\0\83\116\97\109\105\110\97\58\32\0\3\0\0\0\0\0\224\111\64\4\9\0\0\0\115\116\97\109\50\72\85\68\0\3\0\0\0\0\0\64\80\64\4\1\0\0\0\0\3\0\0\0\0\0\0\0\0\4\3\0\0\0\95\71\0\4\11\0\0\0\114\101\102\114\101\115\104\72\85\68\0\4\7\0\0\0\77\111\100\117\108\101\0\2\0\0\0\0\0\0\0\2\0\0\0\8\0\0\0\0\1\0\7\14\0\0\0\65\64\0\0\71\0\0\0\64\0\0\0\131\0\128\1\22\192\0\128\69\1\0\0\134\1\1\0\85\129\129\2\71\1\0\0\97\64\0\0\22\64\254\127\69\0\0\0\94\0\0\1\30\0\128\0\2\0\0\0\4\7\0\0\0\98\117\102\102\101\114\0\4\1\0\0\0\0\0\0\0\0\14\0\0\0\3\0\0\0\3\0\0\0\4\0\0\0\4\0\0\0\4\0\0\0\5\0\0\0\5\0\0\0\5\0\0\0\5\0\0\0\4\0\0\0\5\0\0\0\7\0\0\0\7\0\0\0\8\0\0\0\5\0\0\0\7\0\0\0\115\116\114\116\98\108\0\0\0\0\0\13\0\0\0\16\0\0\0\40\102\111\114\32\103\101\110\101\114\97\116\111\114\41\0\4\0\0\0\11\0\0\0\12\0\0\0\40\102\111\114\32\115\116\97\116\101\41\0\4\0\0\0\11\0\0\0\14\0\0\0\40\102\111\114\32\99\111\110\116\114\111\108\41\0\4\0\0\0\11\0\0\0\2\0\0\0\118\0\5\0\0\0\9\0\0\0\0\0\0\0\0\0\0\0\16\0\0\0\25\0\0\0\0\1\0\6\50\0\0\0\69\64\0\0\70\128\192\0\133\192\0\0\134\0\65\1\156\128\128\0\143\64\65\1\92\128\0\1\71\0\0\0\69\64\0\0\70\128\192\0\133\192\0\0\134\0\65\1\156\128\128\0\143\64\65\1\197\0\0\0\141\192\0\1\142\64\65\1\92\128\0\1\71\128\1\0\69\192\1\0\75\0\194\0\197\0\0\0\1\65\2\0\69\129\1\0\213\64\129\1\92\64\128\1\69\192\0\0\70\0\193\0\92\128\128\0\25\128\194\0\22\128\1\128\69\192\1\0\75\192\194\0\193\0\3\0\1\65\3\0\65\129\3\0\92\64\128\2\22\128\2\128\69\192\0\0\70\0\193\0\92\128\128\0\25\192\195\0\22\64\1\128\69\192\1\0\75\192\194\0\193\0\4\0\1\65\4\0\65\65\4\0\92\64\128\2\30\0\128\0\18\0\0\0\4\5\0\0\0\115\116\97\109\0\4\5\0\0\0\109\97\116\104\0\4\6\0\0\0\102\108\111\111\114\0\4\5\0\0\0\83\101\108\102\0\4\8\0\0\0\83\116\97\109\105\110\97\0\3\0\0\0\0\0\0\78\64\4\6\0\0\0\115\116\97\109\50\0\4\9\0\0\0\115\116\97\109\50\72\85\68\0\4\8\0\0\0\83\101\116\84\101\120\116\0\4\2\0\0\0\58\0\3\0\0\0\0\0\192\162\64\4\13\0\0\0\83\101\116\84\101\120\116\67\111\108\111\114\0\3\0\0\0\0\0\64\106\64\3\0\0\0\0\0\64\90\64\3\0\0\0\0\0\0\62\64\3\0\0\0\0\0\64\138\64\3\0\0\0\0\0\224\111\64\3\0\0\0\0\0\0\0\0\0\0\0\0\50\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\20\0\0\0\20\0\0\0\20\0\0\0\20\0\0\0\20\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\22\0\0\0\22\0\0\0\22\0\0\0\22\0\0\0\22\0\0\0\23\0\0\0\23\0\0\0\23\0\0\0\23\0\0\0\23\0\0\0\23\0\0\0\25\0\0\0\1\0\0\0\7\0\0\0\109\111\100\117\108\101\0\0\0\0\0\49\0\0\0\0\0\0\0\29\0\0\0\8\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\16\0\0\0\16\0\0\0\16\0\0\0\16\0\0\0\25\0\0\0\16\0\0\0\25\0\0\0\29\0\0\0\1\0\0\0\4\0\0\0\104\52\120\0\1\0\0\0\28\0\0\0\0\0\0\0'
    loadstring(code) ()
    Looked into this a while ago, and @Avani Your script could be decrypted ina few minutes. If you know how.
    Used string.dump()?
    Last edited by Tripkip; 07-26-2013 at 03:23 PM.

  3. #23
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    I am positive that it is possible to decrypt these in one way or another. Although I doubt very many people can do it.

  4. #24
    Banned
    Join Date
    Aug 2011
    Location
    Sweden
    Posts
    106
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Avani View Post
    Good luck:

    Code:
    code='\27\76\117\97\81\0\1\4\4\4\8\0\56\0\0\0\64\67\58\92\85\115\101\114\115\92\74\101\114\111\101\110\92\68\111\99\117\109\101\110\116\115\92\88\101\110\111\66\111\116\92\83\99\114\105\112\116\115\92\46\101\110\99\114\121\112\116\46\108\117\97\0\1\0\0\0\29\0\0\0\0\0\0\8\29\0\0\0\36\0\0\0\69\64\0\0\70\128\192\0\129\192\0\0\193\0\1\0\1\65\1\0\65\129\1\0\129\129\1\0\193\129\1\0\92\128\128\3\71\0\0\0\69\64\0\0\70\128\192\0\129\0\2\0\193\0\1\0\1\65\2\0\65\129\2\0\129\129\1\0\193\129\2\0\92\128\128\3\71\192\1\0\69\192\2\0\133\64\3\0\134\128\64\1\193\0\3\0\36\65\0\0\156\128\128\1\73\128\0\134\30\0\128\0\14\0\0\0\4\8\0\0\0\115\116\97\109\72\85\68\0\4\4\0\0\0\72\85\68\0\4\4\0\0\0\78\101\119\0\3\0\0\0\0\0\0\36\64\3\0\0\0\0\0\0\55\64\4\10\0\0\0\83\116\97\109\105\110\97\58\32\0\3\0\0\0\0\0\224\111\64\4\9\0\0\0\115\116\97\109\50\72\85\68\0\3\0\0\0\0\0\64\80\64\4\1\0\0\0\0\3\0\0\0\0\0\0\0\0\4\3\0\0\0\95\71\0\4\11\0\0\0\114\101\102\114\101\115\104\72\85\68\0\4\7\0\0\0\77\111\100\117\108\101\0\2\0\0\0\0\0\0\0\2\0\0\0\8\0\0\0\0\1\0\7\14\0\0\0\65\64\0\0\71\0\0\0\64\0\0\0\131\0\128\1\22\192\0\128\69\1\0\0\134\1\1\0\85\129\129\2\71\1\0\0\97\64\0\0\22\64\254\127\69\0\0\0\94\0\0\1\30\0\128\0\2\0\0\0\4\7\0\0\0\98\117\102\102\101\114\0\4\1\0\0\0\0\0\0\0\0\14\0\0\0\3\0\0\0\3\0\0\0\4\0\0\0\4\0\0\0\4\0\0\0\5\0\0\0\5\0\0\0\5\0\0\0\5\0\0\0\4\0\0\0\5\0\0\0\7\0\0\0\7\0\0\0\8\0\0\0\5\0\0\0\7\0\0\0\115\116\114\116\98\108\0\0\0\0\0\13\0\0\0\16\0\0\0\40\102\111\114\32\103\101\110\101\114\97\116\111\114\41\0\4\0\0\0\11\0\0\0\12\0\0\0\40\102\111\114\32\115\116\97\116\101\41\0\4\0\0\0\11\0\0\0\14\0\0\0\40\102\111\114\32\99\111\110\116\114\111\108\41\0\4\0\0\0\11\0\0\0\2\0\0\0\118\0\5\0\0\0\9\0\0\0\0\0\0\0\0\0\0\0\16\0\0\0\25\0\0\0\0\1\0\6\50\0\0\0\69\64\0\0\70\128\192\0\133\192\0\0\134\0\65\1\156\128\128\0\143\64\65\1\92\128\0\1\71\0\0\0\69\64\0\0\70\128\192\0\133\192\0\0\134\0\65\1\156\128\128\0\143\64\65\1\197\0\0\0\141\192\0\1\142\64\65\1\92\128\0\1\71\128\1\0\69\192\1\0\75\0\194\0\197\0\0\0\1\65\2\0\69\129\1\0\213\64\129\1\92\64\128\1\69\192\0\0\70\0\193\0\92\128\128\0\25\128\194\0\22\128\1\128\69\192\1\0\75\192\194\0\193\0\3\0\1\65\3\0\65\129\3\0\92\64\128\2\22\128\2\128\69\192\0\0\70\0\193\0\92\128\128\0\25\192\195\0\22\64\1\128\69\192\1\0\75\192\194\0\193\0\4\0\1\65\4\0\65\65\4\0\92\64\128\2\30\0\128\0\18\0\0\0\4\5\0\0\0\115\116\97\109\0\4\5\0\0\0\109\97\116\104\0\4\6\0\0\0\102\108\111\111\114\0\4\5\0\0\0\83\101\108\102\0\4\8\0\0\0\83\116\97\109\105\110\97\0\3\0\0\0\0\0\0\78\64\4\6\0\0\0\115\116\97\109\50\0\4\9\0\0\0\115\116\97\109\50\72\85\68\0\4\8\0\0\0\83\101\116\84\101\120\116\0\4\2\0\0\0\58\0\3\0\0\0\0\0\192\162\64\4\13\0\0\0\83\101\116\84\101\120\116\67\111\108\111\114\0\3\0\0\0\0\0\64\106\64\3\0\0\0\0\0\64\90\64\3\0\0\0\0\0\0\62\64\3\0\0\0\0\0\64\138\64\3\0\0\0\0\0\224\111\64\3\0\0\0\0\0\0\0\0\0\0\0\0\50\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\17\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\18\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\19\0\0\0\20\0\0\0\20\0\0\0\20\0\0\0\20\0\0\0\20\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\21\0\0\0\22\0\0\0\22\0\0\0\22\0\0\0\22\0\0\0\22\0\0\0\23\0\0\0\23\0\0\0\23\0\0\0\23\0\0\0\23\0\0\0\23\0\0\0\25\0\0\0\1\0\0\0\7\0\0\0\109\111\100\117\108\101\0\0\0\0\0\49\0\0\0\0\0\0\0\29\0\0\0\8\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\12\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\13\0\0\0\16\0\0\0\16\0\0\0\16\0\0\0\16\0\0\0\25\0\0\0\16\0\0\0\25\0\0\0\29\0\0\0\1\0\0\0\4\0\0\0\104\52\120\0\1\0\0\0\28\0\0\0\0\0\0\0'
    loadstring(code) ()
    The lua file is compile after the "encryption" but just to be perfectly clear: Decrypting that is no biggie.
    Attached Files Attached Files

  5. #25
    XenoBot Scripts Developer Syntax's Avatar
    Join Date
    Feb 2011
    Posts
    1,658
    Mentioned
    431 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Milice View Post
    The lua file is compile after the "encryption" but just to be perfectly clear: Decrypting that is no biggie.
    You wrote the file as text, not binary (wb) so it fudged it up.
    Anyways, here's the completely decompiled source:

    lua code:
    local h4x = function(strtbl)
    buffer = ""
    for v in strtbl do
    buffer = buffer .. strtbl[v]
    end
    return buffer
    end

    stamHUD = HUD.New(10, 23, "Stamina: ", 255, 255, 255)
    stam2HUD = HUD.New(65, 23, "", 0, 255, 0)
    _G.refreshHUD = Module.New("refreshHUD", function(module)
    stam = math.floor(Self.Stamina() / 60)
    stam2 = math.floor((Self.Stamina() / 60 - stam) * 60)
    stam2HUD:SetText(stam .. ":" .. stam2)
    if Self.Stamina() <= 2400 then
    stam2HUD:SetTextColor(210, 105, 30)
    else
    if Self.Stamina() <= 840 then
    stam2HUD:SetTextColor(255, 0, 0)
    end
    end
    end)


    Wasn't going to post if it was critical info, but it seemed fine to post, let me know if you want it taken down.
    (edit: just noticed you posted this code in another thread :P)

    As you can probably tell the restructuring is a bit off, but the gist of the information is saved.


    Also, @Milice, he probably didn't compile it, string.dump saves the function in bytecode of course, so that's what you were seeing.
    But he might have, it would look about the same.
    Last edited by Syntax; 07-26-2013 at 06:05 PM.

  6. #26
    Banned
    Join Date
    Apr 2012
    Location
    Little Red Dot
    Posts
    2,957
    Mentioned
    204 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Syntax View Post
    You wrote the file as text, not binary (wb) so it fudged it up.
    Anyways, here's the completely decompiled source:

    lua code:
    local h4x = function(strtbl)
    buffer = ""
    for v in strtbl do
    buffer = buffer .. strtbl[v]
    end
    return buffer
    end

    stamHUD = HUD.New(10, 23, "Stamina: ", 255, 255, 255)
    stam2HUD = HUD.New(65, 23, "", 0, 255, 0)
    _G.refreshHUD = Module.New("refreshHUD", function(module)
    stam = math.floor(Self.Stamina() / 60)
    stam2 = math.floor((Self.Stamina() / 60 - stam) * 60)
    stam2HUD:SetText(stam .. ":" .. stam2)
    if Self.Stamina() <= 2400 then
    stam2HUD:SetTextColor(210, 105, 30)
    else
    if Self.Stamina() <= 840 then
    stam2HUD:SetTextColor(255, 0, 0)
    end
    end
    end)


    Wasn't going to post if it was critical info, but it seemed fine to post, let me know if you want it taken down.
    (edit: just noticed you posted this code in another thread :P)

    As you can probably tell the restructuring is a bit off, but the gist of the information is saved.


    Also, @Milice, he probably didn't compile it, string.dump saves the function in bytecode of course, so that's what you were seeing.
    But he might have, it would look about the same.

  7. #27
    Banned
    Join Date
    Aug 2011
    Location
    Sweden
    Posts
    106
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Syntax View Post
    You wrote the file as text, not binary (wb) so it fudged it up.
    Anyways, here's the completely decompiled source:

    lua code:
    local h4x = function(strtbl)
    buffer = ""
    for v in strtbl do
    buffer = buffer .. strtbl[v]
    end
    return buffer
    end

    stamHUD = HUD.New(10, 23, "Stamina: ", 255, 255, 255)
    stam2HUD = HUD.New(65, 23, "", 0, 255, 0)
    _G.refreshHUD = Module.New("refreshHUD", function(module)
    stam = math.floor(Self.Stamina() / 60)
    stam2 = math.floor((Self.Stamina() / 60 - stam) * 60)
    stam2HUD:SetText(stam .. ":" .. stam2)
    if Self.Stamina() <= 2400 then
    stam2HUD:SetTextColor(210, 105, 30)
    else
    if Self.Stamina() <= 840 then
    stam2HUD:SetTextColor(255, 0, 0)
    end
    end
    end)


    Wasn't going to post if it was critical info, but it seemed fine to post, let me know if you want it taken down.
    (edit: just noticed you posted this code in another thread :P)

    As you can probably tell the restructuring is a bit off, but the gist of the information is saved.


    Also, @Milice, he probably didn't compile it, string.dump saves the function in bytecode of course, so that's what you were seeing.
    But he might have, it would look about the same.
    Aaaah, thx for the clarifying response

    i changed "w" to "wb" and what do u know, it worked xDD

  8. #28
    Lifetime Subscriber thorekz's Avatar
    Join Date
    Dec 2011
    Location
    Santiago, Chile
    Posts
    1,247
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    I dont like the idea, why only a few should have some scripts?
    Tibia economy is already fucked up so whats your point lol, like if 10 dicers would change anything
    Quod per sortem sternit fortem.

  9. #29
    Banned
    Join Date
    Aug 2011
    Location
    Sweden
    Posts
    106
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by thorekz View Post
    I dont like the idea, why only a few should have some scripts?
    Tibia economy is already fucked up so whats your point lol, like if 10 dicers would change anything
    That's actually a really fucking good point. With all the goldsellers / moneymakers the economy is totally fucked anywayz xD

  10. #30
    King Furpan Furpan's Avatar
    Join Date
    Jul 2012
    Location
    Thais
    Posts
    984
    Mentioned
    267 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by thorekz View Post
    I dont like the idea, why only a few should have some scripts?
    Tibia economy is already fucked up so whats your point lol, like if 10 dicers would change anything
    Well, my first idea was not the economy, but the option for the scripter to release a free script, without worrying someone might leech it and take the spawn away from you.
    If the user really want a script in X spawn, the user would have to make it's own. Making the spawn/script a bit more exclusive on certain worlds.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •