Converted MQ2 Command - /cast

Moderator: MacroQuest Developers

onetimehero
a ghoul
a ghoul
Posts: 105
Joined: Fri Sep 05, 2003 2:42 pm

Converted MQ2 Command - /cast

Post by onetimehero » Sat Mar 26, 2005 10:14 pm

ISXEQCommandList.h

Code: Select all

COMMAND("Cast",CMD_CastSpell,true,false);
ISXEQCommands.cpp

Code: Select all

// ***************************************************************************
// Function:    CMD_CastSpell
// Description: Our '/cast' command
//              Displays the direction and distance to the closest spawn
// Usage:       /cast [list|#|"name of spell"|item "name of item"]
// ***************************************************************************
int CMD_CastSpell(int argc, char* argv[])
{
	DWORD Index;
	CHAR szBuffer[MAX_STRING] = {0};

	if (gGameState!=GAMESTATE_INGAME)
		return -1;

	if (!cmdCast)
	{
		PCMDLIST pCmdListOrig = (PCMDLIST)EQADDR_CMDLIST;
		for (int i=0;pCmdListOrig[i].fAddress != 0;i++) {
			if (!strcmp(pCmdListOrig[i].szName,"/cast")) {
				cmdCast = (fEQCommand)pCmdListOrig[i].fAddress;
			}
		}
	}
	if (!cmdCast) return -1;
	if (argc<2)
	{
		WriteChatf("Syntax: %s [list|#|name of spell|item name of item]",argv[0]);
		return 0;
	}

	if ( !ppSpellMgr || !ppCharData || !pCharData) {
		return -1;
	}
	PCHARINFO pCharInfo = GetCharInfo();
	if (NULL == pCharInfo) return -1;
	if (argc == 2 && atoi(argv[1])){
		cmdCast((PSPAWNINFO)pLocalPlayer, argv[1]);
		return 0;
	}
	//   CHAR szArg1[MAX_STRING] = {0};
	//   CHAR szArg2[MAX_STRING] = {0};
	if (!stricmp(argv[1],"list")) {
		WriteChatColor("Spells:",USERCOLOR_DEFAULT);
		for (Index=0;Index<9;Index++) {
			if (pCharInfo->MemorizedSpells[Index]==0xFFFFFFFF) {
				sprintf(szBuffer,"%d. <Empty>",Index+1);
			} else {
				sprintf(szBuffer,"%d. %s",Index+1,GetSpellByID(pCharInfo->MemorizedSpells[Index]));
			}
			WriteChatColor(szBuffer,USERCOLOR_DEFAULT);
		}
		return 0;
	}

	//   GetArg(szArg1,szLine,1);
	//   GetArg(szArg2,szLine,2);
	//   DebugSpew("Cast: szArg1 = %s szArg2 = %s",szArg1,szArg2);
	if (!stricmp(argv[1],"item"))
	{
		CHAR szItemToCast[8192];
		pISInterface->GetArgs(2,argc,argv,szItemToCast);
		BOOL FOUND = FALSE;
		DWORD item = 0;
		DWORD slot = 0;
		DWORD SpawnFooter = NULL;
		SpawnFooter = (DWORD)pLocalPlayer;
		for (int i=0;i<30;i++) {
			if (pCharInfo->InventoryArray[i])
				if (!_stricmp(szItemToCast,pCharInfo->InventoryArray[i]->Item->Name)) { 
					DebugSpew("cast test slot %d = %s address is %x",i,pCharInfo->InventoryArray[i]->Item->Name,&(pCharInfo->InventoryArray[i])); 
					item = (DWORD)&pCharInfo->InventoryArray[i];
					slot = (DWORD)i;
					FOUND = TRUE;
					break;
				}
		}
		if (FOUND) {
			pCharData->CastSpell(10,0,(EQ_Item**)item,0,slot,-1,0,0);
			return 0;
		}
	}
	pISInterface->GetArgs(1,argc,argv,szBuffer);
	//GetArg(szBuffer,szLine,1);
	for (Index=0;Index<9;Index++) {
		if (pCharInfo->MemorizedSpells[Index]!=0xFFFFFFFF) {
			PCHAR SpellName = GetSpellNameByID(pCharInfo->MemorizedSpells[Index]);
			if (!stricmp(szBuffer,SpellName)) {
				DebugSpew("SpellName = %s",SpellName);
				cmdCast((PSPAWNINFO)pLocalPlayer,itoa(Index+1,szBuffer,10));
				DebugSpew("pChar = %x SpellName = %s %d",pCharInfo,SpellName,Index+1);
				return 0;
			}
		}
	}
	WriteChatColor("You do not seem to have that spell memorized.",USERCOLOR_DEFAULT);
	return 0;

}
Hmm. That's odd.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sat Mar 26, 2005 11:24 pm

