Jump to content
  • 0

Need help @ Gold Room Script


WhatFT

Question


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

Can anyone edit this script?

  • Kicks player if they AFK within 1 min
  • Kicks player if they Don't Attack a monster.

Kindly post the script when you're done in pastebin.

Here is the script :

//*********************************************************************************************************************************************************************************
//*********************************************************************************************************************************************************************************
//***-- Script by :
//***-- Syllabear
//***
//*********************************************************************************************************************************************************************************
//*********************************************************************************************************************************************************************************
//***-- Messages : 
//***-- I will do my best to help you
//***-- More Details ? PM Me
//***
//*********************************************************************************************************************************************************************************
//***
//*********************************************************************************************************************************************************************************
//***Although these scripts might not suit or follow with what you have requested completely. But i still wish you can give it a try before reject the works.
//***
//*********************************************************************************************************************************************************************************

//-------------------------MONSTER DATABASE [ REPLACE it in Your MOB_DB.txt ]  --------------------------------------------------------------------
//-------------------------NPC [ Warper + Exchanger  ]  --------------------------------------------------------------------
belagio,72,61,7 script Gold Room  452,{
mes "[ Gold Room Manager ]";
mes "Hello, ";
mes "How may i serve for you ?";
mes "I can warp you to a Gold Mine.";
mes "Would you like to go there try to get some gold ?";
mes "You could be get rich if you lucky enough.";
next;
switch(select("Hunt Now:Later:Exchange Now")) {
 Case 1:
  mes "[ Gold Room Manager ]";
  mes "Okay, here you go";
  next;
  mes "[ Gold Room Manager ]";
  mes "Enjoy !";
  close2;  
  warp "bat_c01",0,0; 
  end;
 Case 2:
  mes "[ Gold Room Manager ]";
  mes "Okay, I'll wait you.";
  close;
 Case 3:
  mes "[ Gold Room Manager ]";
  mes "Do you wish to change it into ";
  mes "^0000FFBronze Coin^000000?";
  next;
  switch(select("Exchange:Not yet")) {
  case 1:
   mes "[ Gold Room Manager ]";
   mes "you have ";
   mes "- "+countitem(969)+" x ^008800 Golds^000000";
   mes "- "+countitem(7444)+" x ^008800 Treasure Boxes^000000";
   next;
   switch(select("Gold to Bronze Coin:Treasure Box to Coin")) {
   Case 1:
   mes "[ Gold Room Manager ]";
   if(countitem(969)<150){
   mes "You dont have enough gold with you.";
   close;
   }
   if(countitem(969)>150){ 
   mes "Okay there you go."; 
   mes "150 Gold has been changed to 10 Bronze Coin";
   delitem 969,150;
   getitem 673,10;
   close;
   end;
   }
   Case 2:
   mes "[ Gold Room Manager ]";
   if(countitem(7444)<150){
   mes "You dont have enough treasure box with you.";
   close;
   }
   if(countitem(969)>150){
   mes "Okay there you go."; 
   mes "150 Treasure Box has been changed to 10 Bronze Coin";
   delitem 7444,150;
   getitem 673,10;
   close;
   end;
   }
  }
 }
}
}

//-------------------------MONSTER SPAWN--------------------------------------------------------------------

bat_c01,0,0,0,0 monster For Bronze Coins!! 1852,55,0,0,0
bat_c01,0,0,0,0 monster For Bronze Coins!! 1853,55,0,0,0

THANKS GUYS !!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try add these...inside the script

OnPCLoadMapEvent:
while( strcharinfo(3) == "bat_c01" ){
getmapxy( @Map$,@X,@Y,0 );
sleep2 1000;
getmapxy( @Map1$,@X1,@Y1,0 );
if( @Map$ == @Map1$ && @X == @X1 && @Y == @Y1 )
 set @AFK,@AFK + 1;
if( @AFK >= 60 ){
 message strcharinfo(0),"You have AFK for 1 Minutes..will be kicked out..";
 sleep2 3000;
 warp "prontera",155,181;
}
}
end;

Out side the sript add this

bat_c01 mapflag loadevent

* And i Hate this Users - Syllabear Steal User Script Credits Completely without any scripts / lines / codes are belong to him... :( *

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...