
01-07-2008, 11:48 PM
|
|
Registered User
|
Join Date: Jan 2004
Posts: 403
|
|
Quote:
Originally Posted by Knightmare1
PHP Code:
function onCreated()
{
setImg( this.img );
setShape( 1, 16*2, 16*2 );
this.spawnpoints={{ 1,5 },{ 8,2 },{ 9,1 },{ 12,62 },{ 12,6 },{ 15,73 },{ 51,52 }};
this.random=int(random(0,this.spawnpoints.size()+1));
}
function onActionGrabbed()
{
findPlayer( params[ 0] ).addWeapon( this.weapon );
hide;
sleep(540);
warpto("final_gmap.gmap",this.spawnpoints[this.random][0],this.spawnpoints[this.random][1]);
show;
}
so this?
|
uh well, either its an npc(warpto()) or its a weapon( addWeapon( this.weapon ) ); or what you set @ this.weapon? xD |
__________________
|
|
|
|