D2NT - precast problems sorc

08/09/2011 10:59 QZ2#1
Hello,

I need some help please,

I'm trying to set my precast for my sorc so that she casts thunderstorm+armour etc - but it doesnt seem to be working.


Code:
		case NTC_CHAR_CLASS_SORCERESS:
			// Thunder Storm
			if(MWConfig_PrecastSkills.indexOf(MWS_THUNDER_STORM) > -1 && (refresh || !me.GetState(38)))
				NTC_CastSkill(MWS_THUNDER_STORM, NTC_HAND_RIGHT);
			// Energy Shield
			if(refresh && MWConfig_PrecastSkills.indexOf(MWS_ENERGY_SHIELD) > -1)
				NTC_CastSkill(MWS_ENERGY_SHIELD, NTC_HAND_RIGHT);
			// Shiver Armor
			if(MWConfig_PrecastSkills.indexOf(MWS_SHIVER_ARMOR) > -1 && (refresh || !me.GetState(88)))
				NTC_CastSkill(MWS_SHIVER_ARMOR, NTC_HAND_RIGHT);
			// Chilling Armor
			else if(MWConfig_PrecastSkills.indexOf(MWS_CHILLING_ARMOR) > -1 && (refresh || !me.GetState(20)))
				NTC_CastSkill(MWS_CHILLING_ARMOR, NTC_HAND_RIGHT);
			// Frozen Armor
			else if(MWConfig_PrecastSkills.indexOf(MWS_FROZEN_ARMOR) > -1 && (refresh || !me.GetState(10)))
				NTC_CastSkill(MWS_FROZEN_ARMOR, NTC_HAND_RIGHT);
			// Enchant
			if(MWConfig_PrecastSkills.indexOf(MWS_ENCHANT) > -1)
			{
				_merc = NTC_GetMerc();

				if(_merc && !_merc.GetState(16))
					NTC_CastSkill(MWS_ENCHANT, NTC_HAND_RIGHT, _merc);
				if(!me.GetState(16))
					NTC_CastSkill(MWS_ENCHANT, NTC_HAND_RIGHT);
			}
			break;

Can someone help please?

Also, how do I set my runes properly? so that my sorc doesnt go ahead and sell everything.
08/09/2011 11:33 lanara#2
First of all you should post that in the thread where you downloaded the bot (that would be [Only registered and activated users can see links. Click Here To Register...]). Then if you post code, please use the [code][/code] tags for it, just provides a much better readability because it keeps the formations.

In your case as you have Muddy's D2NT you don't have to change anything in the NTPrecast library, you just need to add the skills in your char config at MWConfig_PrecastSkills.
08/09/2011 16:27 Muddy Waters#3
Please ask questions concerning my bot in the corresponding topic which lanara already mentioned. :)

#closed

Regards
Muddy