- Joined
- Apr 24, 2013
- Messages
- 1,684
- Reaction score
- 1,131
Hello hello,
I've been trying to edit some code in the Habbo swf, but I keep breaking it every time I edit something.
The Habbo swf contains the following void:
What I want to do is filter all the HTML out of _loc2_.text
This includes stuff like <b></b> and changing stuff like ☂ back to its original letter (for example é).
So the following:
Becomes something like:
The problem is that I have no idea if flash contains a functionality like this and how to implement it.
You see, I can only edit the following weird code and not the actual Flash code:
I've been trying to edit some code in the Habbo swf, but I keep breaking it every time I edit something.
The Habbo swf contains the following void:
Code:
private function §_-3vG§(param1:§_-1dD§) : void
{
var _loc2_:§_-5rd§ = null;
if(this.§_-0Yk§ == null)
{
return;
}
var _loc3_:§_-0LF§ = this.§_-0Yk§.roomSessionManager.getSession(this.§_-4pF§);
if(param1 is §_-1c4§)
{
_loc2_ = (param1 as §_-1c4§).§_-1A9§();
}
else if(param1 is §_-3Fw§)
{
_loc2_ = (param1 as §_-3Fw§).§_-1A9§();
if(_loc2_ && _loc3_ && _loc2_.userId == _loc3_.§_-1Ge§)
{
return;
}
}
else if(param1 is §_-53l§)
{
_loc2_ = (param1 as §_-53l§).§_-1A9§();
}
if(_loc2_ == null)
{
return;
}
this.§_-0Yk§.§_-0Rf§(this.§_-4pF§,_loc2_.userId,_loc2_.gesture);
this.§_-0Yk§.§_-5Bq§(this.§_-4pF§,_loc2_.userId,§_-1-T§.§_-5en§,Math.ceil(_loc2_.text.length / 10));
}
What I want to do is filter all the HTML out of _loc2_.text
This includes stuff like <b></b> and changing stuff like ☂ back to its original letter (for example é).
So the following:
Code:
this.§_-0Yk§.§_-5Bq§(this.§_-4pF§,_loc2_.userId,§_-1-T§.§_-5en§,Math.ceil(_loc2_.text.length / 10));
Becomes something like:
Code:
this.§_-0Yk§.§_-5Bq§(this.§_-4pF§,_loc2_.userId,§_-1-T§.§_-5en§,Math.ceil(FlashCodeThatFiltersOutHtml(_loc2_.text).length / 10));
The problem is that I have no idea if flash contains a functionality like this and how to implement it.
You see, I can only edit the following weird code and not the actual Flash code:
Code:
getlocal_0
getproperty Qname(PrivateNamespace("_-2GZ"),"_-0Yk")
getlocal_0
getproperty Qname(PrivateNamespace("_-2GZ"),"_-4pF")
getlocal_2
getproperty Qname(PackageNamespace(""),"userId")
getlex Qname(PackageNamespace("_-6Sq"),"_-1-T")
getproperty Qname(PackageNamespace(""),"_-5en")
getlex Qname(PackageNamespace(""),"Math")
getlocal_2
getproperty Qname(PackageNamespace(""),"text")
getproperty Qname(PackageNamespace(""),"length")
pushbyte 10
divide
callproperty Qname(PackageNamespace(""),"ceil") 1
callpropvoid Qname(Namespace("_-3NX"),"_-5Bq") 4