Mirage Source http://www.miragesource.net/forums/ |
|
MS4 Quest http://www.miragesource.net/forums/viewtopic.php?f=201&t=4889 |
Page 1 of 1 |
Author: | DarkX [ Sun Dec 28, 2008 12:50 am ] |
Post subject: | MS4 Quest |
ok Guys, I am looking to fix my code into MS4, but I get compile error argument not optional Code: If Npc(npcnum).Quest > 0 Then Call DoQuest(Npc(npcnum).Quest, Attacker, npcnum) Else it highlights doquest, I think it's because I don't have the charnum thing right, because it can't find the char to attach the quest to. could someone please let me know how to properly do this code Code: If ReadINI(Player(Index).Char(Charnum).Name, "QUEST" & Npc(npcnum).Quest, App.Path + "\qflag.ini") = 0 Then I think this is the issue. |
Author: | Tony [ Sun Dec 28, 2008 1:13 am ] |
Post subject: | Re: MS4 Quest |
Your calling your DoQuest sub incorrectly. Your missing something within Call DoQuest(Npc(npcnum).Quest, Attacker, npcnum, here) Is what I think anyways. |
Author: | DarkX [ Sun Dec 28, 2008 1:46 am ] |
Post subject: | Re: MS4 Quest |
here's my doquest (ByVal questnum As Long, ByVal Attacker As Long, ByVal index As Long, ByVal npcnum As Long |
Author: | Matt [ Sun Dec 28, 2008 1:47 am ] |
Post subject: | Re: MS4 Quest |
DarkX wrote: here's my doquest (ByVal questnum As Long, ByVal Attacker As Long, ByVal index As Long, ByVal npcnum As Long Call DoQuest(questnum, attacker, index, npcnum) You gotta have all 4 of those passed to it. |
Author: | DarkX [ Sun Dec 28, 2008 1:50 am ] |
Post subject: | Re: MS4 Quest |
actually I figured that part out I had to dim Questnum as long then add Questnum into it like attacker, questnum, npcnum) which worked now I get subscript out of range 9(i think was what it said) then it highlights this Code: If ReadINI(Player(index).Char(CharNum).Name, "QUEST" & Npc(npcnum).Quest, App.Path + "\qflag.ini") = 0 Then
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |