Go Back   EQEmulator Home > EQEmulator Forums > General > General::Server Discussion

General::Server Discussion Discussion about emulator servers.
Do not post support topics here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 09-25-2017, 08:40 PM
shea851
Fire Beetle
 
Join Date: Jan 2010
Location: Illinois
Posts: 9
Default

Yep, it is heavily based off NL. Wonderful dad server gameplay!

Here's the source change I made, and built code Sept 1 2017. You can see with #version in game.

corpse.cpp
Code:
if (!IsPlayerCorpse() && inst->GetItem()->Attuneable) {
	inst->SetAttuned(true);
}

Here's the deattuner script.

Code:
sub EVENT_ITEM {

	my $gummiesID = 133015;
	my $dadtokenID = 133016;
	my $cost = 5000;
	
	my @item = ($item1, $item2, $item3, $item4);
	my @item_charges = ($item1_charges, $item2_charges, $item3_charges, $item4_charges);
	my @item_attuned = ($item1_attuned, $item2_attuned, $item3_attuned, $item4_attuned);
	
	# Return bogus items
	for my $i (0 .. $#item)
	{
		if ($item[$i] > 0 && $item_attuned[$i] == 0 && $item[$i] != $gummiesID && $item[$i] != $dadtokenID)
		{
			$client->SummonItem($item[$i], $item_charges[$i], $item_attuned[$i]);
			quest::me("I have no need for this $name, you can have it back.");
			$item[$i] = 0;
		}
	}
	
	$emptySlotCount = scalar(grep(/^0$/, @item));
	
	# Platinum quest
	if ($platinum == $cost && $emptySlotCount == 3)
	{
		for my $i (0 .. $#item)
		{
			if ($item[$i] > 0)
			{
				$client->SummonItem($item[$i], $item_charges[$i], 0);
			}
		}
		quest::say("Enjoy, $name!");
		return;
	}
	
	# Gummies quest
	if (grep(/^$gummiesID$/, @item) && $emptySlotCount == 2)
	{
		for my $i (0 .. $#item)
		{
			if ($item[$i] > 0 && $item[$i] != $gummiesID)
			{
				$client->SummonItem($item[$i], $item_charges[$i], 0);
			}
		}
		quest::givecash($copper, $silver, $gold, $platinum);
		quest::say("Enjoy, $name!");
		return;
	}
	
	# AA quest
	if (grep(/^$dadtokenID$/, @item) && $client->GetLevel() >= 51)
	{
		for my $i (0 .. $#item)
		{
			if ($item[$i] > 0)
			{
				$client->AddAAPoints($item_charges[$i]);
			}
		}
		quest::say("Enjoy, $name!");
		return;
	}
	
	# Return remaining items/cash should we arrive here
	quest::givecash($copper, $silver, $gold, $platinum);
		
	for my $i (0 .. $#item)
	{
		if ($item[$i] > 0)
		{
			$client->SummonItem($item[$i], $item_charges[$i], $item_attuned[$i]);
			quest::me("I have no need for this $name, you can have it back.");
		}
	}

}
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:23 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3