i did not make this all the credits goes to
@lawltron
i got a tutorial to use : 1. Make a item like this
<Object id="1000 Fame" ext="true">
<Class>Equipment</Class>
<Item/>
<SlotType>10</SlotType>
<Texture>
<File>lofiObj5</File>
<Index>0xnumber</Index>
</Texture>
<Description>This Fame You 1000 Fame</Description>
<BagType>5</BagType>
<Consumable/>
<Activate>Fame</Activate>
<Sound>spell/fire_nova</Sound>
<feedPower>1000</feedPower>
<DisplayId>1000 Fame</DisplayId>
</Object><Object id="1000 Gold" ext="true">
<Class>Equipment</Class>
<Item/>
<SlotType>10</SlotType>
<Texture>
<File>lofiObj5</File>
<Index>0xnumber</Index>
</Texture>
<Description>This Gold Coin Gives You 1000 Gold</Description>
<BagType>5</BagType>
<Consumable/>
<Activate>Gold</Activate>
<Sound>spell/fire_nova</Sound>
<feedPower>1000</feedPower>
<DisplayId>1000 Gold</DisplayId>
</Object>2. go to descriptors.cs and add this to public enum ActiveEffects
Gold,
Fame,
or you could name it whatever just if you rename it rename it in all the steps3. go to player.useitem.cs and add this code anywhere under break; (important anywhere under break; if u didnt add this to anywhere under break it aint gonna work)
case ActivateEffects.Gold:
{
int Gold = Random.Next(0, 0);
switch (Gold)
{
case 0:
{
var db = new db.Database();
Credits = db.UpdateCredit(Client.Account, 1000);
UpdateCount++;
db.Dispose();
SendHelp("You have acquired 1000 Gold!");
}
break;
}
}
break;
case ActivateEffects.Fame:
{
int Gold = Random.Next(0, 0);
switch (Fame)
{
case 0:
{
var db = new db.Database();
Fame = db.UpdateFame(Client.Account, 1000);
UpdateCount++;
db.Dispose();
SendHelp("You have acquired 1000 Fame!");
}
break;
}
}
break;
lol, noticed this:
int Gold = Random.Next(0, 0);
switch (Gold) - looks okay, but:
int Gold = Random.Next(0, 0);
switch (Fame) - looks stupid, needs to be perfected, i fixed your code, check this out (it's for 100 fame, not 1000, nvm), works for me on FSOD:
case ActivateEffects.Gold:
{
int Gold = Random.Next(0, 0);
switch (Gold)
{
case 0:
{
var db = new db.Database();
Credits = db.UpdateCredit(Client.Account, 100);
UpdateCount++;
db.Dispose();
SendHelp("You have acquired 100 Gold!");
}
break;
}
}
break;
case ActivateEffects.Fame:
{
int Fame = Random.Next(0, 0);
switch (Fame)
{
case 0:
{
var db = new db.Database();
Fame = db.UpdateFame(Client.Account, 100);
UpdateCount++;
db.Dispose();
SendHelp("You have acquired 100 Fame!");
}
break;
}
}
break;
umg, nuvur oose additon.xml coz eet socs