void main() { object oRerolled = GetPCSpeaker(); int nReLevel = (GetLevelByPosition(1, oRerolled) + GetLevelByPosition(2, oRerolled) + GetLevelByPosition(3, oRerolled)); if(GetCampaignInt("LODCReroll", "RerollCheat", oRerolled) != 2) { if(nReLevel == 40) { if(GetClassByPosition(1, oRerolled) != CLASS_TYPE_DRAGONDISCIPLE && GetClassByPosition(2, oRerolled) != CLASS_TYPE_DRAGONDISCIPLE && GetClassByPosition(3, oRerolled) != CLASS_TYPE_DRAGONDISCIPLE) { if((GetItemInSlot(INVENTORY_SLOT_ARMS, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_ARROWS, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_BELT, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_BOLTS, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_BOOTS, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_BULLETS, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_CLOAK, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_CWEAPON_B, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_CWEAPON_L, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_CWEAPON_R, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_HEAD, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_LEFTRING, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_NECK, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_RIGHTRING, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_CHEST, oRerolled) == OBJECT_INVALID)) { if(!GetCampaignInt("LOD40Reroll", "Reroll40Done", oRerolled)) { if(GetGold(oRerolled) >= 4000000) { TakeGoldFromCreature(4000000, oRerolled, TRUE); SetXP(oRerolled, 0); SetXP(oRerolled, 780000); SetCampaignInt("LOD40Reroll", "Reroll40Done", 1, oRerolled); } else { SpeakString("You don't have enough money.", TALKVOLUME_TALK); } } else if(GetCampaignInt("LOD40Reroll", "Reroll40Done", oRerolled) == 1 && GetItemPossessedBy(oRerolled, "bx_spereto") != OBJECT_INVALID) { if(GetGold(oRerolled) >= 5000000) { TakeGoldFromCreature(5000000, oRerolled, TRUE); SetXP(oRerolled, 0); SetXP(oRerolled, 780000); DestroyObject(GetItemPossessedBy(oRerolled, "bx_spereto"), 0.0); SetCampaignInt("LOD40Reroll", "Reroll40Done", 2, oRerolled); } else { SpeakString("You don't have enough money.", TALKVOLUME_TALK); } } else if(GetCampaignInt("LOD40Reroll", "Reroll40Done", oRerolled) == 2 && GetItemPossessedBy(oRerolled, "bx_spereto") != OBJECT_INVALID) { if(GetGold(oRerolled) >= 6000000 && GetXP(oRerolled) >= 840000) { TakeGoldFromCreature(6000000, oRerolled, TRUE); SetXP(oRerolled, 0); SetXP(oRerolled, 780000); DestroyObject(GetItemPossessedBy(oRerolled, "bx_spereto"), 0.0); SetCampaignInt("LOD40Reroll", "Reroll40Done", 3, oRerolled); } else { SpeakString("You don't have enough money or enough XP over level 40.", TALKVOLUME_TALK); } } else { SpeakString("You have alredy had a level 40 reroll. Begone!", TALKVOLUME_TALK); } } else { if(GetCampaignInt("LODCReroll", "RerollCheat", oRerolled) == 1) { SpeakString("That's it!!! Never Shall You Get A Reroll!", TALKVOLUME_TALK); SetCampaignInt("LODCReroll", "RerollCheat", 2, oRerolled); ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(), oRerolled); SendMessageToAllDMs("Cheater tried to abuse the reroll for the second time! His current char has now a tag that won't allow him to reroll. If he asks your help in this matter, ignore him or tell him to shut a fuck up! :D "); } else { SpeakString("Remove your items! Do That Once More And You Won't Get Reroll Ever!", TALKVOLUME_TALK); SetCampaignInt("LODCReroll", "RerollCheat", 1, oRerolled); } } } else { SpeakString("You have RDD levels. Go speak to a DM.", TALKVOLUME_TALK); } } else if(nReLevel == 20) { if(GetClassByPosition(1, oRerolled) != CLASS_TYPE_DRAGONDISCIPLE && GetClassByPosition(2, oRerolled) != CLASS_TYPE_DRAGONDISCIPLE && GetClassByPosition(3, oRerolled) != CLASS_TYPE_DRAGONDISCIPLE) { if((GetItemInSlot(INVENTORY_SLOT_ARMS, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_ARROWS, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_BELT, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_BOLTS, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_BOOTS, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_BULLETS, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_CLOAK, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_CWEAPON_B, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_CWEAPON_L, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_CWEAPON_R, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_HEAD, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_LEFTRING, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_NECK, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_RIGHTRING, oRerolled) == OBJECT_INVALID) && (GetItemInSlot(INVENTORY_SLOT_CHEST, oRerolled) == OBJECT_INVALID)) { if(GetCampaignInt("LOD20Reroll", "Reroll20Done", oRerolled) != 1) { if(GetGold(oRerolled) >= 1000000) { TakeGoldFromCreature(1000000, oRerolled, TRUE); SetXP(oRerolled, 0); SetXP(oRerolled, 190000); SetCampaignInt("LOD20Reroll", "Reroll20Done", 1, oRerolled); } else { SpeakString("You don't have enough money.", TALKVOLUME_TALK); } } else { SpeakString("You have alredy had a level 20 reroll. Begone!", TALKVOLUME_TALK); } } else { if(GetCampaignInt("LODCReroll", "RerollCheat", oRerolled) == 1) { SpeakString("That's it!!! Never Shall You Get A Reroll!", TALKVOLUME_TALK); SetCampaignInt("LODCReroll", "RerollCheat", 2, oRerolled); ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(), oRerolled); SendMessageToAllDMs("Cheater tried to abuse the reroll for the second time! His current char has now a tag that won't allow him to reroll. If he asks your help in this matter, ignore him or tell him to shut a fuck up! :D "); } else { SpeakString("Remove your items! Do That Once More And You Won't Get Reroll Ever!", TALKVOLUME_TALK); SetCampaignInt("LODCReroll", "RerollCheat", 1, oRerolled); } } } else { SpeakString("You have RDD levels. Go speak to a DM.", TALKVOLUME_TALK); } } else { SpeakString("You have to be level 20 or 40!", TALKVOLUME_TALK); } } else { SpeakString("Begone from my eyes CHEATER! NO REROLL FOR YOU!", TALKVOLUME_TALK); } }