Similar to getUserName().
This would prevent leechers from using some scripts on the authors world for an example. Would come handy for scripters that are currently leveling in X spawn.
Printable View
Similar to getUserName().
This would prevent leechers from using some scripts on the authors world for an example. Would come handy for scripters that are currently leveling in X spawn.
Don't like the idea, sorry. Can't see it being used practically.
The tibia client can not supply you with this info.
i hate those who speak as if they were pro asm programmers and they dont know shit lol
I don't think this suggestion will help the community.
Maybe so, I was just throwing the idea out there to discuss. My reason for posting it is that I am planning on releasing more free scripts in my thread, however, most of the spawns are where I currently level at. I would like to release a few more that I use, but spawns will eventually get more crowded.
By blocking of certain worlds, there might be more free/paid scripts released. However, the negative side is that the user is limited ofcourse.
Imo it sohuld be implemented, would make my life a lot easier :P Also it would be possible to release some exclusive scripts for really good spawns.
Not like it's you who would have to spend time implementing it so why be so negative? It's up to DarkstaR if he got time for that (even though I believe it isn't hard to implement). Still would like to see fix to special areas and browse field function before that :)
This board is here to discuss suggestions ;) I was just wondering what else @Xeno Scripts thought might benefit from a function like this since he said "Nakuu's Dice script etc". If he had a good example i might agree with you guys and vote for this suggestion aswell.
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()?
I am positive that it is possible to decrypt these in one way or another. Although I doubt very many people can do it.
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.
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.
If you're going to ruin a world for everyone else (a.k.a. me), then you should be prepared to ruin your own.
This is how it would be used most:
lua code:
if Self.World("blablabla") then
Self.SayToNpc({"Hi", "Transfer 1000000", "blabla", "yes"}, 65)
end