Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Quest API] Add SendIllusion overloads/parameters to Perl/Lua #3059

Merged
merged 7 commits into from Mar 16, 2023

Conversation

Kinglykrab
Copy link
Contributor

@Kinglykrab Kinglykrab commented Mar 13, 2023

Perl

  • Add $mob->SendIllusion(race, gender, texture, helmtexture, face, hairstyle, haircolor, beard, beardcolor, drakkin_heritage, drakkin_tattoo, drakkin_details, size, target).
  • Add $mob->SendIllusionPacket(illusion_table_ref).

Lua

  • Add target to mob:SendIllusion(table).
  • Cleanup data types.

Notes

  • Adds overloads with a specific client capability and a hash capability in Perl.

Perl Hash Example

sub EVENT_SAY {
	if ($text=~/#a/i) {
		my %illusion_data = (
			"race" => 522,
			"gender" => 0,
			"texture" => 3,
			"size" => 20
		);
		$client->SendIllusionPacket(\%illusion_data);
	}
}

# Perl
- Add `$mob->SendIllusion(race, gender, texture, helmtexture, face, hairstyle, haircolor, beard, beardcolor, drakkin_heritage, drakkin_tattoo, drakkin_details, size, target)`.
- Add `$mob->SendIllusionPacket(illusion_table_ref)`.
@Kinglykrab Kinglykrab changed the title [Quest API] Add SendIllusion methods to Perl. [Quest API] Add SendIllusion methods to Perl/Lua Mar 13, 2023
@Kinglykrab Kinglykrab changed the title [Quest API] Add SendIllusion methods to Perl/Lua [Quest API] Add SendIllusion overloads/parameters to Perl/Lua Mar 13, 2023
@Kinglykrab Kinglykrab merged commit 02ada0e into master Mar 16, 2023
@Kinglykrab Kinglykrab deleted the quest_api/sendillusion_overloads branch March 16, 2023 00:37
@Aeadoin Aeadoin mentioned this pull request Mar 24, 2023
nytmyr pushed a commit to nytmyr/Server that referenced this pull request Dec 1, 2023
…3059)

* [Quest API] Add SendIllusion methods to Perl.

# Perl
- Add `$mob->SendIllusion(race, gender, texture, helmtexture, face, hairstyle, haircolor, beard, beardcolor, drakkin_heritage, drakkin_tattoo, drakkin_details, size, target)`.
- Add `$mob->SendIllusionPacket(illusion_table_ref)`.

* Change defaults.

* Remove debug message

* Cleanup.

* Cleanup

* Update perl_mob.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants