Jump to content

Virtue

Members
  • Posts

    354
  • Joined

  • Days Won

    6

Everything posted by Virtue

  1. if(.item_Rate[.@i] == <chance you want>){ announce "[ Lotti Girl ]: Player "+ .@name$ +" obtained 1 x "+ getitemname(.item_ID[.@i]) +" with "+ .item_Rate[.@i] +"%.",bc_map; }
  2. to just announce on map, change announce "[ Lotti Girl ]: Player "+ .@name$ +" obtained 1 x "+ getitemname(.item_ID[.@i]) +" with "+ .item_Rate[.@i] +"%.",0; to announce "[ Lotti Girl ]: Player "+ .@name$ +" obtained 1 x "+ getitemname(.item_ID[.@i]) +" with "+ .item_Rate[.@i] +"%.",bc_map; then if you want it to only announce by specific chances do something like, if(.item_Rate[.@i] == <chance you want>){ announce part of the script }
  3. If you would want to add refine/upgrade requirements, you'd have to modify the script to your needs. you might want to look into this part. function Add { if (getitemname(getarg(1)) == "null") { debugmes "Quest reward #"+getarg(1)+" invalid (skipped)."; return; } setarray .@j[0],getarg(2),getarg(3),getarg(4); for(set .@i,5; .@i<getargcount(); set .@i,.@i+2) { if (getitemname(getarg(.@i)) == "null") { debugmes "Quest requirement #"+getarg(.@i)+" invalid (skipped)."; return; } else setarray .@j[.@i-2],getarg(.@i),getarg(.@i+1); } copyarray getd(".q_"+getarg(1)+"[0]"),.@j[0],getarraysize(.@j); npcshopadditem "qshop"+getarg(0),getarg(1),((.ShowZeny)?getarg(3):0); return; } Add(1,5022,1,0,0,7086,1,10); add(1 = getarg(0), 5022 = getarg(1), 1 = getarg(2), 0 = getarg(3), 0 = getarg(4), 7086 = getarg(5), and so on.. you would need to know how or where you'd insert the related refinement script commands in that function.
  4. same answer pa din about sa quest. hindi magbabago yun brader, aralin mo paano mo sya makakabitan na ng quest. Kung updated ung rAthena mo ganito dapat lalabas dyan, no errors same script exactly dun sa binigay ko from above. wala issue sa latest rAthena.
  5. duon mo sisimulan buuin ung quest mo brader, hindi pa sya gagana as is if gusto mo ng quest. sinalpak ko as a tip para may starting point sa pag gawa nung requirement. itong line na to -> if (gettimetick(2) - credscd < (3600 * 24 * credsdays)) { is ng line mo para sa 24 hour cooldown check. so if mag lalagay ka ng requirement na need mag quest ni magpapapalit sa taas nyan mo sisimulan buuin un condition na yun. then separate pa para sa quest mo. pwedeng separate npc or separate section lang within the same npc.
  6. lagyan mo ng conditions at variables ng quest mo. sample sa taas neto if(QUEST VARIABLES < 1) { mes .@npcname$; mes "you need to complete the quest before you can use my services"; close; } if (gettimetick(2) - credscd < (3600 * 24 * credsdays)) { mes .@npcname$; //Basic notification na gamit na ung npc today ayan idea, tapos buuin mo na sya gawan mo ng sariling quest either sa same npc or sa ibang npc.
  7. Try mo to. 24 Hours cooldown 12mn reset Did not try / test any of the script too time consuming para maghintay ng oras for the conditions, but it should work as intended, post any errors kung meron.
  8. Ohh. There's that, I didn't check earlier, but I'll look into this. Thank you.
  9. Really cool. Where do you get those pet images and how do you put them on the client?
  10. - Id: 13697 AegisName: J_Blessing10_Box Name: Blessing Scroll 10 Box Type: Cash Weight: 10 Flags: UniqueId: true Trade: NoDrop: true NoTrade: true NoSell: true NoCart: true NoGuildStorage: true NoMail: true NoAuction: true Script: | getitem 12215,10; ########################################################################### # # 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, Ammo or Card 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: 1 for Weapons) # ArmorLevel Armor level. (Default: 1 for Armors) # 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) # Gradable If the item can be graded. (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 on the ground when dropped by a monster. (Default: None) So you can either remove Flags: UniqueId: true UniqueId - If the item is a unique stack. (Default: false), this is unique every purchase on shops (npc shops,cash shop etc) which is the one in your example or use the following script commands to combine them into one stack --------------------------------------- *mergeitem({,<char_id>}); Open merge item window to merge available item can be merged. Examples 1. See the NPC 'npc/re/other/merge_item.txt'. 2. Simple usage: mes "Let's check if any item can be merged."; close2; mergeitem; end; --------------------------------------- *mergeitem2({<item_id>{,<char_id>}}); *mergeitem2({"<item name>"{,<char_id>}}); Merge all stackable items that separated by GUID flags (UniqueId in item_db or in item_group). If no item ID/name given, all possible items in player's inventory will be merged. ---------------------------------------
  11. Managed to get this working as well as using it as sc_start sc_vip. now my issue is the timer disappears when it reaches a certain day amount. e.g 36hours(1day 12hrs) vs 24days vs 25days and above
  12. Yeah this does work, you have to edit lines 1934 1935 1936 and E X P rate, Drop rate & Death Penalty it changes but where it says (PCCafe 0.0% TPlus 0.0% + <server name> Server XX.XX%) is at line 3033 but doesn't do a thing however I want to change it. I can remove the rest but doesn't look useful. Maybe something in src needs to be changed, but I'm not sure.
  13. Will check this. thank you @Panic
  14. Very good to work with. Responsive and super quick deliveries. Ordered Splash and Loading Screens. But, looking to get more in the future. recommended 100%, services were delivered earlier than e-tat. If all works well, will be going with them for all future gfx needs of the project. - re entering my feedback. was able to access my original account after a while. plus ordered another set of loading screens with them and very satisfied ?
  15. Virtue

    CORA™ CMS

    wondering how was this solved? i am getting this error for the loader right now, anybody knows?
  16. Hello, How long does the payment verification take? I purchased a script on the download section but its still under verification since yesterday. @_@
  17. Virtue

    Itemizer PHP

    Hi I have been looking at this and now I am wondering how do I put a pagination system at the Itemizer php from this http://rathena.org/board/topic/60513-event-ticket-rewarder-php-log-viewer-anti-gm-corruption/ i tried myself but i am having no luck though.
  18. Virtue

    CP Question

    Xantara's Flux
  19. try to use this getequipisequiped(<equipment slot>) This functions will return 1 if there is an equipment placed on the specified equipment slot and 0 otherwise. For a list of equipment slots
  20. Virtue

    CP Question

    Hi, Where do you think I can see/change the preferred_server settings? I am having an error and it kinda shows something about that
  21. it could be done at the skill_castdb i think, justi ncrease the after cast delay or put/ add cooldowns. but I think the players would not like that. but its all up to you
  22. Hi Guys, I know this has been posted over and over again, but I think i have read and check all the other topics about this and still can't find the answer. what I think everybody wants/need/asks for is this. I found this script made by annie.
  23. Hi Scripting Pros, is it possible to use this query on a script? SELECT COUNT(account_id) AS OnlinePlayers FROM char WHERE online=1; I will be using it for some script that checks the online player count Thanks to those who will help.
×
×
  • Create New...