Runestrike

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls. Registration is fast, simple, and absolutely free, so please. -Runestrike

Join the forum, it's quick and easy

Runestrike

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls. Registration is fast, simple, and absolutely free, so please. -Runestrike

Runestrike

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Hello users, we have a new client, please download RunestrikeV1.1 in our Client Download section of the forum. Or click Here. Please note, this client has tormented demon model.

2 posters

    Found the solution to Slayer!! Staff Read!!

    Alex
    Alex
    Development Team
    Development Team


    Posts : 52
    Join date : 2011-03-29

    Found the solution to Slayer!! Staff Read!! Empty Found the solution to Slayer!! Staff Read!!

    Post by Alex Wed Mar 30, 2011 7:10 am

    So, I also downloaded the source that was used to create this server, and I found out, that not only goblins but also other tasks are unable to do.. So I created a command as a quick fix for this:

    if (command.startsWith("resettask")){
    if (combatLevel >= 3 && combatLevel <= 50) {
    taskID = randomLowTask();
    taskAmount = 10 + misc.random(40);
    talk2("Your task is to kill "+taskAmount+" "+GetNpcName(taskID)+"s.", "", 1597);
    }
    else if (combatLevel >= 51 && combatLevel <= 100) {
    taskID = randomMediumTask();
    taskAmount = 10 + misc.random(40);
    talk2("Your task is to kill "+taskAmount+" "+GetNpcName(taskID)+"s.", "", 1597);
    }
    else if (combatLevel >= 101) {
    taskID = randomHighTask();
    taskAmount = 10 + misc.random(40);
    talk2("Your task is to kill "+taskAmount+" "+GetNpcName(taskID)+"s.", "", 1597);
    }
    }

    This will give the player that types in ::resettask a new task, NO MATTER WHAT! So if he already has a task, it doesnt matter, I think this will fix it for now, still looking for final solution, but Tom can you please put this in?


    Last edited by Alex on Wed Mar 30, 2011 12:11 pm; edited 3 times in total (Reason for editing : Created command to fix temporary)
    Mod Tom
    Mod Tom
    Owner | Web Developer
    Owner | Web Developer


    Posts : 53
    Join date : 2011-03-24

    Found the solution to Slayer!! Staff Read!! Empty Re: Found the solution to Slayer!! Staff Read!!

    Post by Mod Tom Wed Mar 30, 2011 4:09 pm

    Moved to General Forum (As this is not a problem requiring assistance) - the command works, and has been added! You can now see the command "Resettask" In ::commands!
    Alex
    Alex
    Development Team
    Development Team


    Posts : 52
    Join date : 2011-03-29

    Found the solution to Slayer!! Staff Read!! Empty Re: Found the solution to Slayer!! Staff Read!!

    Post by Alex Thu Mar 31, 2011 1:17 am

    Good Smile

    Sponsored content


    Found the solution to Slayer!! Staff Read!! Empty Re: Found the solution to Slayer!! Staff Read!!

    Post by Sponsored content


      Current date/time is Fri May 17, 2024 2:05 am