2 probs with my serva

Results 1 to 17 of 17
  1. #1
    Apprentice panacuba is offline
    MemberRank
    Oct 2006 Join Date
    9Posts

    2 probs with my serva

    I got a few problems with my server i was hoping you can help me out resolv them....st my mobs dont respawn and there r some of them immortals.....2nd hod do i do for the items drops works i got a trouble when i take them i need to reconnect to see them in my inventory...plz help me


  2. #2
    ShinROSE Owner Tohma is offline
    MemberRank
    Sep 2006 Join Date
    270Posts
    yes me too don't worry lol

  3. #3
    Account Upgraded | Title Enabled! Krawallski is offline
    MemberRank
    Sep 2006 Join Date
    .Location
    299Posts
    Quote Originally Posted by panacuba View Post
    I got a few problems with my server i was hoping you can help me out resolv them....st my mobs dont respawn and there r some of them immortals.....2nd hod do i do for the items drops works i got a trouble when i take them i need to reconnect to see them in my inventory...plz help me

    item is a problem?! lol

    use this code

    BEGINPACKET( pak, 0x7a7 );
    ADDWORD( pak, thisdrop->clientid );

    if (thisdrop->owner==0 || thisdrop->owner==thisclient->clientid || time(NULL)-thisdrop->droptime>=30)
    {unsigned newslot=thisclient->GetNewItemSlot( thisdrop->item );
    if (newslot!=0xffff) {
    int tmpcount= thisdrop->item.count;
    int thisslotcount = 999 - thisclient->items[newslot].count;
    if (thisslotcount>tmpcount) thisslotcount=tmpcount;

    thisdrop->item.count = thisslotcount + thisclient->items[newslot].count;
    thisclient->items[newslot] = thisdrop->item;
    ADDWORD ( pak, 0 );
    ADDBYTE( pak, 1);
    ADDDWORD( pak, BuildItemHead(thisclient->items[newslot]));
    ADDDWORD( pak, tmpcount);
    thisclient->SendPacket( &pak );

    // update client inventory
    BEGINPACKET(pak, 0x718);
    ADDBYTE(pak, 1); // ITEMS TO UPDATE
    ADDBYTE(pak, newslot);
    ADDDWORD(pak, BuildItemHead(thisclient->items[newslot]));
    ADDDWORD(pak, BuildItemData(thisclient->items[newslot]));
    thisclient->SendPacket(&pak);
    }else{
    ADDBYTE( pak, 5 );
    thisclient->SendPacket( &pak );
    }
    }else{
    ADDBYTE( pak, 4 );
    thisclient->SendPacket( &pak );
    }

    compile it and you diden`t have the problem any more
    Last edited by Krawallski; 15-10-06 at 04:01 PM.

  4. #4
    Apprentice hawer is offline
    MemberRank
    Sep 2006 Join Date
    12Posts
    Krawallski,

    Can you tell us where to put this? please :D

  5. #5
    ShinROSE Owner Tohma is offline
    MemberRank
    Sep 2006 Join Date
    270Posts

    // -- ITEM --
    thisclient->c_zuly += thisdrop->amount;
    BEGINPACKET( pak, 0x7a7 );
    ADDWORD( pak, thisdrop->clientid );
    ADDWORD( pak, 0 );
    ADDBYTE( pak, 0 );
    ADDDWORD( pak, 0xccccccdf );
    ADDDWORD( pak, thisdrop->amount );
    thisclient->SendPacket( &pak );
    }
    elseif (thisdrop->type==2) {
    BEGINPACKET( pak, 0x7a7 );
    ADDWORD( pak, thisdrop->clientid );
    if (thisdrop->owner==0 || thisdrop->owner==thisclient->clientid || time(NULL)-thisdrop->droptime>=30) {
    unsigned newslot=thisclient->GetNewItemSlot( thisdrop->item );
    if (newslot!=0xffff) {
    ADDBYTE( pak, 1 );
    // OK, NO ITEM, NO ITEM, OTHER USER, NOSPACE
    thisclient->items[newslot] = thisdrop->item;
    ADDBYTE( pak, newslot );
    thisclient->SendPacket( &pak );
    }
    else{
    ADDBYTE( pak, 5 );
    thisclient->SendPacket( &pak );
    }
    }
    else{
    ADDBYTE( pak, 4 );
    thisclient->SendPacket( &pak );
    }
    }
    for(std::vector<CDrop*>::iterator itvdata = DropsList.begin(); itvdata != DropsList.end(); itvdata++) {
    if( (*itvdata)==thisdrop ) { DropsList.erase( itvdata ); break; }
    }
    BEGINPACKET( pak, 0x794 );
    ADDWORD( pak, thisdrop->clientid );
    SendToVisible( &pak, thisdrop );
    ClearClientID( thisdrop->clientid );
    delete thisdrop;

    returntrue;


    That's my worlpacket.cpp

    Seriously your lines is so difficult to replace -__-

    Edit my post plz and show me how u chane that the line are totally different than ur ><

    GG anyway for fix it^^

  6. #6
    Apprentice panacuba is offline
    MemberRank
    Oct 2006 Join Date
    9Posts
    Thnx men can u compile it plz jk.....i forgot to told i cant have more than one item(material) do this code also resolve that problem?

    btw why i cant use the consumables????can u help me with that to thnx for all
    Last edited by panacuba; 15-10-06 at 04:52 PM.

  7. #7
    Account Upgraded | Title Enabled! Krawallski is offline
    MemberRank
    Sep 2006 Join Date
    .Location
    299Posts
    Quote Originally Posted by panacuba View Post
    Thnx men can u compile it plz jk.....i forgot to told i cant have more than one item(material) do this code also resolve that problem?

    btw why i cant use the consumables????can u help me with that to thnx for all
    look in the SVN thread you find many thinks.
    and we work on the consumables :D

  8. #8
    Apprentice panacuba is offline
    MemberRank
    Oct 2006 Join Date
    9Posts
    thnx men...i will use the sear function :P btw whats the minimun hardware do i need to mount other server?????

  9. #9
    Account Upgraded | Title Enabled! Caali is offline
    MemberRank
    Sep 2006 Join Date
    263Posts
    o.O consumeables aren't that hard =P gogogo =O (i already made them though)

  10. #10
    ShinROSE Owner Tohma is offline
    MemberRank
    Sep 2006 Join Date
    270Posts
    Anybody can help me with theses lines?

  11. #11
    Account Upgraded | Title Enabled! IaguCool is offline
    MemberRank
    Sep 2006 Join Date
    IsraelLocation
    219Posts
    lol wtf is he talking about? I've fixed the item pickup just by adding 2 lines:
    Code:
    				ADDDWORD( pak, BuildItemHead( thisclient->items[newslot] ) );
    				ADDDWORD( pak, BuildItemData( thisclient->items[newslot] ) );
    First find:
    Code:
    ADDBYTE( pak, 1 );  //No item, no item... etc
    Add the lines under the following line:
    Code:
    ADDBYTE( pak, newslot );
    Last edited by IaguCool; 15-10-06 at 11:02 PM.

  12. #12
    ShinROSE Owner Tohma is offline
    MemberRank
    Sep 2006 Join Date
    270Posts
    Oo

    ok i try it lol

  13. #13
    Apprentice DesertRaven is offline
    MemberRank
    Oct 2005 Join Date
    NetherlandsLocation
    9Posts
    Quote Originally Posted by Tohma View Post

    // -- ITEM --
    thisclient->c_zuly += thisdrop->amount;
    BEGINPACKET( pak, 0x7a7 );
    ADDWORD( pak, thisdrop->clientid );
    ADDWORD( pak, 0 );
    ADDBYTE( pak, 0 );
    ADDDWORD( pak, 0xccccccdf );
    ADDDWORD( pak, thisdrop->amount );
    thisclient->SendPacket( &pak );
    }
    elseif (thisdrop->type==2) {
    BEGINPACKET( pak, 0x7a7 );
    ADDWORD( pak, thisdrop->clientid );
    if (thisdrop->owner==0 || thisdrop->owner==thisclient->clientid || time(NULL)-thisdrop->droptime>=30) {
    unsigned newslot=thisclient->GetNewItemSlot( thisdrop->item );
    if (newslot!=0xffff) {
    ADDBYTE( pak, 1 );
    // OK, NO ITEM, NO ITEM, OTHER USER, NOSPACE
    thisclient->items[newslot] = thisdrop->item;
    ADDBYTE( pak, newslot );
    thisclient->SendPacket( &pak );
    }
    else{
    ADDBYTE( pak, 5 );
    thisclient->SendPacket( &pak );
    }
    }
    else{
    ADDBYTE( pak, 4 );
    thisclient->SendPacket( &pak );
    }
    }
    for(std::vector<CDrop*>::iterator itvdata = DropsList.begin(); itvdata != DropsList.end(); itvdata++) {
    if( (*itvdata)==thisdrop ) { DropsList.erase( itvdata ); break; }
    }
    BEGINPACKET( pak, 0x794 );
    ADDWORD( pak, thisdrop->clientid );
    SendToVisible( &pak, thisdrop );
    ClearClientID( thisdrop->clientid );
    delete thisdrop;

    returntrue;


    That's my worlpacket.cpp

    Seriously your lines is so difficult to replace -__-

    Edit my post plz and show me how u chane that the line are totally different than ur ><

    GG anyway for fix it^^
    Have you ever been to an eye doctor, he posted it right there *only thing is his code is a inchy tiny bit different*.
    Just copy paste this, *keep in mind I only copy pasted his part in your coding*,
    Code:
    // -- ITEM --
    thisclient->c_zuly += thisdrop->amount;
    BEGINPACKET( pak, 0x7a7 );
    ADDWORD( pak, thisdrop->clientid );
    ADDWORD( pak, 0 );
    ADDBYTE( pak, 0 );
    ADDDWORD( pak, 0xccccccdf );
    ADDDWORD( pak, thisdrop->amount );
    thisclient->SendPacket( &pak );
    }elseif (thisdrop->type==2) {
    BEGINPACKET( pak, 0x7a7 );
    ADDWORD( pak, thisdrop->clientid );
    if (thisdrop->owner==0 || thisdrop->owner==thisclient->clientid || time(NULL)-thisdrop->droptime>=30) {
    unsigned newslot=thisclient->GetNewItemSlot( thisdrop->item );
    if (newslot!=0xffff) {
    ADDBYTE( pak, 1 ); // OK, NO ITEM, NO ITEM, OTHER USER, NOSPACE
    thisclient->items[newslot] = thisdrop->item;
    ADDBYTE( pak, newslot );
    thisclient->SendPacket( &pak );
    
    // update client inventory
    BEGINPACKET(pak, 0x718);
    ADDBYTE(pak, 1); // ITEMS TO UPDATE
    ADDBYTE(pak, newslot);
    ADDDWORD(pak, BuildItemHead(thisclient->items[newslot]));
    ADDDWORD(pak, BuildItemData(thisclient->items[newslot]));
    thisclient->SendPacket(&pak);
    
    }else{
    ADDBYTE( pak, 5 );
    thisclient->SendPacket( &pak );
    }
    }else{
    ADDBYTE( pak, 4 );
    thisclient->SendPacket( &pak );
    }
    }
    for(std::vector<CDrop*>::iterator itvdata = DropsList.begin(); itvdata != DropsList.end(); itvdata++) {
    if( (*itvdata)==thisdrop ) { DropsList.erase( itvdata ); break; }
    }
    BEGINPACKET( pak, 0x794 );
    ADDWORD( pak, thisdrop->clientid );
    SendToVisible( &pak, thisdrop );
    ClearClientID( thisdrop->clientid );
    delete thisdrop;
    
    returntrue;

  14. #14
    ShinROSE Owner Tohma is offline
    MemberRank
    Sep 2006 Join Date
    270Posts
    No my eye doctor is dead xD

    Thank u that's work!

    But u can't pick up two time the same item on a same slot ex: drop lumpid squid one time that's work drop another lumpid squid and that don't work xD
    But is not a probleme ^_~

  15. #15
    Apprentice hawer is offline
    MemberRank
    Sep 2006 Join Date
    12Posts
    Does someone have the list_drop.sql or list_drop.xls ? ( Whit all drop )

  16. #16
    Account Upgraded | Title Enabled! Caali is offline
    MemberRank
    Sep 2006 Join Date
    263Posts
    i do but i wont share do it yourself

  17. #17
    Account Upgraded | Title Enabled! iNeverDownAway is offline
    MemberRank
    Jul 2006 Join Date
    846Posts
    you do :@?



Advertisement