Unknown
-
Posts
70 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Unknown
-
-
-
-
-
-
-
-
What "debug launcher"
-
How it can be "wrong source", I added this system from myself
-
-
-
buuuuuuuuuuuump
-
-
-
Block the P2P ports with pf or ipfw
-
I think there is not, I wrote a function to do this (based on pc.give_item_with_ownership) :
add to questlua_party.cpp
Quote// drop an item for each member of the group // 20.04.2015
int party_drop_item_with_ownership(lua_State* L)
{
CQuestManager & q = CQuestManager::instance();
LPCHARACTER ch = q.GetCurrentCharacterPtr();
LPPARTY pParty = ch->GetParty();
if (NULL == pParty)
{
return 0;
}
FPartyPIDCollector f;
pParty->ForEachOnMapMember(f, ch->GetMapIndex());
for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++)
{
LPCHARACTER ch2 = CHARACTER_MANAGER::instance().FindByPID(*it);
if (ch2->GetMapIndex() == ch->GetMapIndex()) {
LPITEM item = NULL;
switch (lua_gettop(L))
{
case 1:
item = ITEM_MANAGER::instance().CreateItem((DWORD) lua_tonumber(L, 1));
break;
case 2:
case 3:
item = ITEM_MANAGER::instance().CreateItem((DWORD) lua_tonumber(L, 1), (int) lua_tonumber(L, 2));
break;
default:
return 0;
}
if ( item == NULL )
{
return 0;
}
if (lua_isnumber(L, 3))
{
int sec = (int) lua_tonumber(L, 3);
if (sec <= 0)
{
item->SetOwnership( ch2 );
}
else
{
item->SetOwnership( ch2, sec );
}
}
else
item->SetOwnership( ch2 );
PIXEL_POSITION pos;
pos.x = ch2->GetX() + number(-200, 200);
pos.y = ch2->GetY() + number(-200, 200);
item->AddToGround(ch2->GetMapIndex(), pos);
item->StartDestroyEvent();
}
}
return 0;
}{ "drop_item_with_ownership", party_drop_item_with_ownership },
- 1
-
-
-
-
-
Thanks for your help but my files are already like this.
On 14/1/2016 at 4:09 PM, ergod said:can you to post the sysser if you have?
Nothing in syserr about costumes
-
-
-
How to compare packets
-
And how to fix ?
Costume weapon skills bug
in Community Support - Questions & Answers
Posted
bump