The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with Quest Button
Author Message
Alias
Journeyman
*

Posts: 107
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #10
RE: Problem with Quest Button
(07-16-2012 07:52 AM)RanXerox Wrote:  http://code.google.com/p/sphere-communit...ts_npc.scp
Is this right ? If so than something else isnt working for me ...
Code:
[EVENTS e_quest_npc_fix]

on=@death
ref42 = <attacker.max>
if (<ref42.tag0.quests>)
    for <ref42.tag0.quests>
        for x 1 <def.quest_<ref42.dtag0.quest<dlocal._for>.id>_objectiveamount>
            if <def.quest_<ref42.dtag0.quest<dlocal._for>.id>_objective<dlocal.x>_type> == 2
                if (<baseid> == <streat <def.quest_<ref42.dtag0.quest<dlocal._for>.id>_objective<dlocal.x>>>)
                    if (<ref42.tag0.quest<dlocal._for>.slay<streat <def.quest_<dtag0.quest<dlocal._for>.id>_objective<dlocal.x>>>>)
                        if !(<isempty <def.quest_<ref42.dtag0.quest<dlocal._for>.id>_objective<dlocal.x>_location>>)
                            if (strmatch(*<def.quest_<dtag0.quest<dlocal._for>.id>_objective<dlocal.x>_location>*,<region.name>))
                            ref42.tag.quest<dlocal._for>.slay<streat <def.quest_<dtag0.quest<dlocal._for>.id>_objective<dlocal.x>>> --
                            endif
                        else
                        ref42.tag.quest<dlocal._for>.slay<streat <def.quest_<dtag0.quest<dlocal._for>.id>_objective<dlocal.x>>> --
                        endif
                        if !(<ref42.tag0.quest<dlocal._for>.slay<streat <def.quest_<ref42.dtag0.quest<dlocal._for>.id>_objective<dlocal.x>>>>)
                        sysmessage <def.scp.quest_complete>
                        else
                        sysmessage @,,2 1075051,<ref42.dtag0.quest<dlocal._for>.slay<streat <def.quest_<ref42.dtag0.quest<dlocal._for>.id>_objective<dlocal.x>>>>
                        endif
                    endif
                endif
            endif
        endfor
    endfor
endif

on=@deathcorpse
ref94 = <attacker.max>
if <ref94.tag0.quests>
    for x 1 <ref94.tag0.quests>
        for y 1 <def.quest_<ref94.dtag0.quest<dlocal.x>.id>_objectiveamount>
            if <def.quest_<ref94.dtag0.quest<dlocal.x>.id>_objective<dlocal.y>_type> == 6
                if <baseid> == <streat <def.quest_<ref94.dtag0.quest<dlocal.x>.id>_objective<dlocal.y>>>
                    if <isempty <def.quest_<ref94.dtag0.quest<dlocal.x>.id>_objective<dlocal.y>_location>>
                    ref94.f_quest_gotitem <uid>,<local.x>,<local.y>
                    else
                        if (strmatch(<ref94.region.name>,*<def.quest_<ref94.dtag0.quest<dlocal.x>.id>_objective<dlocal.y>_location>*))
                        ref94.f_quest_gotitem <uid>,<local.x>,<local.y>
                        endif
                    endif
                endif
            endif
        endfor
    endfor
endif

[EOF]
07-16-2012 06:54 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Problem with Quest Button - victorstelzer - 07-12-2012, 10:55 AM
RE: Problem with Quest Button - WRWR - 07-12-2012, 05:07 PM
RE: Problem with Quest Button - Skul - 07-14-2012, 12:57 AM
RE: Problem with Quest Button - Alias - 07-15-2012, 07:46 PM
RE: Problem with Quest Button - RanXerox - 07-16-2012, 02:34 AM
RE: Problem with Quest Button - Alias - 07-16-2012, 05:21 AM
RE: Problem with Quest Button - RanXerox - 07-16-2012, 07:52 AM
RE: Problem with Quest Button - Alias - 07-16-2012 06:54 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)