Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Completed

Quests::Completed This is where Completed quests are.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2022, 01:55 PM
Jahosphat
Sarnak
 
Join Date: Apr 2009
Location: LA
Posts: 97
Default Plat for AA Handin Example

This is a quick script to help some noobs like myself.
Basically if you hand a pc plat you get aa. If you hand a different number in you'll get it returned OR if your under 51 youll get a message back too.
100plat = 1aa, 1000 = 10aa, 10000 = 100aa

happy scripting
-Ish (Karana Server)

Code:
sub EVENT_ITEM 
{
	if ($ulevel >=51)
	{
		if ($platinum == 100)
		{
			$client->AddAAPoints(1);
			quest::whisper ("1 AA Point Exchanged.");
		}
		elsif ($platinum == 1000)
		{
			$client->AddAAPoints(10);
			quest::whisper ("10 AA Point Exchanged.");
		}
		elsif ($platinum == 10000)
		{
			$client->AddAAPoints(100);
			quest::whisper ("100 AA Point Exchanged.");
				
		}
		else 
		{
			if($platinum) 
			{
			quest::whisper ("That is not the required amount! Hand plat in the right units!");
			$client->AddMoneyToPP(0, 0, 0, $platinum, 1);
			}
		}
	}
	else 
	    {
			if($platinum) 
			{
			$client->AddMoneyToPP(0, 0, 0, $platinum, 1);
			quest::whisper ("To Exchange you need to be level 51");
			}
		}
}
Reply With Quote
Reply


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 12:42 PM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3