Jump to content

BTNX

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by BTNX

  1. ^Thanks for the reply guys... The thing is, sometimes, multiple NPCs are stored in one text files... Meaning, I'd have to also search the content of the files in order to find the NPC... Anyway, yeah, I know about windows search... I'm just trying to find the most efficient way to figure out which text file contains the scrip and such. Let's say you want to edit the first default NPC you encounter in the novice training area but you don't know the DIR of that NPC, how do you guys go about finding the script? Ima go try baregrep and wingrep in a bit wow, that baregrep is awesome thanks
  2. What's the fastest/easiest way to find out the dir or file.txt that holds the script of an NPC... Lets say, I want to edit Kafra1 in prontera, how do I find out which file to edit?
  3. Disregard my last, the script works... it was just a minor grammatical error... I mixed up on and off.
  4. ^ I will try that. I already tested that by using dispbottom right after OnPCLoginEvent before though. Also, I thought about using 0 and 1 but I wanted to dispbottom the rest$ value will display on or off instead of 1 or 0 without adding if(reset == 0) dispbottom blah blah on the bindatcmd script. Which one is better anyway?
  5. ^ yes so that I can easily remove it if needed.
  6. Can someone please look this over: I'm talking about the last part of the script... I added everything so that you guys know what's going on... anyway, this script actually sends the player back to "prontera",156,179 everytime they log out ... The problem is... the script is supposed to not reset the player if their variable reset$ is = "on"... but it always reset the player anyway regardless of reset$ value Btw... Putting the script into sleep will force it to detach rid and the script wouldn't know who to reset /query etc.
  7. ^ thanks. I'm trying to write a script that would reset characters upon log out. The OnPCLogoutEvent scripts such as query_sql set variable,value; etc. will still carry on right?
  8. BTNX

    Performance

    For some reason, my test server started lagging after I enabled this script: Is any part of this script heavy on the server?
  9. ^ Thanks, Can you give me an example on how to use that? Would it also have the same effect if the player got disconnected instead of logging out?
  10. How do I automatically load a script when ever a character logs in or out without using loadevent on every map?
  11. BTNX

    please help

    I think he wants @autotrade... if that is the case you can just set access to autotrade to group id 0 instead of... I think default is 1 which is premium. is there a reason why you want players to talk to the npc first?
  12. I cant wait for this one. The list of commands for auto complete seems to be missing some commands... How do I manually add more commands for auto complete?
  13. BTNX

    @command

    @Euphy... I'm aware of the link... I actually knew about that page, I just didn't understand it before. Thanks for the replies everyone...
  14. BTNX

    @command

    Thanks for the reply... Is it possible to use parameters with this?
  15. BTNX

    @command

    Ow... Thanks again... Btw, how would you use parameters?
  16. BTNX

    @command

    I'm not sure if this is the right section for this because I'm not sure if this is a source question or what. I need to add an @command "@support" and all it does is open a script... Similar to whisper system
  17. I'm not sure if this is the right section for this... I just don't know where to start I'm trying to create a usable item(ticket) that will add a value to an existing value on SQL For example... My table looks like this: acc_id c_points 2000000 0 2000010 250 2000005 150 If a player with account ID 2000010 used 3 usable item(ticket), it will add 100 per item and will result into this: acc_id c_points 2000000 0 2000010 550 2000005 150 also, if a player used the item for the first time, automatically insert a new line.
  18. ^I got that problem too... Also, how about using an NPC pub like the one in BG?
  19. @Euphy OK, I see, I'm only adding 40 to mapreg so I shouldn't notice the difference, right? Every time a new guild rents a base, the variable just gets over written.
  20. ^ Nice That looks really complex and intimidating... Let me decipher that scrip and figure out if that's what I need... Thx
  21. Well, actually 20 maps. So, I'd be using it for: 1)Guild owner of map 2)Rental expiration of said map x20 So that would be 40 lines in mapreg which will also be auto-deleted once the rent expire. I don't understand this part. What's wrong if I store it as a string? it a big deal? The reason I'm doing that is because I'm also going to add the option to buy the map... Making it permanent... Then I'd use: set $map_rent_expire$, "permanent"; and I wanted to put all related variables in one database. Is that going to be a problem? Also, another thing... I cant figure out how to use OnPCLoadMapEvent I've been using OnTouch on player's savepoint. I'm also planning to use it to check for expired rent: OnTouch: if ($rentexpire$ < gettimetick(2)) { set $renter_guild_name$, ""; savepoint "prontera",156,133; warp "prontera",156,133; } end;
  22. ^thanks for the reply. I've been using mapreg since I don't really need a lot of space for the data and mapreg is readily available. As for gettimetick, that's the only way I can add days safy/easily I was thinking of : set $map_rent_expire$, gettimetick(2) + (number of days); Then check expiration by using: if ($rentexpire$ < gettimetick(2)) set $renter_guild_name$, ""; goto map_not_available: but I'm not sure if that's the proper way of using that command. Anyway, is there any other command that I can use to pull current date record expiration date and add days to current day. My older version was messy: I used gettime(7/6/5) to get year month and day then add the necessary days manually...
  23. Can anyone at least explain how gettimetick(2) works? The wiki page doesn't explain much, I have a feeling that I can use this for this project.
  24. Situation: I'm trying to implement a Guild Base rental system where guild members can rent a map for 31 days.... The problem is, we have server maintenance every week. Concept: Once a guild member rents a map, he/she and the rest of his guild mates will have access to the map... If the member leaves the guild, he/she will no longer be able to access the map. After the 31 days expire, all members of the guild will no longer have access to the map until they renew their rent. Is there a way to do this without creating a new database just to store information? Possible solutions that I already thought of: -Hard code the script on the NPC and map -I need the rental process to be automated, almost like the guild castles... Only without the use of databse. -Use rental items. -The map/NPC cant distinguish between guilds by using rental items. -Global permanent variable or any type of variable. -I'm trying to use this right now... It's melting my brain T_T
×
×
  • Create New...