Robin Posted September 13, 2010 Share Posted September 13, 2010 The amount of references to '.ini' files in this thread is making me cry.Do you lot learn _nothing_ from using Origins? Link to comment Share on other sites More sharing options...
Murdoc Posted September 14, 2010 Share Posted September 14, 2010 @Robin:> The amount of references to '.ini' files in this thread is making me cry.> > Do you lot learn _nothing_ from using Origins?Apparently not heh. Ummm… What's a better (or easier) way to go about making quests do you think? It would be nice to not have this headache from trying to figure out how to send .ini information from the server... Link to comment Share on other sites More sharing options...
Flaw Posted September 15, 2010 Share Posted September 15, 2010 Stop saying .INI you're gonna make Robin shoot himself xDOrigins doesn't use .INI files because they are slower, and more insecure, when compared with the types that Robin has come up with. Link to comment Share on other sites More sharing options...
Murdoc Posted September 15, 2010 Share Posted September 15, 2010 @Flaw:> Stop saying .INI you're gonna make Robin shoot himself xD> > Origins doesn't use .INI files because they are slower, and more insecure, when compared with the types that Robin has come up with.Yea, i get that now. I guess I got stuck in the past lol. Link to comment Share on other sites More sharing options...
Robin Posted September 15, 2010 Share Posted September 15, 2010 @Flaw:> Origins doesn't use .INI files because they are slower, and more insecure, when compared with the types that Robin has come up with.No they're not. xDStable abuses them far too much. If you want to add something to the player data, add it to the damn player data. Don't make a whole new array which you just dump into a new set of files.The reason this is done so much is because of inherent restrictions on the scripting system from Stable, and it's obviously been carried over when people start editing the source code.Origins is a brand new slate. You should all wipe your memories clean of what you've done with Stable and Evolution in the past and learn anew. Link to comment Share on other sites More sharing options...
multigame Posted September 21, 2010 Share Posted September 21, 2010 NVM, it's working now. Link to comment Share on other sites More sharing options...
flamemic Posted October 22, 2010 Share Posted October 22, 2010 Download attachments and replace in source client folderhow u do this Link to comment Share on other sites More sharing options...
flamemic Posted October 25, 2010 Share Posted October 25, 2010 Public Const NPC_BEHAVIOUR_GUARD As Byte = 4were is this Link to comment Share on other sites More sharing options...
Robin Posted October 25, 2010 Share Posted October 25, 2010 @flamemic:> Public Const NPC_BEHAVIOUR_GUARD As Byte = 4> were is thisCtrl + F.Learn the basics. Link to comment Share on other sites More sharing options...
1123121 Posted November 6, 2010 Share Posted November 6, 2010 @Robin:> If you look at the code, it's easy to see that it's just a basic "Give item" quest system. You attack a quest NPC to start the quest, you attack them again when you have the item they want, you receive reward.I try to attack but i see only that text what I write on Say text box :( I do every think what we say Link to comment Share on other sites More sharing options...
1123121 Posted November 10, 2010 Share Posted November 10, 2010 How to fix it ?>! ![](http://img443.imageshack.us/img443/5083/beztytuuobi.png) Link to comment Share on other sites More sharing options...
Murdoc Posted November 10, 2010 Share Posted November 10, 2010 @YashimatsuPL:> How to fix it ?> > >! ![](http://img443.imageshack.us/img443/5083/beztytuuobi.png)You missed something somewhere, or placed code in the wrong place. I suggest you double check ;) Link to comment Share on other sites More sharing options...
Robin Posted November 10, 2010 Share Posted November 10, 2010 You didn't out the data types in the npc UDT. Link to comment Share on other sites More sharing options...
VitinhooxD Posted November 10, 2010 Share Posted November 10, 2010 Or he didnt download the NPC editor file. Link to comment Share on other sites More sharing options...
Robin Posted November 10, 2010 Share Posted November 10, 2010 @[Cake:> Vitin â„¢ link=topic=62859.msg711256#msg711256 date=1289425499]> Or he didnt download the NPC editor file.Oh yeah. Didn't notice the with call. ;D Link to comment Share on other sites More sharing options...
1123121 Posted November 11, 2010 Share Posted November 11, 2010 @[Cake:> Vitin â„¢ link=topic=62859.msg711256#msg711256 date=1289425499]> Or he didnt download the NPC editor file.I have downloaded NPC Editor and passed in to src folder on client side.I know i send to us my client :P[http://www.speedyshare.com/files/25132983/Orgins.rar](http://www.speedyshare.com/files/25132983/Orgins.rar) Link to comment Share on other sites More sharing options...
1123121 Posted November 12, 2010 Share Posted November 12, 2010 OK. I fix my problem but it's doesn't work I make new acc and still not work :( I give link in post before with link to my engine maby we find what i do wrong Link to comment Share on other sites More sharing options...
Robin Posted November 12, 2010 Share Posted November 12, 2010 Delete your source code, go back to the backup you made and try again. Link to comment Share on other sites More sharing options...
Bafoon Posted December 27, 2010 Share Posted December 27, 2010 I did download the source things, and I still get the same error as him…any ideas? Link to comment Share on other sites More sharing options...
1123121 Posted December 27, 2010 Share Posted December 27, 2010 @Ninja:> I did download the source things, and I still get the same error as him…any ideas?Open NPC_Edit form ;D That should help you Link to comment Share on other sites More sharing options...
Bafoon Posted December 27, 2010 Share Posted December 27, 2010 Fixed it, but now I get an error on```.txtLevel.text = Npc(EditorIndex).Level .txtDamage.text = Npc(EditorIndex).Damage```Method or Data not found. Any ideas? Link to comment Share on other sites More sharing options...
Guest Posted December 27, 2010 Share Posted December 27, 2010 Means its not there, so add it. Im guessing those are in the new editor he supplied. Link to comment Share on other sites More sharing options...
Wheezy Posted December 28, 2010 Share Posted December 28, 2010 It is all ok, but when I hit NPC it does nothing when I am admin. When I am a player and I hit NPC I kill him… Whats wrong? Link to comment Share on other sites More sharing options...
s3th Posted December 28, 2010 Share Posted December 28, 2010 hello,im using the new origins xmas edition and when i try to compile the client it shows:>! ![](http://img513.imageshack.us/img513/7479/52574660.png)what can i do?Please help! Link to comment Share on other sites More sharing options...
Zetasis Posted December 28, 2010 Share Posted December 28, 2010 Find Sub CanPlayerAttackNPC in modCombat. In this sub find this code:``` If NpcX = GetPlayerX(attacker) Then If NpcY = GetPlayerY(attacker) Then If Npc(npcNum).Behaviour <> NPC_BEHAVIOUR_FRIENDLY And Npc(npcNum).Behaviour <> NPC_BEHAVIOUR_SHOPKEEPER Then CanPlayerAttackNpc = True End If End If End If```And replace this:```If Npc(npcNum).Behaviour <> NPC_BEHAVIOUR_FRIENDLY And Npc(npcNum).Behaviour <> NPC_BEHAVIOUR_SHOPKEEPER Then CanPlayerAttackNpc = True End If```To:```If Npc(npcNum).Behaviour <> NPC_BEHAVIOUR_FRIENDLY And Npc(npcNum).Behaviour <> NPC_BEHAVIOUR_SHOPKEEPER Then CanPlayerAttackNpc = True Else If Npc(NpcNum).Behaviour = NPC_BEHAVIOUR_QUEST Then If Npc(NpcNum).QuestLevel <= GetPlayerLevel(Attacker) Then If GetVar("data\quest\" & GetPlayerName(Attacker) & ".ini", "QUEST", "Quest" & Npc(NpcNum).QuestNum) = 0 Then Call PlayerMsg(Attacker, Npc(NpcNum).QuestMsg1, Yellow) Call PutVar("data\quest\" & GetPlayerName(Attacker) & ".ini", "QUEST", "Quest" & Npc(NpcNum).QuestNum, 1) Exit Function End If If GetVar("data\quest\" & GetPlayerName(Attacker) & ".ini", "QUEST", "Quest" & Npc(NpcNum).QuestNum) = 1 Then If HasItem(Attacker, Npc(NpcNum).QuestReqItem) Then Call PlayerMsg(Attacker, Npc(NpcNum).QuestMsg2, Yellow) Call TakeInvItem(Attacker, Npc(NpcNum).QuestReqItem, Npc(NpcNum).QuestReqItemHowMany) Call GiveInvItem(Attacker, Npc(NpcNum).QuestRewItem, Npc(NpcNum).QuestRewItemHowMany) Call PutVar("data\quest\" & GetPlayerName(Attacker) & ".ini", "QUEST", "Quest" & Npc(NpcNum).QuestNum, 2) Exit Function Else Call PlayerMsg(Attacker, Npc(NpcNum).QuestMsg3, Yellow) End If End If If GetVar("data\quest\" & GetPlayerName(Attacker) & ".ini", "QUEST", "Quest" & Npc(NpcNum).QuestNum) = 2 Then Call PlayerMsg(Attacker, Npc(NpcNum).QuestMsg4, Yellow) Exit Function End If Else Call PlayerMsg(Attacker, "You don't have required level!", Yellow) End If End If```And everything what is doing on CanAttackNPC is in CanPlayerAttackNPC ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now