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

ell

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

ell's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. When the server is loading the following messages pop-up: Server ______ TYPE: Expected IF LINE: 13 COLUMN: 4 CODE: End Sub Then I get this: Server ______ TYPE: Cannot use parenthesis when calling a sub LINE: 8 COLUMN: 37 CODE: GiveItem(Index, GemItemNumberHere, 1) I have never seen these error messages before and I would apreciate help, thanks in advance ell.
  2. ell

    .ini files

    You put the .ini file wherever you want, if its in the root folder of the server put: Call PutVar("Dot.ini", GetPlayerName(index), "Ticks", ticks) This will make a .ini file in the root folder, if you want the .ini file to be in the scripting folder put: Call PutVar("Scripts\Dot.ini", GetPlayerName(index), "Ticks", ticks This will make a .ini file in the scripting folder, alternatively you can make your own folder and put: Call PutVar("Dots\Dot.ini", GetPlayerName(index), "Ticks", ticks This will make a .ini file in the "Dots" folder, please note you have to make the folder first. The .ini file will be like this: ``` [PLAYER_NAME_HERE] Ticks=ticks ``` Well, I hope this info is corret and hope I helped! ell
  3. Yeah, several times, on most of them I only get 3-8 results :sad:
  4. Hi, I hope this is in the right place anyway, I am looking for a sadscript language thing (plugin???) with syntax highlighting and autocomplete, I would make one myself If i knew how or had the adequite sadscript knowlage, this probably is a big request but I would deeply appreciate it, on the other hand If somebody gave me some tutorials or tought me how to make a language pack, then I would. Thanks in advance ell.
  5. ell

    Spells

    Hi , I asked the same question! Make an item and call it "SpellBook 1" or something and make it a spell item then choose which spell it makes you learn by moving the slider. When the player double clicks the item they will learn the spell! hope I helped. Ell
  6. Make sure scripts are turned on and are you adding them in correctly into main.txt?
  7. Thank you very much! I hope you will eb able to answer future questions! (if there are any, which there probably will)
  8. Hello everyone, I am often asking things about scripting and I'm sure posting a load of topics is annoying so I am creating one topic and just puting all my questions in here! (hope thats allowed?) Thanks in advance ell. Q1\. I am trying to make a skill system but i'm not entirely sure how to sue PutVar and GetVar. so heres what i'v got so far. ``` Dim Fishing Fishing = GetVar("accounts\CharacterSkills\" & GetPlayerName(Index) & "_skills.ini", "SKILLS", Fishing) Call PlayerMsg(Index, "Your fishing skill is " & Fishing & ".", MAGENTA) ``` I have a file called TheLifeGiver.ini which contains… ``` [SKILLS] Agility=1 Combat=1 Construction=1 Cooking=1 Crafting=1 Farming=1 Firemaking=1 Fishing=4 Fletching=1 Herblore=1 Hunting=1 Magic=1 Mining=1 Prayer=1 Ranged=1 Spellbinding=1 Slaying=1 Smithing=1 ```And is located in Server\Accounts\CharacterSkills Also do I have to use Dim everytime I want to declare a variable? The message wont show up, why not? thanks in advance ell. Q2\. Is there a way to stop an npc from respawning for an individual player, so all the other players can see it unless they have already talked to it once? Thanks in advance ell. Q3\. Can someone explain why alot of subs and functions and whatever use "Index" what does it mean or represent? Q4\. How would I go about making a delay? (as is it waits a certain amount of time then goes onto the next comand) Q5\. Can someone explain how to make a random number from 1-100?
  9. I have visual basic 2008, i opened it with that and it says its converting it, will that do?
  10. Thank you very much! but where do I put this script?
  11. thanks for feedback and what dyu mean by "source" i'm new lol. anyway how would i go about making a custom menu? also I hvae tried to use the player prompt but failed :(. thanks again
  12. ``` Sub ScriptedNPC(Index, Script) Select Case Script Case 0 Call PlayerMsg(Index, "This scripted NPC has no apparent use.", WHITE) Exit Sub Case 1 Call PlayerMsg(index, "Those who stand by yonder tree", MAGENTA) Call PlayerMsg(index, "Safe from evil they will be", MAGENTA) Call PlayerMsg(index, "I have to rush, now I must go", MAGENTA) Call PlayerMsg(index, "So take this cloak, I now bestow", MAGENTA) Call GiveItem(index, 1, 1) Call DamageNPC(Index, 1, 99999) Exit Sub Case Else Call PlayerMsg(Index, "No NPC script found. Please contact an admin to solve this problem.", WHITE) Exit Sub End Select End Sub ``` well its working now, could someone close this topic? sorry for all the inconvinience i have caused!
  13. I know I have been posting alot of topics lately and i apologise deeply if there is a limit or if i am annoying people but i have another question, how do i let the player make a choice, a simple yes/no will do but if i could have more than two choices and customize what they are that would be great. thanks in advance ell.
  14. @ell: > Hi thanks again for all the help ubt i ant understand what index does, i know that its on a load of other things aswell but what does it do? > > edit: also the npc is wokring now… for some reason :confused: grr!! I tried to let the player to make a choice to start a quest or not with player prompt, but no luck so i deleted what i had added but now the npc wont work again, what i wrong!!
×
×
  • Create New...