Jump to content

Obiwan

Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by Obiwan

  1. if you are using VPS just put 127.0.0.1 and if home connection naman open your port para makapasok ka using wan ip
  2. ako wala pang harmony . harmonize lang ? good to see all the oldiest here any way about your problem mr thread starter i prefer to use virtual box and download centos 6 or higher but if you dont know how to use linux then use windows and learn how to compile there are a lot of guide's here how to compile server using windows
  3. hi the andro keeps stopping after the GRF caching any solution ? already tested the client in pc its working 100%
  4. if you want a cheaper one then go to lowendtalk but you will have to setup the server by your self
  5. Obiwan

    VPS Support

    yes that is possible u can use 1 login 2 char and 2 map so only 1 account for 2 server and u can also use it as a proxy server if you have many vps u can make a proxy server
  6. Hi can someone share to me a database with 4 slot all equips and weapon thanks
  7. make sure na na compiled mo ung server using your client version and check the packet_db.txt
  8. A Wedding script like official + GM Control
  9. Hi can i request for GM Wedding Script ? Wedding Script with GM Control
  10. i hope someone can fixed my problem
  11. Hi i need a help i have a tax shop added to my server but if someone get the castle and someone buy items to the tax shop you will get error and you need to close your client and if no ones own the castle u can buy without error here is the tax shop script - shop tax_Shop -1,909:100 prontera,164,173,5 script Tax Castle Shop 757,{ if( select( "Open Shop",( getcharid(0) == getguildmasterid(getcastledata( .CastleMap$,1 )) )?"Collect Tax - "+$Guild_Tax+" zeny":"" ) == 1 ) { mes "A Total of "+.TaxRate+"% will be transfer to "+getguildname( getcastledata( .CastleMap$,1 ) )+" Guild."; callshop "tax_Shop",1; npcshopattach "tax_Shop"; end; }else{ mes "Gained total of "+$Guild_Tax+" Zeny."; if( select("Collect:Cancel") == 1 ){ set Zeny,Zeny + $Guild_Tax; set $Guild_Tax,0; mes "Tax Collected."; } } close; OnBuyItem: set .@TotalCost,0; for(set .@i,0; .@i < getarraysize( @bought_nameid ); set .@i,.@i+1) for(set .@j,0; .@j < getarraysize( .Items ); set .@j,.@j+1) if( .Items[.@j] == @bought_nameid[.@i] ) set .@TotalCost,.@TotalCost + ( .Costs[.@j] * @bought_quantity[.@i] ); if( Zeny >= .@TotalCost ){ set Zeny,Zeny - .@TotalCost; for(set .@i,0; .@i < getarraysize( @bought_nameid ); set .@i,.@i+1) getitem @bought_nameid[.@i],@bought_quantity[.@i]; set $Guild_Tax,$Guild_Tax + (( .@TotalCost * .TaxRate ) / 100 ); message strcharinfo(0),"Tax Gained by "+getguildname( getcastledata( .CastleMap$,1 ) )+" Guild : "+(( .@TotalCost * .TaxRate ) / 100 )+" Zeny"; }else{ mes "You dont have enough Zeny..."; } close; OnInit: // Castle Map Name set .CastleMap$,"prtg_cas01"; // Tax Gained upon purchasing set .TaxRate,10; // Item List + Cost setarray .Items[0],611,1750,1752,1751,501,502,503,504,506,533,645,656,657,601,602,1065,2239; setarray .Costs[0],40,1,3,3,50,200,550,1200,40,200,800,1500,3000,60,300,100,10000; npcshopitem "tax_Shop",512,1000; npcshopdelitem "tax_Shop",512; for(set .@i,0; .@i < getarraysize( .Items ); set .@i,.@i+1) npcshopadditem "tax_Shop",.Items[.@i],.Costs[.@i]; end; }
  12. hi how to resize this image it too big i cant see the buy and close button
  13. hi how to resize this image it too big i cant see the buy and close button
  14. Hi can someone help me with this problem when i start my ragnarok client wont show up in other error show " GAME ERROR " we could not run ragnarok.exe here are my last diff patch <?xml version="1.0"?> <DiffProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Name>Last Patches</Name> <Entries> <DiffProfileEntry> <PatchID>2</PatchID> <PatchName>Allow Chat Flood (? lines)</PatchName> <Inputs> <DiffProfileInput> <name>allowChatFlood</name> <value /> </DiffProfileInput> </Inputs> </DiffProfileEntry> <DiffProfileEntry> <PatchID>88</PatchID> <PatchName>Allow space in guild name</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>7</PatchID> <PatchName>Change Gravity Error Handler</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>52</PatchID> <PatchName>GM Chat Color</PatchName> <Inputs> <DiffProfileInput> <name>gmChatColor</name> <value>FFFF00</value> </DiffProfileInput> </Inputs> </DiffProfileEntry> <DiffProfileEntry> <PatchID>57</PatchID> <PatchName>Guild Chat Color</PatchName> <Inputs> <DiffProfileInput> <name>guildChatColor</name> <value>00FF40</value> </DiffProfileInput> </Inputs> </DiffProfileEntry> <DiffProfileEntry> <PatchID>56</PatchID> <PatchName>Main Chat Color</PatchName> <Inputs> <DiffProfileInput> <name>mainChatColor</name> <value>FFFFFF</value> </DiffProfileInput> </Inputs> </DiffProfileEntry> <DiffProfileEntry> <PatchID>58</PatchID> <PatchName>Other Party Chat Color</PatchName> <Inputs> <DiffProfileInput> <name>otherpartyChatColor</name> <value>FF00FF</value> </DiffProfileInput> </Inputs> </DiffProfileEntry> <DiffProfileEntry> <PatchID>59</PatchID> <PatchName>Your Party Chat Color</PatchName> <Inputs> <DiffProfileInput> <name>yourpartyChatColor</name> <value>FFFFFF</value> </DiffProfileInput> </Inputs> </DiffProfileEntry> <DiffProfileEntry> <PatchID>55</PatchID> <PatchName>OtherPlayer Chat Color</PatchName> <Inputs> <DiffProfileInput> <name>otherChatColor</name> <value>FFFFFF</value> </DiffProfileInput> </Inputs> </DiffProfileEntry> <DiffProfileEntry> <PatchID>60</PatchID> <PatchName>Your Player Chat Color</PatchName> <Inputs> <DiffProfileInput> <name>yourChatColor</name> <value>FFFFFF</value> </DiffProfileInput> </Inputs> </DiffProfileEntry> <DiffProfileEntry> <PatchID>8</PatchID> <PatchName>Custom Window Title</PatchName> <Inputs> <DiffProfileInput> <name>customWindowTitle</name> <value>Pinas Ragnarok Online</value> </DiffProfileInput> </Inputs> </DiffProfileEntry> <DiffProfileEntry> <PatchID>9</PatchID> <PatchName>Disable 1rag1 type parameters</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>10</PatchID> <PatchName>Disable 4 Letter UserCharacter Limit</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>11</PatchID> <PatchName>Disable 4 Letter UserID Limit</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>12</PatchID> <PatchName>Disable 4 Letter UserPassword Limit</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>13</PatchID> <PatchName>Disable Ragexe Filename Check</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>14</PatchID> <PatchName>Disable Hallucination Wavy Screen</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>15</PatchID> <PatchName>Disable HShield</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>61</PatchID> <PatchName>Disable Packet Encryption</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>16</PatchID> <PatchName>Disable Swear Filter</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>68</PatchID> <PatchName>Enable 64k Hairstyle</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>77</PatchID> <PatchName>Enable Custom 3D Bones</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>90</PatchID> <PatchName>EnableDNSSupport</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>49</PatchID> <PatchName>Enable Multiple GRFs</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>17</PatchID> <PatchName>Enable Official Custom Fonts</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>19</PatchID> <PatchName>Enable Title Bar Menu</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>76</PatchID> <PatchName>Enforce Official Login Background</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>20</PatchID> <PatchName>Extended Chat Box</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>21</PatchID> <PatchName>Extended Chat Room Box</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>69</PatchID> <PatchName>ExtendNpcBox</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>22</PatchID> <PatchName>Extended PM Box</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>64</PatchID> <PatchName>@ Bug Fix (Recommended)</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>71</PatchID> <PatchName>Ignore Missing File Error</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>72</PatchID> <PatchName>Ignore Missing Palette Error</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>74</PatchID> <PatchName>Increase Screenshot Quality</PatchName> <Inputs> <DiffProfileInput> <name>uQuality</name> <value /> </DiffProfileInput> </Inputs> </DiffProfileEntry> <DiffProfileEntry> <PatchID>28</PatchID> <PatchName>Increase Headgear ViewID to 5000</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>30</PatchID> <PatchName>Increase Zoom Out 50%</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>65</PatchID> <PatchName>Load ItemInfo.lua before lub</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>33</PatchID> <PatchName>KOREA ServiceType XML Fix</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>86</PatchID> <PatchName>Only First Login Background</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>87</PatchID> <PatchName>Only Second Login Background</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>67</PatchID> <PatchName>Disable Quake skill effect</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>35</PatchID> <PatchName>Read Data Folder First</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>36</PatchID> <PatchName>Read msgstringtable.txt</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>37</PatchID> <PatchName>Read questid2display.txt</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>38</PatchID> <PatchName>Remove Gravity Ads</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>39</PatchID> <PatchName>Remove Gravity Logo</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>84</PatchID> <PatchName>Remove Serial Display</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>41</PatchID> <PatchName>Disable Nagle Algorithm</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>50</PatchID> <PatchName>Skip License Screen</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>42</PatchID> <PatchName>Skip Resurrection Buttons</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>95</PatchID> <PatchName>Use SSO Login Packet</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>44</PatchID> <PatchName>Translate Client In English</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>51</PatchID> <PatchName>Ascii & Arial on All Langtypes</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>46</PatchID> <PatchName>Use Normal Guild Brackets</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>48</PatchID> <PatchName>Use Plain Text Descriptions</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>47</PatchID> <PatchName>Use Ragnarok Icon</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>54</PatchID> <PatchName>eXtract MsgStringTable.txt</PatchName> <Inputs /> </DiffProfileEntry> <DiffProfileEntry> <PatchID>62</PatchID> <PatchName>eXtract txt file strings</PatchName> <Inputs /> </DiffProfileEntry> </Entries> </DiffProfile>
  15. Obiwan

    CORA™ CMS

    Sir Takari i got a problem the peak players and online players are not showing the real online in the server . i think its not refreshing every second
  16. how to fixed this problem everytime i will login this will show " unregistered id " but if i use my other client with restore login it success to login im using 2012-04-10 client ragre
  17. Obiwan

    Help Font Color

    where i can change this font in css? any one who can help me ?
  18. Hi can someone help with this script i want the slot machine prizes to set to a random prizes Slot Machine Thread : http://rathena.org/board/topic/98001-quests-games-slot-machine/ Slot Machine Script this is the original script : /* ============================================================= /* Slot Machine - Triple Slot Machine /* ============================================================= /* Version: v0.7 /* v0.1 - Original Script Created. /* v0.2 - Added Option for Triple Slot Machine with animations. /* v0.3 - Added support for item pricing &/or zeny pricing. /* v0.4 - Cleaned up script variables for easy editing. /* v0.5 - Tested out some new scripting methods with IF(THEN). /* v0.6 - Added option to change slot machine modes ingame. /* v0.7 - Added optional sound effects to slot machines. - NOTE /* ============================================================= /* Description /* ============================================================= /* This script will allow users to spend zeny &/or an item for a /* chance to win a prize from the slot machine. Currently there /* are 2 versions. First is a Single Slot Machine, where only 1 /* slot is rolled. Second is the Triple Slot machine, where 3 /* slots are rolled. For either version, SUCCESS must be the /* only thing displayed in order to win. /* ============================================================= /* NOTE - If using soundeffects you must add the ".wav" files /* provided in the ".rar" file to your: data/wav folder located /* in either your: ( Ragnarok folder ) OR ( .grf file ) /* ============================================================= /* Created By: GmOcean /* ===========================================================*/ prontera,165,140,4 script SlotMachine::1slot 563,{ if( getgmlevel() == 99 ) { mes "Welcome Administrator.","What would you like to do?"; menu "Play Game",-,"Change Slot Machine Mode",iMode; next; } switch( getd(".mode"+strnpcinfo(3)+"") ){ case 0: // Single Slot machine mode. mes "Do you want to play a game?"; if( !.payment ) { mes "It costs: "+ .ssm_payment_message$[0] +" to play."; } else if ( .payment == 1 ) { mes "It costs: "+ .ssm_payment_message$[1] +" to play."; } else if ( .payment == 2 ) { mes "It costs: "+ .ssm_payment_message$[0] +" & "+ .payment_message$[1] +" to play."; } if( select("YES:NO") == 2 || Zeny < .ssm_payment[0] && ( !.payment || .payment == 2 ) || countitem(.ssm_payment[1]) < .ssm_payment[2] && .payment ){ close; } while( @menu == 1 ){ if( !.payment || .payment == 2 ) { Zeny -= .ssm_payment[0]; } if( .payment ) { delitem( .ssm_payment[1], .ssm_payment[2] ); } if( .soundeffects ) { soundeffect "se_cash_provider.wav",0; } .@a = rand(1,100); if( .@a < atoi(.ssm_animate$[0]) ){ .@a = 1; } else { .@a = 2; } .@b = 1; while( .@b < atoi(.ssm_animate$[.@a]) ) { cutin .ssm_animate$[3] + .@b,4; sleep2 ( ( atoi(.ssm_animate$[4]) * 1000 ) / atoi(.ssm_animate$[.@a]) ); .@b++; } if( .@a == 1 ){ cutin .ssm_animate$[3] + atoi(.ssm_animate$[.@a]),4; dispbottom "Failed"; } else { cutin .ssm_animate$[3] + atoi(.ssm_animate$[.@a]),4; if( !.prize || .prize == 2 ) { Zeny += .ssm_prize[0]; } if( .prize ) { getitem .ssm_prize[1], .ssm_prize[2]; } if( .soundeffects ){ soundeffect "rog_steal coin.wav",0; } } if( select("Another Round:I'm done") == 2 || Zeny < .ssm_payment[0] && ( !.payment || .payment == 2 ) || countitem(.ssm_payment[1]) < .ssm_payment[2] && .payment ){ cutin "",255; close; } } end; case 1: // Triple Slot machine mode. mes "Do you want to play a game?"; if( !.payment ) { mes "It costs: "+ .tsm_payment_message$[0] +" to play."; } else if ( .payment == 1 ) { mes "It costs: "+ .tsm_payment_message$[1] +" to play."; } else if ( .payment == 2 ) { mes "It costs: "+ .tsm_payment_message$[0] +" & "+ .tsm_payment_message$[1] +" to play."; } if( select("YES:NO") == 2 || Zeny < .tsm_payment[0] && ( !.payment || .payment == 2 ) || countitem(.tsm_payment[1]) < .tsm_payment[2] && .payment ){ close; } while( @menu == 1 ){ if( !.payment || .payment == 2 ) { Zeny -= .tsm_payment[0]; } if( .payment ) { delitem( .tsm_payment[1], .tsm_payment[2] ); } if( .soundeffects ) { soundeffect "se_cash_provider.wav",0; } // Slot 1 = 100% Chance for success. (Because I didn't make a fail animation for it. .@2 = rand(1,100); //Rolls dice for Slot 2 .@3 = rand(1,100); //Rolls dice for Slot 3 if( .@2 <= atoi(.tsm_animate$[0]) && .@3 <= atoi(.tsm_animate$[1]) ){ .@a = 8; } else if( .@2 <= atoi(.tsm_animate$[0]) && .@3 > atoi(.tsm_animate$[1]) ){ .@a = 6; } else if( .@2 > atoi(.tsm_animate$[0]) && .@3 <= atoi(.tsm_animate$[1]) ){ .@a = 4; } else { .@a = 2; } .@b = 1; while( .@b < atoi(.tsm_animate$[.@a+1]) ) { cutin .tsm_animate$[.@a] + .@b,4; sleep2 ( ( atoi(.tsm_animate$[10]) * 1000 ) / atoi(.tsm_animate$[.@a+1]) ); .@b++; } cutin .tsm_animate$[.@a] + atoi(.tsm_animate$[.@a+1]),4; if( .@a == 2 ){ if( !.prize || .prize == 2 ) { Zeny += .tsm_prize[0]; } if( .prize ) { getitem .tsm_prize[1], .tsm_prize[2]; } if( .soundeffects ){ soundeffect "rog_steal_coin.wav",1; } } else { dispbottom "Failed"; } if( select("Another Round:I'm done") == 2 || Zeny < .tsm_payment[0] && ( !.payment || .payment == 2 ) || countitem(.tsm_payment[1]) < .tsm_payment[2] && .payment ){ cutin "",255; close; } } end; } OnSingleSlot: setd ".mode"+strnpcinfo(3)+"",0; end; OnTripleSlot: setd ".mode"+strnpcinfo(3)+"",1; end; iMode: next; mes "Which did you want to do?"; menu "Change THIS machine's mode:Change ALL machine's mode",-; if( @menu == 1 ) { next; mes "What mode would you like this machine to have?"; menu "Single Slot Machine Mode:Triple Slot Machine Mode",-; if( @menu == 1 ) { setd ".mode"+strnpcinfo(3)+"",0; } else { setd ".mode"+strnpcinfo(3)+"",1; } close; } else { next; mes "What mode would you like to change all slot machines to?"; menu "Single Slot Machine Mode:Triple Slot Machine Mode",-; if( @menu == 1 ) { donpcevent "::OnSingleSlot"; } else { donpcevent "::OnTripleSlot"; } close; } OnInit: // 0 = Disabled, 1 = Enabled. .soundeffects = 1; //[ 0 = Single Slot Machine Mode ]_[ 1 = Triple Slot Machine Mode ] setd ".mode"+strnpcinfo(3)+"",0; //[0] = Fail Rate //[1] = Fail (Do not change) //[2] = Success (Do not change) //[3] = File Name (Do not change) //[4] = Animation Time (Do not change, for best results ) setarray .ssm_animate$[0],"50","29","33","slot_","3"; //[0] = Fail Rate "Slot 2" //[1] = Fail Rate "Slot 3" //[2] = SSS (Do not change) //[3] = SSS_Count (Do not change) //[4] = SSF (Do not change) //[5] = SSF_Count (Do not change) //[6] = SFS (Do not change) //[7] = SFS_Count (Do not change) //[8] = SFF (Do not change) //[9] = SFF_Count (Do not change) //[10] = Animation Time (Do not change, for best results ) setarray .tsm_animate$[0],"30","30","SSS_","41","SSF_","37","SFS_","41","SFF_","45","3"; // Prize Settings // Prize Type // 0 = Zeny, 1 = Item, 2 = Zeny&Item .prize = 1; // [0] = Zeny, [1] = Item ID, [2] = Item Amount; setarray .ssm_prize[0],125,25100,1; setarray .tsm_prize[0],450,25100,3; // Payment Settings // Payment Type // 0 = Zeny, 1 = Item, 2 = Zeny&Item .payment = 0; // [0] = Zeny, [1] = Item ID, [2] = Item Amount; setarray .ssm_payment[0],5000000,501,1; // Single Slot Machine Payment Price setarray .tsm_payment[0],3000000,501,1; // Triple Slot Machine Payment Price // DO NOT CHANGE BELOW // Payment Text Syntax setarray .ssm_payment_message$[0],""+ .ssm_payment[0] +" zeny",""+ getitemname(.ssm_payment[1]) +" x"+ .ssm_payment[2] +""; setarray .tsm_payment_message$[0],""+ .tsm_payment[0] +" zeny",""+ getitemname(.tsm_payment[1]) +" x"+ .tsm_payment[2] +""; end; } //Duplicates prontera,165,150,4 duplicate(1slot) SlotMachine#2slot 563 prontera,165,145,4 duplicate(1slot) SlotMachine#3slot 563
  19. hi i did not edit the script sir i just put in on my server then the error shows sir emistry
  20. Hi i get this script from this thread http://rathena.org/board/topic/73493-tax-script/ Here is the script code http://pastebin.com/raw.php?i=vnqJevtM - shop tax_Shop -1,909:100 prontera,155,181,5 script Sample#taxshop 757,{ if( select( "Open Shop",( getcharid(0) == getguildmasterid(getcastledata( .CastleMap$,1 )) )?"Collect Tax":"" ) == 1 ){ mes "A Total of "+.TaxRate+"% will be transfer to "+getguildname( getcastledata( .CastleMap$,1 ) )+" Guild."; callshop "tax_Shop",1; npcshopattach "tax_Shop"; end; }else{ mes "Gained total of "+$Guild_Tax+" Zeny."; if( select("Collect:Cancel") == 1 ){ set Zeny,Zeny + $Guild_Tax; set $Guild_Tax,0; mes "Tax Collected."; } } close; OnBuyItem: set .@TotalCost,0; for(set .@i,0; .@i < getarraysize( @bought_nameid ); set .@i,.@i+1) for(set .@j,0; .@j < getarraysize( .Items ); set .@j,.@j+1) if( .Items[.@j] == @bought_nameid[.@i] ) set .@TotalCost,.@TotalCost + ( .Costs[.@j] * @bought_quantity[.@i] ); if( Zeny >= .@TotalCost ){ set Zeny,Zeny - .@TotalCost; for(set .@i,0; .@i < getarraysize( @bought_nameid ); set .@i,.@i+1) getitem @bought_nameid[.@i],@bought_quantity[.@i]; set $Guild_Tax,$Guild_Tax + (( .@TotalCost * .TaxRate ) / 100 ); message strcharinfo(0),"Tax Gained by "+getguildname( getcastledata( .CastleMap$,1 ) )+" Guild : "+(( .@TotalCost * .TaxRate ) / 100 )+" Zeny"; }else{ mes "You dont have enough Zeny..."; } close; OnInit: // Castle Map Name set .CastleMap$,"prtg_cas03"; // Tax Gained upon purchasing set .TaxRate,10; // Item List + Cost setarray .Items[0],607,608,512; setarray .Costs[0],100,200,300; npcshopitem "tax_Shop",512,1000; npcshopdelitem "tax_Shop",512; for(set .@i,0; .@i < getarraysize( .Items ); set .@i,.@i+1) npcshopadditem "tax_Shop",.Items[.@i],.Costs[.@i]; end; } Need help here
×
×
  • Create New...