Ikulip , please do not delete thread , continue your work on client.
There was no info on first page that no one is allowed to use your code for public clients etc.
I'm really sorry.
I'm sure than in next rotmg build no one will abuse it.
Got last question :
USEITEM_
Packet.java need slotObject and it need objectId , slotId and itemType.
objectId is set to int.
In .swf file , first starting spell for wizard got : <ObjectId>Fire Bolt</ObjectId>
It's string... Do i need to modify
Item.java or i just took wrong value.
My current code for using spell is (not working) :
Code:
@override
public void loopp(){
{
USEITEM_Packet uppp = new USEITEM_Packet();
uppp.time_= 1000;
uppp.slotObject_.objectId = FireBolt;
uppp.slotObject_.slotId = 11;
uppp.slotObject_.itemType = 2606;
uppp.itemUsePos_ = gCli.gCon.world.getPosition();
gCon.sendQueue.add(uppp);
}
}
Spell code in .swf :
Code:
<Object type="0xa2e" id="Fire Spray Spell">
<Class>Equipment</Class>
<Item/>
<Texture><File>lofiObj6</File><Index>0x40</Index></Texture>
<SlotType>11</SlotType>
<Tier>0</Tier>
<Description>A spell that shoots fire in all directions.</Description>
<Sound>spell/fire_spray</Sound>
<Projectile>
<ObjectId>Fire Bolt</ObjectId>
<Speed>160</Speed>
<MinDamage>30</MinDamage>
<MaxDamage>50</MaxDamage>
<LifetimeMS>1000</LifetimeMS>
</Projectile>
<Usable/>
<BagType>0</BagType>
<MpCost>30</MpCost>
<Activate>BulletNova</Activate>
</Object>