Jump to content
  • 0

Okay this is a little funny. My script disconnected the whole server.


cmsm94

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

Haha after long hours of searching of vending with item duration, i finally came to my last stand, give up. This what i came up with. BTW, the point of the vending system is to make market/vending more fun and make player occupied. My idea was 1day vending/ 7 days vending/ 30 days vending. Eventually I came out this.

 

Step one paste this. This is when you use @at the script will request an item from the player. Which the item will have duration to it which when it reaches its limit it will disconnect you from game.

 

 

- script Sample -1,{

OnInit:
setarray .ItemID,909,1;
bindatcmd("autotrade",strnpcinfo(0)+"::OnAtcommand");
bindatcmd("at",strnpcinfo(0)+"::OnAtcommand");
end;
 
OnAtcommand:
if( countitem( .ItemID[0] ) < .ItemID[1] ){
  dispbottom "You need "+.ItemID[1]+" x "+getitemname( .ItemID[0] );
}else if( !checkvending() ){
  dispbottom "You have to open a Shop using Vending Skill";
}else{
  delitem .ItemID[0],.ItemID[1];
equip 25000;
  atcommand "@autotrade";
}
end;
}

 

Step two, this part is when you make that item wearable so you can adjust the properties. In my case i make my self disconnect from server. Which eventually disconnect the whole server. In your item_db2 put this. Do know this item if you wear it you will last 20 second in the game then you will be disconnected. This item is the one that you are gonna put 1day then another item 7 days another 30 days, etc.

 

25000,Vending,Vendinglala,5,0,,0,,0,,0,0xFFFFFFFF,63,2,8192,,1,0,3,{},{ sleep2 20000; if ( isequipped(19002) ) atcommand "@kick "+ strcharinfo(0); },{}

 

 

 

So what now? Alright here the fun begins.

 

Make a merchant, vend something makesure you have jellopy in your inventory and "Vending(25000)" item also with you.

Then just @at. Wait for 20 sec your whole server get dced.

 

 

Now this is quite annoying because of many hours of searching i didnt get the result that i wanted. If any kind soul out there to help me with this please do tqvm. /sob

 

 

 

Credits to Emitry and Annieruru

Edited by cmsm94
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

I see ... so your idea is to use an item in order to do @at

so why not just modify the source code for @at ?

[paste=1l2sphfr20qk]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

Thanks annie

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...