Please help, I want to change this code. does anyone want to help me?
drop the item code for the game The Smurfs & Co: Spellbound
Sorry I was a newcomer in this forum, so I do not understand the procedures for making a new article.
Sorry for my bad english
link game: https://apps.facebook.com/thesmurfsco-two/?fb_source=search&ref=ts&fref=ts
-----------------------------------------------------------------------------------------------------------------------------------
private static function dropItems(param1:Array, param2:Point) : void {
var _loc13_:Point = null;
var _loc14_:Drop = null;
var _loc15_:* = NaN;
var _loc16_:DropAnimator = null;
if(getTimer() % 2 == 0)
{
param1 = param1.reverse();
}
var _loc3_:Point = container.globalToLocal(param2);
var _loc4_:int = param1.length;
var _loc5_:Vector.<Point> = new Vector.<Point>();
var _loc6_:Number = range / _loc4_;
var _loc7_:Number = plusminus(100);
var _loc8_:* = 0;
while(_loc8_ < _loc4_)
{
_loc13_ = new Point();
_loc13_.x = _loc6_ * _loc8_ + plusminus(5) + _loc7_ + _loc3_.x;
_loc13_.y = _loc3_.y + dropHeight / 2 + Math.round(Math.random() * dropHeight * 2);
_loc5_.push(_loc13_);
_loc8_++;
}
var _loc9_:Vector.<Drop> = new Vector.<Drop>();
var _loc10_:Number = 5;
var _loc11_:Number = 0.1;
var _loc12_:* = false;
_loc8_ = 0;
while(_loc8_ < _loc4_)
{
_loc14_ = getDrop(param1[_loc8_]);
_loc14_.x = _loc3_.x;
_loc14_.y = _loc3_.y;
_loc14_.destination = _loc5_[_loc8_];
if(_loc14_.item.targetType == ItemTypes.COLLECTABLE && (CollectionController.Instance.checkCollectibleIsNeeded(_loc14_.item.typeVO)))
{
_loc12_ = true;
prepareCollectible(_loc14_);
CollectionController.Instance.addCollectible(_loc14_.item.typeVO as CollectibleVO,_loc14_.item.amount);
}
else
{
_loc15_ = _loc10_ + _loc8_ * _loc11_;
_loc16_ = new DropAnimator(_loc14_);
_loc16_.to(_loc5_[_loc8_],getFlyDest(param1[_loc8_]),onFlyComplete,[param1[_loc8_]],1,0.6,_loc15_);
}
_loc9_.push(_loc14_);
_loc8_++;
}
GlobalEventDispatcher.getInstance().dispatchEvent(new DropEvent(DropEvent.DROP,_loc9_));
if(_loc12_)
{
SoundManager.Instance.playUISound(SoundConstants.Resource_Rare_Drop);
}
else
{
SoundManager.Instance.playUISound(SoundConstants.Resource_Pop_Out);
}
}
--------------------------------------------------------------------------------------------------------------
code
; d0
getlocal_0
; 30
pushscope
; 20
pushnull
; 80 82 01
coerce Qname(PackageNamespace("flash.geom"),"Point")
; 63 0d
setlocal 13
; 20
pushnull
; 80 ce 03
coerce Qname(PackageNamespace("com.ubisoft.smurf2.ui.view.common"),"Drop")
; 63 0e
setlocal 14
; 28
pushnan
; 63 0f
setlocal 15
; 20
pushnull
; 80 8d 68
coerce Qname(PackageNamespace("com.ubisoft.smurf2.game.helper"),"DropAnimator")
; 63 10
setlocal 16
; 5d 93 a4 01
findpropstrict Qname(PackageNamespace("flash.utils"),"getTimer")
; 46 93 a4 01 00
callproperty Qname(PackageNamespace("flash.utils"),"getTimer") 0
; 24 02
pushbyte 2
; a4
modulo
; 24 00
pushbyte 0
; 14 09 00 00
ifne ofs0032
; d1
getlocal_1
; 46 bc ae 01 00
callproperty Qname(Namespace("http://adobe.com/AS3/2006/builtin"),"reverse") 0
; 80 06
coerce Qname(PackageNamespace(""),"Array")
; d5
setlocal_1
; 60 9a 97 01
ofs0032:getlex Qname(PrivateNamespace("-","896"),"container")
; d2
getlocal_2
; 46 d2 7c 01
callproperty Qname(PackageNamespace(""),"globalToLocal") 1
; 80 82 01
coerce Qname(PackageNamespace("flash.geom"),"Point")
; d7
setlocal_3
; d1
getlocal_1
; 66 f4 0d
getproperty Qname(PackageNamespace(""),"length")
; 73
convert_i
; 63 04
setlocal 4
; 60 b8 ae 01
getlex Multiname("Vector",[PrivateNamespace("-","896"),PackageNamespace(""),PrivateNamespace("-","1164"),PackageNamespace("com.ubisoft.smurf2.game.controllers"),PackageInternalNs("com.ubisoft.smurf2.game.controllers"),Namespace("http://adobe.com/AS3/2006/builtin"),ProtectedNamespace("com.ubisoft.smurf2.game.controllers:DropManager"),StaticProtectedNs("com.ubisoft.smurf2.game.controllers:DropManager"),PackageNamespace("__AS3__.vec")])
; 60 82 01
getlex Qname(PackageNamespace("flash.geom"),"Point")
; 53 01
applytype 1
; 42 00
construct 0
; 80 e8 05
coerce TypeName(Qname(PackageNamespace("__AS3__.vec"),"Vector")<Qname(PackageNamespace("flash.geom"),"Point")>)
; 63 05
setlocal 5
; 60 8c 97 01
getlex Qname(PrivateNamespace("-","896"),"range")
; 62 04
getlocal 4
; a3
divide
; 75
convert_d
; 63 06
setlocal 6
; 5d 9c 97 01
findpropstrict Qname(PrivateNamespace("-","896"),"plusminus")
; 24 64
pushbyte 100
; 46 9c 97 01 01
callproperty Qname(PrivateNamespace("-","896"),"plusminus") 1
; 75
convert_d
; 63 07
setlocal 7
; 24 00
pushbyte 0
; 63 08
setlocal 8
; 10 60 00 00
jump ofs00d6
; 09
ofs0076:label
; 5d 82 01
findpropstrict Qname(PackageNamespace("flash.geom"),"Point")
; 4a 82 01 00
constructprop Qname(PackageNamespace("flash.geom"),"Point") 0
; 80 82 01
coerce Qname(PackageNamespace("flash.geom"),"Point")
; 2a
dup
; 63 0d
setlocal 13
; 62 06
getlocal 6
; 62 08
getlocal 8
; a2
multiply
; 5d 9c 97 01
findpropstrict Qname(PrivateNamespace("-","896"),"plusminus")
; 24 05
pushbyte 5
; 46 9c 97 01 01
callproperty Qname(PrivateNamespace("-","896"),"plusminus") 1
; a0
add
; 62 07
getlocal 7
; a0
add
; d3
getlocal_3
; 66 a8 0c
getproperty Qname(PackageNamespace(""),"x")
; a0
add
; 61 a8 0c
setproperty Qname(PackageNamespace(""),"x")
; 62 0d
getlocal 13
; d3
getlocal_3
; 66 a7 0c
getproperty Qname(PackageNamespace(""),"y")
; 60 8d 97 01
getlex Qname(PrivateNamespace("-","896"),"dropHeight")
; 24 02
pushbyte 2
; a3
divide
; a0
add
; 60 81 a0 01
getlex Qname(PackageNamespace(""),"Math")
; 60 81 a0 01
getlex Qname(PackageNamespace(""),"Math")
; 46 bb a2 01 00
callproperty Qname(PackageNamespace(""),"random") 0
; 60 8d 97 01
getlex Qname(PrivateNamespace("-","896"),"dropHeight")
; a2
multiply
; 24 02
pushbyte 2
; a2
multiply
; 46 d7 09 01
callproperty Qname(PackageNamespace(""),"round") 1
; a0
add
; 61 a7 0c
setproperty Qname(PackageNamespace(""),"y")
; 62 05
getlocal 5
; 62 0d
getlocal 13
; 4f 86 9f 01 01
callpropvoid Qname(Namespace("http://adobe.com/AS3/2006/builtin"),"push") 1
; c2 08
inclocal_i 8
; 62 08
ofs00d6:getlocal 8
; 62 04
getlocal 4
; 15 98 ff ff
iflt ofs0076
; 60 b8 ae 01
getlex Multiname("Vector",[PrivateNamespace("-","896"),PackageNamespace(""),PrivateNamespace("-","1164"),PackageNamespace("com.ubisoft.smurf2.game.controllers"),PackageInternalNs("com.ubisoft.smurf2.game.controllers"),Namespace("http://adobe.com/AS3/2006/builtin"),ProtectedNamespace("com.ubisoft.smurf2.game.controllers:DropManager"),StaticProtectedNs("com.ubisoft.smurf2.game.controllers:DropManager"),PackageNamespace("__AS3__.vec")])
; 60 ce 03
getlex Qname(PackageNamespace("com.ubisoft.smurf2.ui.view.common"),"Drop")
; 53 01
applytype 1
; 42 00
construct 0
; 80 e9 05
coerce TypeName(Qname(PackageNamespace("__AS3__.vec"),"Vector")<Qname(PackageNamespace("com.ubisoft.smurf2.ui.view.common"),"Drop")>)
; 63 09
setlocal 9
; 24 05
pushbyte 5
; 75
convert_d
; 63 0a
setlocal 10
; 2f 07
pushdouble 0.1
; 75
convert_d
; 63 0b
setlocal 11
; 27
pushfalse
; 63 0c
setlocal 12
; 24 00
pushbyte 0
; 63 08
setlocal 8
; 10 e6 00 00
jump ofs01e9
; 09
ofs0103:label
; 5d 9d 97 01
findpropstrict Qname(PrivateNamespace("-","896"),"getDrop")
; d1
getlocal_1
; 62 08
getlocal 8
; 66 bd ae 01
getproperty MultinameL([PrivateNamespace("-","896"),PackageNamespace(""),PrivateNamespace("-","1164"),PackageNamespace("com.ubisoft.smurf2.game.controllers"),PackageInternalNs("com.ubisoft.smurf2.game.controllers"),Namespace("http://adobe.com/AS3/2006/builtin"),ProtectedNamespace("com.ubisoft.smurf2.game.controllers:DropManager"),StaticProtectedNs("com.ubisoft.smurf2.game.controllers:DropManager")])
; 46 9d 97 01 01
callproperty Qname(PrivateNamespace("-","896"),"getDrop") 1
; 80 ce 03
coerce Qname(PackageNamespace("com.ubisoft.smurf2.ui.view.common"),"Drop")
; 2a
dup
; 63 0e
setlocal 14
; d3
getlocal_3
; 66 a8 0c
getproperty Qname(PackageNamespace(""),"x")
; 61 a8 0c
setproperty Qname(PackageNamespace(""),"x")
; 62 0e
getlocal 14
; d3
getlocal_3
; 66 a7 0c
getproperty Qname(PackageNamespace(""),"y")
; 61 a7 0c
setproperty Qname(PackageNamespace(""),"y")
; 62 0e
getlocal 14
; 62 05
getlocal 5
; 62 08
getlocal 8
; 66 bd ae 01
getproperty MultinameL([PrivateNamespace("-","896"),PackageNamespace(""),PrivateNamespace("-","1164"),PackageNamespace("com.ubisoft.smurf2.game.controllers"),PackageInternalNs("com.ubisoft.smurf2.game.controllers"),Namespace("http://adobe.com/AS3/2006/builtin"),ProtectedNamespace("com.ubisoft.smurf2.game.controllers:DropManager"),StaticProtectedNs("com.ubisoft.smurf2.game.controllers:DropManager")])
; 61 bc 53
setproperty Qname(PackageNamespace(""),"destination")
; 62 0e
getlocal 14
; 66 e7 2e
getproperty Qname(PackageNamespace(""),"item")
; 66 92 0c
getproperty Qname(PackageNamespace(""),"targetType")
; 60 ae 2d
getlex Qname(PackageNamespace("com.ubisoft.smurf2.game.settings"),"ItemTypes")
; 66 b5 92 01
getproperty Qname(PackageNamespace(""),"COLLECTABLE")
; ab
equals
; 2a
dup
; 12 15 00 00
iffalse ofs0161
; 29
pop
; 60 9d 04
getlex Qname(PackageNamespace("com.ubisoft.smurf2.game.controllers"),"CollectionController")
; 66 b2 8e 01
getproperty Qname(PackageNamespace(""),"Instance")
; 62 0e
getlocal 14
; 66 e7 2e
getproperty Qname(PackageNamespace(""),"item")
; 66 94 0c
getproperty Qname(PackageNamespace(""),"typeVO")
; 46 f0 3b 01
callproperty Qname(PackageNamespace(""),"checkCollectibleIsNeeded") 1
; 76
convert_b
; 12 30 00 00
ofs0161:iffalse ofs0195
; 26
pushtrue
; 63 0c
setlocal 12
; 5d 94 97 01
findpropstrict Qname(PrivateNamespace("-","896"),"prepareCollectible")
; 62 0e
getlocal 14
; 4f 94 97 01 01
callpropvoid Qname(PrivateNamespace("-","896"),"prepareCollectible") 1
; 60 9d 04
getlex Qname(PackageNamespace("com.ubisoft.smurf2.game.controllers"),"CollectionController")
; 66 b2 8e 01
getproperty Qname(PackageNamespace(""),"Instance")
; 62 0e
getlocal 14
; 66 e7 2e
getproperty Qname(PackageNamespace(""),"item")
; 66 94 0c
getproperty Qname(PackageNamespace(""),"typeVO")
; 60 63
getlex Qname(PackageNamespace("com.ubisoft.smurf2.conf.vo.collection"),"CollectibleVO")
; 87
astypelate
; 62 0e
getlocal 14
; 66 e7 2e
getproperty Qname(PackageNamespace(""),"item")
; 66 a7 0e
getproperty Qname(PackageNamespace(""),"amount")
; 4f e3 3b 02
callpropvoid Qname(PackageNamespace(""),"addCollectible") 2
; 10 49 00 00
jump ofs01de
; 62 0a
ofs0195:getlocal 10
; 62 08
getlocal 8
; 62 0b
getlocal 11
; a2
multiply
; a0
add
; 75
convert_d
; 63 0f
setlocal 15
; 5d 8d 68
findpropstrict Qname(PackageNamespace("com.ubisoft.smurf2.game.helper"),"DropAnimator")
; 62 0e
getlocal 14
; 4a 8d 68 01
constructprop Qname(PackageNamespace("com.ubisoft.smurf2.game.helper"),"DropAnimator") 1
; 80 8d 68
coerce Qname(PackageNamespace("com.ubisoft.smurf2.game.helper"),"DropAnimator")
; 2a
dup
; 63 10
setlocal 16
; 62 05
getlocal 5
; 62 08
getlocal 8
; 66 bd ae 01
getproperty MultinameL([PrivateNamespace("-","896"),PackageNamespace(""),PrivateNamespace("-","1164"),PackageNamespace("com.ubisoft.smurf2.game.controllers"),PackageInternalNs("com.ubisoft.smurf2.game.controllers"),Namespace("http://adobe.com/AS3/2006/builtin"),ProtectedNamespace("com.ubisoft.smurf2.game.controllers:DropManager"),StaticProtectedNs("com.ubisoft.smurf2.game.controllers:DropManager")])
; 5d 99 97 01
findpropstrict Qname(PackageNamespace(""),"getFlyDest")
; d1
getlocal_1
; 62 08
getlocal 8
; 66 bd ae 01
getproperty MultinameL([PrivateNamespace("-","896"),PackageNamespace(""),PrivateNamespace("-","1164"),PackageNamespace("com.ubisoft.smurf2.game.controllers"),PackageInternalNs("com.ubisoft.smurf2.game.controllers"),Namespace("http://adobe.com/AS3/2006/builtin"),ProtectedNamespace("com.ubisoft.smurf2.game.controllers:DropManager"),StaticProtectedNs("com.ubisoft.smurf2.game.controllers:DropManager")])
; 46 99 97 01 01
callproperty Qname(PackageNamespace(""),"getFlyDest") 1
; 60 9b 97 01
getlex Qname(PrivateNamespace("-","896"),"onFlyComplete")
; d1
getlocal_1
; 62 08
getlocal 8
; 66 bd ae 01
getproperty MultinameL([PrivateNamespace("-","896"),PackageNamespace(""),PrivateNamespace("-","1164"),PackageNamespace("com.ubisoft.smurf2.game.controllers"),PackageInternalNs("com.ubisoft.smurf2.game.controllers"),Namespace("http://adobe.com/AS3/2006/builtin"),ProtectedNamespace("com.ubisoft.smurf2.game.controllers:DropManager"),StaticProtectedNs("com.ubisoft.smurf2.game.controllers:DropManager")])
; 56 01
newarray 1
; 24 01
pushbyte 1
; 2f 08
pushdouble 0.6
; 62 0f
getlocal 15
; 4f 9a 68 07
callpropvoid Qname(PackageNamespace(""),"to") 7
; 62 09
ofs01de:getlocal 9
; 62 0e
getlocal 14
; 4f 86 9f 01 01
callpropvoid Qname(Namespace("http://adobe.com/AS3/2006/builtin"),"push") 1
; c2 08
inclocal_i 8
; 62 08
ofs01e9:getlocal 8
; 62 04
getlocal 4
; 15 12 ff ff
iflt ofs0103
; 60 c9 2b
getlex Qname(PackageNamespace("com.ubisoft.panda.game.common.events"),"GlobalEventDispatcher")
; 46 fd 8e 01 00
callproperty Qname(PackageNamespace(""),"getInstance") 0
; 5d ea 02
findpropstrict Qname(PackageNamespace("com.ubisoft.smurf2.game.events"),"DropEvent")
; 60 ea 02
getlex Qname(PackageNamespace("com.ubisoft.smurf2.game.events"),"DropEvent")
; 66 a6 99 01
getproperty Qname(PackageNamespace(""),"DROP")
; 62 09
getlocal 9
; 4a ea 02 02
constructprop Qname(PackageNamespace("com.ubisoft.smurf2.game.events"),"DropEvent") 2
; 4f d8 0b 01
callpropvoid Qname(PackageNamespace(""),"dispatchEvent") 1
; 62 0c
getlocal 12
; 12 16 00 00
iffalse ofs0229
; 60 ff 01
getlex Qname(PackageNamespace("com.ubisoft.smurf2.sound"),"SoundManager")
; 66 b2 8e 01
getproperty Qname(PackageNamespace(""),"Instance")
; 60 a5 33
getlex Qname(PackageNamespace("com.ubisoft.smurf2.game.constants"),"SoundConstants")
; 66 be 93 01
getproperty Qname(PackageNamespace(""),"Resource_Rare_Drop")
; 4f 9c 20 01
callpropvoid Qname(PackageNamespace(""),"playUISound") 1
; 10 12 00 00
jump ofs023b
; 60 ff 01
ofs0229:getlex Qname(PackageNamespace("com.ubisoft.smurf2.sound"),"SoundManager")
; 66 b2 8e 01
getproperty Qname(PackageNamespace(""),"Instance")
; 60 a5 33
getlex Qname(PackageNamespace("com.ubisoft.smurf2.game.constants"),"SoundConstants")
; 66 bd 93 01
getproperty Qname(PackageNamespace(""),"Resource_Pop_Out")
; 4f 9c 20 01
callpropvoid Qname(PackageNamespace(""),"playUISound") 1
; 47
ofs023b:returnvoid