added to cvs for next zip
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

Handy Tips For Deciding On Green Energy

Post by FrankJScott » Wed Mar 01, 2023 6:26 am

For the person talking about tesla powerwall cost 2021, solar photovoltaic system, geothermal energy, 100kw wind turbine cost, small scale hydroelectric, top solar, geothermal energy house, changdi hydropower, bifacial panels, lcoe hydropower, jackery 1000 for sale, I highly recommend this high rated geothermal energy url alongside all commercial solar systems, geothermal home, sunyee solar panel, water turbine generator for sale, wind turbine power generation, solar panel stand price, solar panel suppliers, wind turbine installation, solar panel incentives by state, 5kw hydro turbine price, vortex bladeless wind turbine, trishuli hydropower, industrial geothermal heat pump, concentrated solar power, 500 watt wind turbine, look at this great hydro details not to mention farm wind turbine, underground heating system, compact wind turbine, small wind generator, solar energy companies near me, pro solar, vertical wind turbine generator, wind turbine voltage, solar tax credits, new wind turbine design, passive geothermal, off grid solar, solar lease, geothermal rimworld, hybrid solar wind power generation system for sale, try this new solar power blog for sunpower solar panels for sale, solar powered fan for shed, roof mounted wind turbine, best solar power, tesla solar panel roof, solar power station, ja solar 540w, new wind, saur urja panel, kings 250w solar panel, wind cost, . See More Good Advice For Selecting A Toto Site 6b3ce3c

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

Top Info For Deciding On Judi Slot

Post by FrankJScott » Wed Apr 12, 2023 12:53 pm

In reply to the lady asking about habanero slots rtp, welcome bonus 100 slot, Keyword Stats 2023-04-12 at 14_06_14, bima slot pragmatic, 88 judi slot, bandar slot xl, I highly recommend this super fast reply about slot online forum or aztec gems panen138, judi 55 slot, info slot pragmatic gacor hari ini, demo slot pragmatic sweet bonanza rupiah, pragmatic games demo, demo slot pg soft aztec, not to mention this cool training on slot online tips and don't forget player 88bet slot, judi slot77, website play1628, slot deluna4d, dunia mpo slot gacor, joy bola slot, alongside all this a knockout post on slot online tips which is as good as referral agen138, agen macauslot88, agen qq slot, link slot 2020, rajaslot 77, 12naga slot, on top of watch this video on slot gacor link as well as judi slot online freebet, agen sky77, judi slot deposit via dana, best rtp slots 2021, baju pragmatic play, slot judi 2020, and don't forget this he said for judi slot forum not to mention slot pragmatic 777, free bonus slot machines, bandar999 slot, ituvip bandar slot online, slot minimal deposit 5000 via dana, game slot online, as well as website about DRAGON222 url which is about cara main spin judi, slot deposit minimal 10000, freebet casino tanpa deposit, hoki asia slot, free classic slots, agen138com, as well as this basics about DRAGON222 details and don't forget nusaplay slots 188net, qqslot baru, slot demo pragmatic wild west, play demo spadegaming, situs judi slot habanero, sistem rtp slot, and don't forget this the full details on slot gacor url as well as bandar slot 88, demo aztec gems rupiah, situs judi pragmatic, link alternatif viva99, infini88 bonus 100, slots demo pragmatic, as well as her latest blog about DRAGON222 forum on top of judi rolet 88, download akun demo slot pragmatic, poker slot idn, kode referral pragmatic, hoki link dunia 77, viva hoki slot, which is also great. Finally, have a look at this her response about DRAGON222 info with stars 77 agen slot, bandar slot 2021, slot bang jago 88, pandacoin agen slot, nona303, judi online demo, for good measure. Check more @ Handy Suggestions For Picking Business Massages b86b3ce

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

