mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +00:00
rebind converted to xyz_location
This commit is contained in:
parent
7ce7af05f3
commit
9d6a89c65d
@ -1321,11 +1321,9 @@ XS(XS__rebind)
|
||||
Perl_croak(aTHX_ "Usage: rebind(zoneid, x, y, z)");
|
||||
|
||||
int zoneid = (int)SvIV(ST(0));
|
||||
float x = (float)SvNV(ST(1));
|
||||
float y = (float)SvNV(ST(2));
|
||||
float z = (float)SvNV(ST(3));
|
||||
auto location = xyz_location((float)SvNV(ST(1)),(float)SvNV(ST(2)),(float)SvNV(ST(3)));
|
||||
|
||||
quest_manager.rebind(zoneid, x, y, z);
|
||||
quest_manager.rebind(zoneid, location);
|
||||
|
||||
XSRETURN_EMPTY;
|
||||
}
|
||||
|
||||
@ -1522,10 +1522,10 @@ void QuestManager::ding() {
|
||||
|
||||
}
|
||||
|
||||
void QuestManager::rebind(int zoneid, float x, float y, float z) {
|
||||
void QuestManager::rebind(int zoneid, const xyz_location& location) {
|
||||
QuestManagerCurrentQuestVars();
|
||||
if(initiator && initiator->IsClient()) {
|
||||
initiator->SetBindPoint(zoneid, 0, xyz_location(x, y, z));
|
||||
initiator->SetBindPoint(zoneid, 0, location);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -131,7 +131,7 @@ public:
|
||||
void targlobal(const char *varname, const char *value, const char *duration, int npcid, int charid, int zoneid);
|
||||
void delglobal(const char *varname);
|
||||
void ding();
|
||||
void rebind(int zoneid, float x, float y, float z);
|
||||
void rebind(int zoneid, const xyz_location& location);
|
||||
void start(int wp);
|
||||
void stop();
|
||||
void pause(int duration);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user