Jump to content

Poring King

Donators
  • Posts

    842
  • Joined

  • Last visited

  • Days Won

    13

Everything posted by Poring King

  1. set #pg_delay, (GetTime(7)*12*31*24+GetTime(6)*31*24+GetTime(5)*24+GetTime(3) + 5); Control
  2. If your char warp to somewhere . Get the map coordinates by using *getmapxy("<variable for map name>",<variable for x>,<variable for y>{,<type>,"<search value>"}) Then create a variable to store the data.. Ex: set lastwarp$, getarg(0); set lastwarpx, getarg(1,0); set lastwarpy, getarg(2,0); Then when he select the menu for last warp do this warp lastwarp$,lastwarpx,lastwarpy;
  3. Change the Ev_HntRM into "YourNPCName::OnEv_HntRM" Or show here the whole script i will reproduce
  4. Google translate. First - Yes you can disable @autotrade in prontera using mapflaag. Referrence: rAthena-Master/doc/mapflag.txt 2nd - You can make alberta as a vending location by putting some news and tell your player that is your main shop town or market . To do the side vend only you need some vending control system . I can't find the file but it exist . The close thing i see is the Vending control of emistry from his script collection
  5. *getusers(<type>) This function will return a number of users on a map or the whole server. What it returns is specified by Type. Type can be one of the following values, which control what will be returned: 0 - Count of all characters on the map of the invoking character. 1 - Count of all characters in the entire server. 8 - Count of all characters on the map of the NPC the script is running in. --------------------------------------- *getmapusers("<map name>") This function will return the number of users currently located on the specified map. This is used officially in PVP scripts to check whether a room is filled to capacity. --------------------------------------- *getareausers("<map name>",<x1>,<y1>,<x2>,<y2>) This function will return the count of connected characters which are located within the specified area - an x1/y1-x2/y2 square on the specified map. This is useful for maps that are split into many buildings, such as all the "*_in" maps, due to all the shops and houses.
  6. Ok try this . Not tested but it should be work prontera,138,224,5 script Potion Trader 982,{ mes "NPC Name"; mes "Dialog"; next; mes "^0000EE2 Siege White Potion^000000 = ^FF00001 Siege Blue Potion"; mes "^0000EE2 Siege Blue Potion^000000 = ^FF00001 Siege White Potion"; switch(select("^0000EE(Siege White Potion)^000000 to ^FF0000(Siege Blue Potion):^0000EE(Siege Blue Potion)^000000 to ^FF0000(Siege White Potion)")) { case 1: if( countitem( [email protected] ) >= 2 ){ mes "How many will be traded into "+getitemname( [email protected] )+"?"; input [email protected],0,countitem( [email protected] ); if( [email protected] < 2 ) close; set [email protected],( [email protected] / 2 ); delitem [email protected],( [email protected] * 2 ); getitem [email protected],[email protected]; mes "Done."; } mes "Sorry you don't have enough item"; end; case 2: if( countitem( [email protected] ) >= 2 ){ mes "How many will be traded into "+getitemname( [email protected] )+"?"; input [email protected],0,countitem( [email protected] ); if( [email protected] < 2 ) close; set [email protected],( [email protected] / 2 ); delitem [email protected],( [email protected] * 2 ); getitem [email protected],[email protected]; mes "Done."; } mes "Sorry you don't have enough item"; end; } // Controls OnInit: set [email protected],11503; set [email protected],11504; }
  7. Provide me this FluxCP/config/application.php Below is default . 'ServerAddress' => 'localhost', // This value is the hostname:port under which Flux runs. (e.g., example.com or example.com:80) 'BaseURI' => 'fluxcp', // The base URI is the base web root on which your application lies. 'InstallerPassword' => 'secretpassword', So if you change it use it to open your fluxcp on your webhost
  8. Then go to your respective item add this code at the Script Do you mean like the gympass ? If yes then copy the ticket script code bonus bAddMaxWeight,n; MaxWeight + n (in units of 0.1)
  9. Invest on Ads. Ratemyserver.net : Post your server there Use Social Media Ads: Promote your Server thru Social Media Flatform.
  10. Go to your item_db.yml if u are using new rAthena if not go to your item_db.txt find the item you want to change and change . Change the value of the Weight to your desire one example: This is for new rAthena-Master with item_db.yml format Structure of Database: ########################################################################### # Item Database ########################################################################### # # Item Settings # ########################################################################### # - Id Item ID. # AegisName Server name to reference the item in scripts and lookups, should use no spaces. # Name Name in English for displaying as output. # Type Item type. (Default: Etc) # SubType Weapon or Ammo type. (Default: 0) # Buy Buying price. When not specified, becomes double the sell price. (Default: 0) # Sell Selling price. When not specified, becomes half the buy price. (Default: 0) # Weight Item weight. Each 10 is 1 weight. (Default: 0) # Attack Weapon's attack. (Default: 0) # MagicAttack Weapon's magic attack. (Default: 0) # Defense Armor's defense. (Default: 0) # Range Weapon's attack range. (Default: 0) # Slots Available slots in item. (Default: 0) # Jobs Jobs that can equip the item. (Map default is 'All: true') # Classes Upper class types that can equip the item. (Map default is 'All: true') # Gender Gender that can equip the item. (Default: Both) # Locations Equipment's placement. (Default: None) # WeaponLevel Weapon level. (Default: 0) # EquipLevelMin Minimum required level to equip. (Default: 0) # EquipLevelMax Maximum level that can equip. (Default: 0) # Refineable If the item can be refined. (Default: false) # View View sprite of an item. (Default: 0) # AliasName Another item's AegisName that will be sent to the client instead of this item's AegisName. (Default: null) # Flags: Item flags. (Default: null) # BuyingStore If the item is available for Buyingstores. (Default: false) # DeadBranch If the item is a Dead Branch. (Default: false) # Container If the item is part of a container. (Default: false) # UniqueId If the item is a unique stack. (Default: false) # BindOnEquip If the item is bound to the character upon equipping. (Default: false) # DropAnnounce If the item has a special announcement to self on drop. (Default: false) # NoConsume If the item is consumed on use. (Default: false) # DropEffect If the item has a special effect when on the ground. (Default: None) # Delay: Item use delay. (Default: null) # Duration Duration of delay in seconds. # Status Status Change used to track delay. (Default: None) # Stack: Item stack amount. (Default: null) # Amount Maximum amount that can be stacked. # Inventory If the stack is applied to player's inventory. (Default: true) # Cart If the stack is applied to the player's cart. (Default: false) # Storage If the stack is applied to the player's storage. (Default: false) # GuildStorage If the stack is applied to the player's guild storage. (Default: false) # NoUse: Conditions when the item is unusable. (Default: null) # Override Group level to override these conditions. # Sitting If the item can not be used while sitting. (Default: false) # Trade: Trade restrictions. (Default: null) # Override Group level to override these conditions. # NoDrop If the item can not be dropped. (Default: false) # NoTrade If the item can not be traded. (Default: false) # TradePartner If the item can not be traded to the player's partner. (Default: false) # NoSell If the item can not be sold. (Default: false) # NoCart If the item can not be put in a cart. (Default: false) # NoStorage If the item can not be put in a storage. (Default: false) # NoGuildStorage If the item can not be put in a guild storage. (Default: false) # NoMail If the item can not be put in a mail. (Default: false) # NoAuction If the item can not be put in an auction. (Default: false) # Script Script to execute when the item is used/equipped. (Default: null) # EquipScript Script to execute when the item is equipped. (Default: null) # UnEquipScript Script to execute when the item is unequipped or when a rental item expires. (Default: null) ########################################################################### - Id: 501 AegisName: Red_Potion Name: Red Potion Type: Healing Buy: 50 Weight: 70 Script: | itemheal rand(45,65),0; This is for the old rAthena-Master with item_db.txt file // Structure of Database: // ID,AegisName,Name,Type,Buy,Sell,Weight,ATK,DEF,Range,Slots,Job,Class,Gender,Loc,wLV,eLV[:maxLevel],Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script } 501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(45,65),0; },{},{}
  11. I think the close NPC to your request is my Shower event . But you need to revise it and make it to NPC base
  12. Here try this i just made it not tested but i hope you get the idea i try to make it more informative so you can understand prontera,x,y script Test 99{ mes "Welcome"; mes "Let me check if you have zeny"; next; //To check if the player have zeny if ( Zeny > 5000){ // This is the condition if true then proceed if false then end the conversation set Zeny,Zeny-5000; // Deduct 5,000z mes "I see you have zeny now what should i do?"; next; switch(select("Process:Exit")){ case 1: mes "You select Process this is the start for the menu process"; end; case 2: mes "You select Exit this is the start for the menu exit"; end; } end; } mes "Sorry you dont have zeny to process"; end; // To end conversation }// End of script
  13. Spend time reading the rAthena-Master/doc/script_commands.txt to answer your question find this inside the file *stopnpctimer
  14. Check your connection carefully in char_athena.conf and map_athena.conf
  15. Goto rAthena-Master/doc/script_commands for guide everything you need for scripting is there Ex: switch(select("This is Label and it will go to Case 1:This is Label and it will go to Case 2")) { case 1: mes "You said yes!"; break; case 2: mes "Aww, why?"; break; } close;
  16. I say that because you can grant all player a reward thru SQL or You can make a NPC and do some scripting like create npc ingame that will accept a reward from Beta test . Meaning if the account is register during beta they are allowed to get a reward from npc
  17. Get all player register with in this date up to end of beta . Run sql or click and NPC with a code that will grant them a Item or its up to you how you do the tweek
  18. Do you mean when a monster die it will announce to the server ?
  19. This is how we made a tweek on event This is how we do the controls OnInit: .Event = 0 // Meaning 0 = close | 1 = Open end; So that mean when the event start we will do like this . We set .Event,1; to make it open set .Event,1; After this you will add broadcast right ? after the broadcast countdown when the broadcast say it close this time we will set it to 0 This time the event is now close. set .Event,0; Now we will add condition statement if (.Event = 1){ mes "Add something here if the event is Open"; mes "Ok i will warp you now to event warper }else{ mes "Add something here if the event is close"; mes "Sorry the event are now close"; end; } end;// to end the statement
  20. Try this i just made this on my phone mes "Welcome Admin"; next; switch((""+((!$EVENT)?"^ff0000Start Event!^000000":"^00AA00Finish Event^000000")+"^000000:Exit")){ case 1: set $EVENT, ((!$EVENT)?1:0); if ($EVENT == 1){ mes "Event Started"; warp "mapname",x,y; announce "test",BC_ALL; sleep 5000; end; }else{ mes "Event Ended!"; end; } end; } end; case 2: end; }
  21. Then create a new post for this matter Source support
  22. I think its worth to try to your self so you know the difference
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.