Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 14.05.2006, 16:50   #1
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default [SmallShare] Get Seal / Give AA

This AI gets your seal stone (blue,green,red) and exchange that for Ancient.
Blue = 3 AA
Green = 5 AA
Red = 10 AA

[Edit for Leechers] =)

So.. To activate this use "bypass -h menu_select?ask=1&reply=1".
Success Exchange: seal_stone_thx.htm
No Item Exchange: seal_stone_none.htm

Good Luck =)

Pd: All credits.. for me xD
RipperX is offline  
Old 14.05.2006, 18:05   #2
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

I think maybe we need to start sharing AI in NASC sintax...
for several reasons... leechers... to learn NASC...

here decompiled code...

thx RipperX

Code:
class ancient_trader : citizen {
  handler:
  EventHandler MENU_SELECTED(ask, i0, i1, i2, i3, reply, talker) {
    if ((ask == 1) && (reply == 1)) {
      i1 = OwnItemCount(talker, 6360);
      i2 = OwnItemCount(talker, 6361);
      i3 = OwnItemCount(talker, 6362);
      i0 = (((i1*3)+(i2*5))+(i3*10));
      if (i0 == 0) ShowPage(talker, "seal_stone_none.htm");
      else {
        GiveItem1(talker, @adena_of_ancient, i0);
        DeleteItem1(talker, 6360, i1);
        DeleteItem1(talker, 6361, i2);
        DeleteItem1(talker, 6362, i3);
        ShowPage(talker, "seal_stone_thx.htm");
      }
    }
  }
}
FidoW is offline  
Old 14.05.2006, 18:07   #3
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

Quote:
Originally Posted by FidoW
I think maybe we need to start sharing AI in NASC sintax...
for several reasons... leechers... to learn NASC...

here decompiled code...

thx RipperX

Code:
class ancient_trader : citizen {
  handler:
  EventHandler MENU_SELECTED(ask, i0, i1, i2, i3, reply, talker) {
    if ((ask == 1) && (reply == 1)) {
      i1 = OwnItemCount(talker, 6360);
      i2 = OwnItemCount(talker, 6361);
      i3 = OwnItemCount(talker, 6362);
      i0 = (((i1*3)+(i2*5))+(i3*10));
      if (i0 == 0) ShowPage(talker, "seal_stone_none.htm");
      else {
        GiveItem1(talker, @adena_of_ancient, i0);
        DeleteItem1(talker, 6360, i1);
        DeleteItem1(talker, 6361, i2);
        DeleteItem1(talker, 6362, i3);
        ShowPage(talker, "seal_stone_thx.htm");
      }
    }
  }
}
Edit done
RipperX is offline  
Old 16.05.2006, 21:42   #4
Carol
Архивный участник
 
Join Date: Apr 2006
Posts: 30
Default Re: [SmallShare] Get Seal / Give AA

Quote:
Originally Posted by RipperX
This AI gets your seal stone (blue,green,red) and exchange that for Ancient.
Blue = 3 AA
Green = 5 AA
Red = 10 AA

[Edit for Leechers] =)

So.. To activate this use "bypass -h menu_select?ask=1&reply=1".
Success Exchange: seal_stone_thx.htm
No Item Exchange: seal_stone_none.htm

Good Luck =)

Pd: All credits.. for me xD
RipperX ,i need this to make one tradeshop !

I'm not leecher .
Carol is offline  
Old 16.05.2006, 21:59   #5
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default Re: [SmallShare] Get Seal / Give AA

Quote:
Originally Posted by Carol
Quote:
Originally Posted by RipperX
This AI gets your seal stone (blue,green,red) and exchange that for Ancient.
Blue = 3 AA
Green = 5 AA
Red = 10 AA

[Edit for Leechers] =)

So.. To activate this use "bypass -h menu_select?ask=1&reply=1".
Success Exchange: seal_stone_thx.htm
No Item Exchange: seal_stone_none.htm

Good Luck =)

Pd: All credits.. for me xD
RipperX ,i need this to make one tradeshop !

I'm not leecher .
compile code with NASC...
FidoW is offline  
Old 16.05.2006, 23:06   #6
Carol
Архивный участник
 
Join Date: Apr 2006
Posts: 30
Default Re: [SmallShare] Get Seal / Give AA

Quote:
Originally Posted by FidoW
Quote:
Originally Posted by Carol
Quote:
Originally Posted by RipperX
This AI gets your seal stone (blue,green,red) and exchange that for Ancient.
Blue = 3 AA
Green = 5 AA
Red = 10 AA

[Edit for Leechers] =)

So.. To activate this use "bypass -h menu_select?ask=1&reply=1".
Success Exchange: seal_stone_thx.htm
No Item Exchange: seal_stone_none.htm

Good Luck =)

Pd: All credits.. for me xD
RipperX ,i need this to make one tradeshop !

I'm not leecher .
compile code with NASC...
Gracias for reply FidoW,but i don't know nothing about Nasc .
I'm great newbie girl .

Thx.
Carol is offline  
Old 18.05.2006, 17:22   #7
Thalone
Архивный участник
 
Join Date: Feb 2005
Posts: 134
Default

quick question: wouldn't you want to delete the items first? a player could write a script in l2walker and dc immediately after he gets the AA before it takes the items. because "talker" becomes invalid when the original talker logs off

j/w, not sure if someone can make a bot log off that fast
Thalone is offline  
Old 20.05.2006, 16:22   #8
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

Quote:
Originally Posted by Thalone
quick question: wouldn't you want to delete the items first? a player could write a script in l2walker and dc immediately after he gets the AA before it takes the items. because "talker" becomes invalid when the original talker logs off

j/w, not sure if someone can make a bot log off that fast
just a logic error, I didn't think that. Change the order
RipperX is offline  
Old 20.05.2006, 16:29   #9
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default Re: [SmallShare] Get Seal / Give AA

Quote:
Originally Posted by Carol
Quote:
Originally Posted by RipperX
This AI gets your seal stone (blue,green,red) and exchange that for Ancient.
Blue = 3 AA
Green = 5 AA
Red = 10 AA

[Edit for Leechers] =)

So.. To activate this use "bypass -h menu_select?ask=1&reply=1".
Success Exchange: seal_stone_thx.htm
No Item Exchange: seal_stone_none.htm

Good Luck =)

Pd: All credits.. for me xD
RipperX ,i need this to make one tradeshop !

I'm not leecher .
I sent you compiled by PM.
RipperX is offline  
Old 30.05.2006, 20:02   #10
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

Quote:
Originally Posted by FidoW
I think maybe we need to start sharing AI in NASC sintax...
for several reasons... leechers... to learn NASC...
here decompiled code...
Is there any decompiler from ai.obj to NASC? I'd love it...
ateh is offline  
Old 31.05.2006, 08:49   #11
Tim21
Архивный участник
 
Join Date: Aug 2005
Posts: 30
Default

Great share for people who need it.

Thanks for sharing it to the community


Off topic

Not all leachers have bad intensions.

I keep hearing it on pp in a lot of post although i might not have shared anything yet and have taken somethings from pp which i have implemented in the server but i do have the intension to learn.

as on the moment i am learning to fix npcdata and make correct droptables and aikeleer can back that up.

So i dont like the idea that all you guys wipe all leachers over 1 side.

Thier are some who are willign to learn and some not keep that in mind as i do get offended by such post which really demotivate's me.

Tim
Tim21 is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:09.