Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Zamin

Members
  • Posts

    229
  • Joined

  • Last visited

    Never

Everything posted by Zamin

  1. Zamin

    Simple File host

    @[God: > Owen link=topic=39590.msg543867#msg543867 date=1252741486] > CLIENT FOR THE LOVE OF GOD THE CLIENT Wew, take it easy man. No need to bash the future of Eclipse. lol
  2. Thanks for all the support guys. I hope it helps. :)
  3. Very nice man, very helpful. This will help a lot of people. :) Great Work. -Thanks
  4. Take it easy Tipsta. Didn't really get to know you, but i'll go over you old post and know you soon enough. xD Have a great life, stop by here sometime to say hi and stuff. -Later
  5. @VitinhooxD: > Woo. Its REALLY like to my new quest system.Awesome job.Its a great core. Thanks, appreciate the support. :) OK, edited something in **Sub Commands(Index)** If you are already using this, just copy-paste this again. Added another restriction for efficiency. **@evilbunnie**: I have edited your Main.txt and it works 100% for me. The entire problem was in Sub MenuScripts. I had to remove your entire sub and had to add your code line by line to close in to the error. One of the cases were being closed more than once. Anyways, I didn't changed anything. Just use this code and everything should work for you. I think I changed a variable name from 'menu_title' to 'MenuTitle'. I guess i'm used to this. Anyways, I changed where ever it was called to this so your code should work. It was working for me though. Everything. Also, when you called the 'InitiateQuest' sub in your JoinGame sub, it was's copy-pasted corretly. You forgot to put a couple of quotation marks. I fixed that as well. This shouldn't have caused a problem with the quest script because it also checks it again right before you talk to your scripted NPC. This might has got in the way of your other scripts which you called in your JoinGame sub. But whatever, I fixed that as well. So everything should be good to go. EDIT: You also need godlords inventory script. Add it where your Main.txt and CQS.txt are (/Server/Scripts). I called it on the top of your Mian. Download it from here: http://www.touchofdeathforums.com/smf/index.php/topic,28174.0.html Download your main from attached downloads. Let me know if you have any other problems. -Thanks
  6. @evilbunnie: > im ill send you mine? how do you put it in those code: things. Sorry i am a really newbie to forums > > EDIT: > Heres the link to my main > http://www.mediafire.com/download.php?momy2jkoz30 OK, i am looking at it. You have a loooooot of code in Sub Menuscript, lol. And thats whats causing the problem. I took out everything in your menuscript sub and ran the quest system, it works. Now i'll look at your code and fix whatevers wrong, or whatever's causing the problem. I'll fix it up and then give it to you. This is gonna take some time though, give me a few hours. I'll be up all night so i'll work on your main for some time. I did make a back up of what you sent me, just incase if you forgot to make on. ya so, give me some time and i'll do my best. -Thanks
  7. Ok, maybe I should respond too. Joined in 2006, then left for a while. But back now, not in Vaterans group though. lol. -Thanks
  8. @evilbunnie: > When i click a label nothing happens? Did you put the code where it belongs? If the menu opens and you are not able to click the labels, then make sure you have this sub: MenuScripts I am sure the script works, at least for me. If you need my Main.txt, I can put it on here. -Thanks
  9. @мсичġġєт: > By reading this I think I saw that there wasn't a personal file for every user? There is a seperate file created for every user, I dunno if thats bad. lol Its created in 'QuestDatabase'. -Thanks
  10. Hello, Welcome to my quest script. First of all, thank you for coming to the topic and giving me a chance to contribute something back to the community. I apologize for any spelling mistakes and pretty much any other mistake I am about to make. Click the following link for Eclipse Stable version of this Quest System with a compelte installation guide: http://www.touchofdeathforums.com/smf/index.php/topic,51512.msg613417.html#msg613417 A few pics of what your about to get: [Quest Picture](http://i6.photobucket.com/albums/y220/Zamin/Quest.jpg) [Quest Log Picture](http://i6.photobucket.com/albums/y220/Zamin/QuestLog.jpg) This is my second script. The first one I made was also a quest script. I got a little criticism that the script isn't really a quest 'system'. So I decided to make one. Hence, this is the next version of my past quest system. I'll won't give many explanations here, because you'll won't need any. This is simply becasue you do not need any Sad scripting knowledge to make your quests, as long as you have this script with you. Difficulty for adding this script is: 1/5 **About the Quest** -No need of any sad scripting knowledge, in fact, you do not need to touch coding at all -Very Newb friendly -Everything edited via one (1) '.ini' file -Option to turn on/off quests without deleting them -Option to skip from 1 quest to another -Comes with built-in Quest Log (auto updates, no work required) -No 'joingame' check; if you edit/add/delete any quest at any point, you do not need the players to re-enter the game. The system will check for any change as soon as they are made. -Delete one/all quest of a person at any point using one command in game -Player name and quest number recognition -Player access recognition -NPC recognition; the system recognises which NPC is assigned to which quest. -No limit; you can assign as many quests to a NPC and as many NPCs you like, there is pretty much no limit to what you can add (as far as I checked) -The only limit is the image of the Quest Log. If you make more than 7-8 quests, you will have to make your Quest Log image bigger, more on this in ReadMe.txt The reason why this is in the source forum is because you need to edit both the client and the sevrer source for this script (I asked Owen =p). **Some Source Edits** **Edit 1:** OK, before you even continue, you need to add the following edit: http://www.touchofdeathforums.com/smf/index.php/topic,51259.0.html If not, you will get so many custom menu errors, you'll go crazy and jump off a building. No point even reading further if you have not installed this edit. This is a very simple, client side edit. I can give a client upon request for you to download in which I have already installed this edit for you to use. **Edit 2:** This is a small one, credit goes to Balliztik1 again: Open Server Source and go to **modGameLogic** Find: ``` MyScript.ExecuteStatement "Scripts\Main.txt", "ScriptedNPC " & Attacker & "," & NPC(NPCnum).SpawnSecs ```And replace it with: ``` MyScript.ExecuteStatement "Scripts\Main.txt", "ScriptedNPC " & Attacker & "," & NPC(NPCnum).SpawnSecs & "," & MapNpcNum ```You will have to do this for a total of '8' times. Just use the CTRL+F (find) command, replace the line as many time as you see it; there should be 8 of them in total. Now go to your Main.txt, find: ``` Sub ScriptedNPC(Index, Script) ```And replace it with: ``` Sub ScriptedNPC(index, script, npcSlot) ``` **Edit 3:** This is short and simple. This is necessary for the admin command, done by me btw: Open Server Source and go do **clsCommands** Put the following function anywhere in the code: ``` Public Function QuestReset(ByVal Index As Long, ByVal PlayerName As String) Dim S() As String Dim Length As Integer Dim Count As Integer Length = 0 Count = 0 Open App.Path & "\Accounts\CharList.txt" For Input As #1 S = Split(Input(LOF(1), 1), vbCrLf) Close #1 Do While Count >= 0 Length = Len(S(Count)) If Length = 0 Then QuestReset = "EndOfFile" Exit Do ElseIf S(Count) = PlayerName Then QuestReset = S(Count) Exit Do End If Count = Count + 1 Loop End Function ``` **Start of Quest Script** Open **Main.txt**, put the following on very top of the file: ``` #include ```More explanaion on this below. Find: **Sub JoinGame(Index)** Under the line: Call SendWhosOnline(Index) Put the following: ``` '***********************Begin Initiate Quest*********************** Call InitiateQuest(Index) '***********************End Initiate Quest*********************** ``` Find: **Sub MenuScripts(Index, Clicked_Index, Menu_Type)** Under the select case: End Select Put the following: ``` '***********************Begin Quest*********************** Dim QuestCount Dim IndexCount Dim Quest QuestCount = 1 IndexCount = 1 Do While QuestCount
  11. @[God: > Owen link=topic=47999.msg540709#msg540709 date=1252280772] > he still offers hosting- > He doesn't require admin as im pretty sure he uses a server pc :P and wont play anyway - > besides that, he has the server. he can do just about anything - thats why you gotta trust him ;) He can't do anything if he wants, because money is involved. There will be a contract if the deal happens. =p -Thanks
  12. Hello, A few questions. If we buy your hosting, do you require admin access? Any type of special treatment or you simply take payment and on your way? Do you run the system at home or are you using VPS? In any case, please state how much bandwidth you recieve and how much will I recieve. If your at home, please also state your internet speed. Do you have an actual server or will you be using your home PC? If PC, then speciffy whether it will be the PC you use everyday or the one thats specifically for hosing? Whats your spec of your server/pc? CPU? etc… sorry if this is necro. -Thanks
  13. OK, I will do it your way then. I tried it and it works like a charm. The safer the better. -Thanks =p
  14. OK, it works. I checked it, it works like a charm :) -Thanks a lot man, credits wil be given. Even if its only 2 lines. =p
  15. @Kimimaru: > Are you sure you're doing this part correctly? This is what I will do after I do know how to get the NPC number of a scripted NPC. And Ya, i think i know how to do it. But first things first, I need to read the targeted NPC's number. -Thanks
  16. @Bobosk: > Omg people.. [http://www.touchofdeathforums.com/smf/index.php/topic,28153.0.html](http://www.touchofdeathforums.com/smf/index.php/topic,28153.0.html) > > ``` > NPCNUM = GetMapNpcNumber(GetPlayerMap(Index), GetPlayerTargetNPC(Index)) > Call PlayerMsg(Index, "Npcnum is " & NPCNUM, 15) > > ``` OK, I tried this. It works perfectly on NPC that you can attack. I did a few trial runs. It gives me the targetNPC as 1 for all attack-able NPCs. But I need it to work for a scripted NPC. And the targetNPC for a scripted NPC is 0. So when I use this command for the scripted NPC, it becomes this: GetMapNpcNumber(GetPlayerMap(Index), 0) because the targetNPC is 0, right? This is the problem, it doesn't read in 0\. As soon as 0 is entered in the GetMapNPCNumber Function, the script doesn't run. Is there a way for it to work for a scripted NPC? Thanks. @Balliztik1: > Yes, that index. But if you already know it, then you aren't trying to find it, which gets you no where. I am checking it using a .ini file. User put the NPC number by looking at the Edit NPCs menu, then I check whether the NPC the user is targeting is the same or not. If so then…. -Thanks.
  17. @Balliztik1: > The only way to find what NPC you're attacking is via Godlord's method: GetPlayerTargetNPC. You can't do this via scripting. You'll have to add that to the source. It's just a matter of adding another parameter to the MyScript execution of ScriptedNPCs. > > Index is likely your player index. You can't use that. You have to know the slot that the NPC is in to use that command, like Robin said. The "index" that command references is the NPC index. Sorry, this is the slot number in the menu 'F1 > Edit NPCs' or the meny 'F1 > Edit Map > Properties > NPC'. Just wanna be sure. -Thanks
  18. @Robin: > MapNpcNum is used in a few subroutines, but it's **called**. > > You can't "find" the slot number, you need to know it. Ok so correct me if i'm wrong ``` GetMapNPCnumber(1,Index) ```In this case, 1 is the map number. And this will simply return the npc number, which is unique in this entire map? This is so confusing. :( -Thanks
  19. @[THE-KRIS: > link=topic=51395.msg539274#msg539274 date=1252105437] > well npcnum doesnt exist unless you give it a value propperly > > dim npcnum > > npcnum = GetPlayerTargetNpc(index) Ok, so I did that and placed the following in the ScriptedNPC case 2, to check for my npc. ``` If NPCnum = 2 Then Call PlayerMsg(Index, "asdasda", GREEN) End If Call PlayerMsg(index, "NPC Number 1: " & NPCnum, RED) ``` I get 'NPC Number 1: -1' So I NPCnum is '-1' when I hit 'ctrl' to the scripted npc. At least this isn't '0'. lol Any other ideas, lol. -Thanks.
  20. @[THE-KRIS: > link=topic=51395.msg539257#msg539257 date=1252104568] > yeh just like that. Still gives me '0' man. This is so irritating :( -Thanks though
  21. Its easy to criticise, so I will not. Great job Thordendal, keep at it. I've never tried pixel editing before so I assume it must be very difficult. Just keep at it and you'll be good. Although, in my opinion, its good enough to be used in a Eclipse game. xD -Thanks
  22. OK, I put that code in OnAttack sub. I also placed this under your code to check what I get: ``` Call PlayerMsg(Index, "NPC Number: " & GetPlayerTargetNpc(Index), BRIGHTRED) ``` My NPc which is in slot 1 is atackable on Map 1, 2nd NPC is scripted on Map 1 and the 3rd NPC is also attackable but on Map 2. I placed your code and the line mentioned in Sub OnAttack. When I attack the attack-able NPCs, the one in slots 1 and 3, I always get the following message: ``` Your aren't attacking NPC 2. NPC Number: 1 ``` When I placed the above code in the sub ScriptedNPC in case 2, the case that my scripted NPC is using. This NPC is in slot #2\. The script doesn't run, in fact, because of the 'GetPlayerTargetNpc(Index)' script, my scripted NPC doesn't run its usual script. I hope I wasn't too confusing. Is there no way to get the NPc number right from where it is stored in source? > you cant just dim it, you have to give it a variable. What do you mean give it a variable? Like ``` Dim x x = NPCnum ```Sorry, I'm just not understanding. :( -Thanks
  23. @[THE-KRIS: > link=topic=51395.msg539206#msg539206 date=1252101498] > thats because npcnum isnt defined… if you mean ``` Dim NPCnum ```Then it's already on top of case. Still the same problem. Should'nt NPCnum be connected to the source somehow. I mean, normall when a sub/function is used. The info gets passed to the source wich then returns you a value. -Thanks
  24. OK. The NPC I am testing is in slot number 2 in the menu 'F1 > Edit NPCs'. It is a scripted NPC in case 2\. It is running my script. So at the top of Case 2 I added this: ``` If NPCnum = 2 Then Call PlayerMsg(Index, "asdasda", GREEN) End If ``` When I hit 'ctrl' it doesn't display the message, even though it should. But when I change the number from '2' to '0', it display's the message. I dunno if I'm still doing something wrong. :( -Thanks
  25. Hello, Is there a way to get the NPC slot number? The slot number of where each NPC is saved? The one shoen in menu 'F1 > Edit NPCs'. I asked a few people in shout box and they were very confused. I tried 'NPCnum', and 'GetMapNPCNumber(MapNum ,Index)' but it doesn't give me the right number. 'NPCnum' always gives me '0', and 'GetMapNPCNumber(MapNum ,Index)' always gives my '1'. I basically need a mechanism or a sub/function which can distinguish each NPC from the other. It shouldn't matter whether the NPC is attack-able or is friendly/scripted. Because the 'OnAttack' sub doesn't run when the NPC is friendly/scripted. I hope I'm not too confusing. Please help me in this little problem. -Thanks in advance.
×
×
  • Create New...