RoninGT
Member
I am working on adding the House teleporters from OSI the vet rewards and the ItemShop ones. However I have having a slight issue on the OnDragDrop Method.
lol dont mind the end message Dafug thats was a debug to see if it was even registering.
From what I cant tell when i drop the gate scroll on the pad nothing happens it completely does not register.
RoninGT[DOUBLEPOST=1379356228,1379354688][/DOUBLEPOST]Nvm... I was using the wrong graphic forgot it has to be flagged container in tiledate
Code:
#region OnDragDrop
public override bool OnDragDrop( Mobile from, Item dropped )
{
if ( !this.IsVetReward && dropped is GateTravelScroll )
{
if ( this.Charges < this.MaxCharges )
{
if ( this.Charges == 0 )
this.Hue = 0x21C;
this.Charges += 5;
if ( this.Charges > this.MaxCharges )
this.Charges = this.MaxCharges;
from.SendLocalizedMessage(1115127); // The Gate Travel scroll crumbles to dust as it strengthens the House Teleporter.
dropped.Delete();
return true;
}
else
{
from.SendLocalizedMessage(1115126); // The House Teleporter cannot be charged any further.
return false;
}
}
else
{
from.SendMessage( "Dafuq?" );
return false;
}
}
#endregion
lol dont mind the end message Dafug thats was a debug to see if it was even registering.
From what I cant tell when i drop the gate scroll on the pad nothing happens it completely does not register.
RoninGT[DOUBLEPOST=1379356228,1379354688][/DOUBLEPOST]Nvm... I was using the wrong graphic forgot it has to be flagged container in tiledate