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

warpparty() and warpguild() are checking for nowarp mapflag #1861

Closed
4 of 5 tasks
bWolfie opened this issue Oct 17, 2017 · 2 comments
Closed
4 of 5 tasks

warpparty() and warpguild() are checking for nowarp mapflag #1861

bWolfie opened this issue Oct 17, 2017 · 2 comments
Labels
component:core:scriptengine Affecting the script engine or the script commands severity:2-fair Incorrect gaming mechanics, database warnings type:bug Issue is a bug or describes an incorrect behavior that should be fixed

Comments

@bWolfie
Copy link
Contributor

bWolfie commented Oct 17, 2017

Issue Prelude

  • I have not modified the source prior to reproducing this issue.
  • I am using the latest version of Hercules.
  • I am aware that this report will be closed or deleted if it becomes obvious that I am stating the false.

Description

BUILDIN(warpparty) and BUILDIN(warpguild) are checking for the nowarp and noreturn mapflags.

Current Behavior

These script commands cannot be used to warp guilds/parties around on nowarp mapflags.

Expected Behavior

Just like the regular warp() command, you should be able to warp regardless.

Branch(es):

  • master
  • other
@Helianthella
Copy link
Member

I believe it would be a better idea to just add an extra parameter to warp() so it can take a GID, and then deprecate warpparty() and warpguild() since getunits() makes them obsolete. It will also help avoid having yet more warp commands when we merge the Clan system

@Helianthella Helianthella added component:core:scriptengine Affecting the script engine or the script commands Hacktoberfest severity:2-fair Incorrect gaming mechanics, database warnings type:bug Issue is a bug or describes an incorrect behavior that should be fixed labels Oct 20, 2017
@psychonaut04
Copy link

psychonaut04 commented Nov 7, 2017

I did something just to test.

stable...psychonaut04:patch-2

"Deprecated" warpparty and warpguild, just with a warning(it still works).
Warp using switch, a char change it to warpguild(can use getunits i guess, but check gid, i'm not sure if it's better), can change it somehow still to add more.

Just a code testing(i did for fun only). If that's something acceptable i can improve or pull it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:core:scriptengine Affecting the script engine or the script commands severity:2-fair Incorrect gaming mechanics, database warnings type:bug Issue is a bug or describes an incorrect behavior that should be fixed
Projects
None yet
Development

No branches or pull requests

4 participants