Free Info For Choosing Skiing Base Layer Clothing

Post by FrankJScott » Sat Jun 10, 2023 10:00 am

To the man asking about long underwear smartwool, smartwool base layer leggings, smartwool base layer womens, merino wool inner, intraknit merino 250 thermal bottom, merino wool long johns for men, I highly recommend this their explanation on hiking base layer clothing advice or icebreaker long sleeve base layer, smartwool women's merino 250 base layer bottom, women's merino 250 base layer crew, merino wool base layer underwear, merino wool base layer sitka, smartwool womens 250, as well as this learn more for hiking base layer clothes link as well as smartwool midweight base layer, merino roll neck base layer, intraknit smartwool, smart wool womens base layer, mens smartwool 250 base layer, uniqlo merino wool base layer, on top of this additional reading on skiing base layer clothes info which is as good as filson merino wool base layer, bamboo merino base layer, 400 gram merino wool, 100 merino wool mens base layer, smartwool 250 base layer top, white merino base layer, on top of do you agree for skiing base layer clothing advice on top of buy merino wool base layer, best merino thermals, 100 percent merino wool long underwear, airblaster men's merino ninja suit, smartwool merino 250, best heavyweight merino for hunting, alongside all this i thought about this for hiking base layer clothing url and don't forget kuiu merino wool base layer, scoop neck merino base layer, smartwool underlayer, minus33 base layers, merino wool thermals mens, merino wool long sleeve base layer, and don't forget one-time offer on hiking base layer clothes info which is about woolen long underwear, smartwool mid 250, merino wool base layer set, merino wool long johns, thickest merino wool base layer, meriwool leggings, not to mention this this post for hiking base layer clothing forum and don't forget merino everyday base layer, smartwool leggings, merino wool base layer lidl, merino wool base layer black friday, 100 merino wool base layer mens, woolx heavyweight, on top of this my sources on hiking base layer clothes forum and don't forget best base layer for warmth, rohan merino base layer, plus size merino wool base layer, coldpruf classic merino wool, merino 250 base layer bottoms, top rated merino wool base layer, as well as linked here about skiing base layer clothing tips and don't forget icebreaker thermal top, cheap merino thermals, woolen thermals, merino thermal underwear, 100 percent merino wool long underwear, coldpruf merino wool base layer, which is also great. Finally, have a look at this top article for hiking base layer clothes advice with best cheap merino wool base layer, men's merino 260 tech thermal leggings with fly, meriwool women's base layer, fohn merino base layer, merino base layer mens sale, merino thermal top women's, for good measure. Check more @ Great Hints On Considering Krav Maga a61d1ac

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

New Info To Picking Pengeluaran Hk

Post by FrankJScott » Fri Jun 23, 2023 1:38 pm

In response to the guy asking about mozza4d, koran hk hari ini, bandar togel jaya, judi hk hari ini, rtp pao4d, erek erek judi domino, I highly suggest this read more here about togel online info or rtp winlotre, rtp shiokambing, judi toto online terpercaya, singapore hongkong prize, 5 bandar togel, judi sgp2, as well as this what do you think on togel details and don't forget bandar togel deposit 5rb, agen bandar togel online, rtp slot altogel, rtp casaprize, sdy hk, arena judi hk, as well as this additional info about togel url which is as good as gila4d 1, togelhongkong online com, togel online 2023, towertoto rtp, data 3ball king4d, bandar togel deposit 10rb, on top of click here for jp toto link as well as bandar slot toto, bandar online 6d, lauren togel hongkong, monte77pro, idn judi togel, ttm88, and don't forget this at bing on keluaran hk hari ini site and don't forget rtp play77bet, kungfu4d slot, m1 totojitu online, rtp xrtoto, nana4d rtp, daya4d promo, and don't forget published here for togel hongkong forum which is about agen7star, rtp slot indonesia4d, slot idn4d, bandar online toto, ciatoto bandar judi togel, togelhongkong online com, on top of this this hyperlink on judi online tips on top of kirin4d, daya4d promo, promo daya4d, bo daya4d, pandatoto slot online, helo4d, not to mention this this guy for judi online url not to mention nama judi togel, rtp slot ayutogel, daya4d, jp virgo4d, rtp slot fiatogel, bandar judi togel 4d, and don't forget read this about jp toto blog on top of main judi 2d, agen101 slot online gacor, deluna4d slot, judi hongkong, angka togel hongkong mlm ini, gila4d, which is also great. Finally, have a look at this great site about live draw hk advice with togelhongkong online com, adu jago togel, jbr mlm hk, rtp slot indotogel, agen7star, agen4d2, for good measure. Check more @ Handy News To Choosing Keluaran Hk c8dec9a

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

Best Ideas For Deciding On Energy Healing

Post by FrankJScott » Wed Jul 12, 2023 8:38 am

For the people talking about most powerful crystals for root chakra, psychic crystal energy, spiritual healing services near me, powerful solar plexus crystals, energetic healing near me, spiritual healing near me, I highly suggest this get redirected here about root chakra meditations blog or best reiki healer near me, crystals for spiritual strength, energy healing room, 1111hz angel healing energy, hands on healing bengston, best crystal for energy protection, on top of this check this out for reiki healer near me advice as well as energy healing made easy unlock your potential as a healer, healing wounded feminine energy, reiki chakra alignment, chakras & self care, egyptian energy healing, energy healing therapy near me, not to mention this one-time offer on crystal for sacral chakra advice which is as good as reiki energy medicine, reiki energy, chakra and crystal healing, body talk energy healing, rose reiki, psychic energy healing, not to mention how you can help for root chakra healing tips not to mention chakra energy healing near me, energy medicine jill blakeway, eesystem near me, enlightened consciousness, cyndi dale energy healing, liver energy healing, not to mention this that guy on crystals for healing and protection advice on top of solfeggio solar plexus, bengston healing, energy healing animals, the most healing crystal, energetic allergy healing, chakra cleansing, and don't forget over at this website for energy therapy advice which is about chakra balancing vastu, chakra specialist, quantum touch healing near me, subtle energy healing, chakra today, chi for healing, not to mention this my website on energy healing link not to mention sekhem energy healing, pure energy crystals, healing light of the tao, healing crystals for you, reiki energy balancing, third chakra healing, not to mention this additional resources about healing heart chakra link alongside all celtic energy healing, reiki healing what is, crystals for spiritual strength, self energy healing, biofield healing practitioner, sound for sacral chakra, as well as bonuses on crystals for healing and protection link not to mention biofield energy therapy, chakra auras, chakra balancing sound therapy, energy field healing, solar plexus chakra healing crystals, eft energy healing, which is also great. Finally, have a look at this this contact form about sacral chakra healing details with crystals that attract good energy, crystals and healing, strongest healing crystal, gold energy healing, sacral and root chakra healing, clear my chakras, for good measure. Check more @ Good Suggestions On Considering Judi Online 74_f2ae

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

Best Mobility Scooter Tips

Post by FrankJScott » Mon Jul 24, 2023 9:41 pm

To the guy inquiring about mobility scooters near me for rent, ecv rental orlando, wheelchair scooter rental near me, k and m scooter rental orlando, handicap scooters disney world, best price scooter rental orlando, I highly suggest this mobility scooter link or electric scooters to hire near me, rent a electric scooter near me, electric wheelchair scooter rental near me, scooter rental around me, jazzy rentals near me, k and m scooter rental orlando, as well as this mobility scooter blog and don't forget universal orlando wheelchair rental prices, moped rental orlando, scooters to hire near me, power wheelchair rental orlando fl, mobility scooter hire international drive orlando, rent a scooter at universal studios, not to mention this mobility scooter info which is as good as scooter rental for universal studios, disney motor scooter rental, scooter rental at seaworld orlando, universal orlando ecv rental cost, disney springs ecv rental, rent mobility scooter disney world, alongside all mobility scooter blog and don't forget ecv rental universal studios orlando, places to rent mopeds near me, walt disney world resort scooter rental, ecv rental disney world, bike scooter on rent near me, moped scooters for rent near me, not to mention this mobility scooter advice alongside all cheap scooter rental disney world, rental e scooter near me, rental medical scooter near me, mobility scooters orlando, electric scooter rental disneyland, ecv hire orlando, as well as mobility scooter advice which is about electric scooters for rent in orlando florida, scooters for disney, knee walker rental orlando, rent orlando scooters, renting a scooter at epcot, walt disney world mobility scooters, as well as this mobility scooter link on top of weekly scooter rental near me, orlando scooter rentals, power scooters for rent near me, orange scooter rental orlando, scooter rentals orlando area, walt disney world handicap scooters, not to mention this mobility scooter blog alongside all magic kingdom wheelchair rental, cheap scooter rental near me, mobility scooter rentals at disney world, moto rental near me, disney springs electric scooter rental, electric wheelchair rental universal studios orlando, and don't forget mobility scooter url and don't forget wheelchair in disney, scooter bug orlando, public scooter rental near me, walt disney world resort scooter rental, mobility scooter rental orlando florida, vespa for rent near me, which is also great. Finally, have a look at this mobility scooter site with mobility scooters to rent near me, electric scooter hire near me, motorized scooter rental orlando, disney mobility scooter hire, big orange scooters orlando, vespa rental near me, for good measure. Check more @ Top Rated Mobility Scooter Details f252a1b

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

Useful Google Info

Post by FrankJScott » Tue Aug 01, 2023 12:10 am

I suggest you google it :)

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

Cool Interior Design Blog

Post by FrankJScott » Thu Aug 10, 2023 10:03 pm

Why don't you Google it! before you post

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

Top Product Blog

Post by FrankJScott » Fri Aug 18, 2023 5:43 pm

Why don't you Google it! before you post

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

Top Rated Product Blog

Post by FrankJScott » Fri Aug 25, 2023 5:24 pm

Please Google it! before posting

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

New Business Massage Info

Post by FrankJScott » Fri Oct 06, 2023 1:41 pm

In response to the person asking about small business massage, maria's massage therapy llc, marketing plan for massage therapy business, master's touch massage therapy llc, massage marketing plan, profit power mini massager, body massage business plan, marketing ideas for massage therapy business, massage envy business model, a healing touch massage therapy spa llc, running a massage business from home, rr massage llc, massage therapy business ideas, anointed hands massage and wellness llc, target market for massage business, thai orchid bodyworks llc, holistic care company massage, profit mini massager, starting a massage practice, healing hands therapeutic spa llc, I recommend this 출장 for marketing a massage therapy business, coming home massage and more llc, tracy pieper licensed massage therapist, buying a massage business, setting up a massage business at home, mobile massage business plan, the serenity spa & executive mobile massages, massage business start up cost, running a massage business from home, mobile massage therapy, start up massage business, sunshine therapeutic massage llc, boon thai massage & bodywork llc, massage target market, thai serenity spa llc, cityhall massage, swan massage oasis llc, zen massage spa llc, massage therapy business plan powerpoint, mantra massage llc, also. See More High Rated Business Massage Site 61d1ac7

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

Best Outdoor Clothing Tips

Post by FrankJScott » Tue Oct 10, 2023 9:31 am

In reply to the lady asking about merino 200 base layer, eddie bauer merino wool base layer, mens merino wool long sleeve base layer, ortovox merino base layer, smartwool merino long underwear, smartwool base layer top, merino wool base layer sale, smartwool merino 150 tee, paradox merino blend women's, best merino wool base layers for hunting, terramar merino wool base layer, chapeau merino base layer, smartwool merino 150 crew base layer, women's merino 150 base layer bottom, layering with merino wool, engel base layers, pure merino wool thermals, smartwool intraknit merino 250, meriwool women's base layer, smartwool base layer womens, I recommend this merino wool base layers advice for terramar merino woolskins, merino wool base layer bottoms, smartwool merino base layer womens, merino blend by paradox men's, smartwool men's bottoms, wool underwear hiking, women's wool base layer top, smartwool merino thermals, woolx merino wool, merino turtleneck base layer, paradox merino wool base layer, pearl izumi base layer long sleeve, smartwool merino 250 base layer women's, top merino wool base layer, smartwool thermal base layer, smartwool leggings, best merino wool base layer cycling, merino mens thermals, icebreaker base layer mens, merino wool base layer set womens, also. See More High Rated Outdoor Clothing Site 52a1b86

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1436
Joined: Sun Feb 19, 2023 7:11 am

Top Rated Product Tips

Post by FrankJScott » Mon Oct 16, 2023 8:44 pm

Please try Google for Excellent Product Guide 8dec9a8