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

qwertybobo

Members
  • Posts

    77
  • Joined

  • Last visited

    Never

Everything posted by qwertybobo

  1. Hi, how do i add an npc to the map slots? I have managed to add it to a map. But it doesnt move and it isnt added to the map slots. This is my code: ``` Public Sub PetSummonSpawnNpc(ByVal NpcNum As Long, ByVal MapNum As Long, ByVal x As Long, ByVal y As Long) Dim Buffer As clsBuffer Dim i As Long Dim Spawned As Boolean Dim j As Long Dim next_free_slot As Integer For j = 1 To MAX_MAP_NPCS If MapNpc(MapNum).Npc(j).Num = 0 Then next_free_slot = j Exit For End If Next Call PlayerMsg(1, "npcnum: " & NpcNum & ", mapnum: " & MapNum & "", 2) ' Check for subscript out of range If MapNpcNum MAX_MAP_NPCS Or MapNum MAX_MAPS Then Exit Sub 'NpcNum = Map(MapNum).Npc(MapNpcNum) 'Call PlayerMsg(1, "it works", 2) If NpcNum > 0 Then MapNpc(MapNum).Npc(next_free_slot).Num = NpcNum MapNpc(MapNum).Npc(next_free_slot).Target = 0 MapNpc(MapNum).Npc(next_free_slot).TargetType = 0 ' clear MapNpc(MapNum).Npc(next_free_slot).Vital(Vitals.HP) = GetNpcMaxVital(NpcNum, Vitals.HP) MapNpc(MapNum).Npc(next_free_slot).Vital(Vitals.MP) = GetNpcMaxVital(NpcNum, Vitals.MP) MapNpc(MapNum).Npc(next_free_slot).Vital(Vitals.SP) = GetNpcMaxVital(NpcNum, Vitals.SP) MapNpc(MapNum).Npc(next_free_slot).Dir = Int(Rnd * 4) MapNpc(MapNum).Npc(next_free_slot).x = x MapNpc(MapNum).Npc(next_free_slot).y = y Set Buffer = New clsBuffer Buffer.WriteLong SSpawnNpc Buffer.WriteLong next_free_slot Buffer.WriteLong MapNpc(MapNum).Npc(next_free_slot).Num Buffer.WriteLong MapNpc(MapNum).Npc(next_free_slot).x Buffer.WriteLong MapNpc(MapNum).Npc(next_free_slot).y Buffer.WriteLong MapNpc(MapNum).Npc(next_free_slot).Dir SendDataToMap MapNum, Buffer.ToArray() Set Buffer = Nothing SendMapNpcVitals MapNum, next_free_slot End If End Sub ``` where npcnum is the number of the npc i want to place on the map. Thanks for all help ^^
  2. I dont find it very funny for me :sad:
  3. Nice work on this ^^ how could you make it so that the spells can also hit other npcs whilst useing the npc vs npc source :P
  4. Hi in the npc behaviour how can i make sort of like a terrerist class? which will attack both goodies and baddies (not nones) and also attack other terrists. Thanks for all help!
  5. qwertybobo

    [eo] help

    Hi, how do you add an npc to a map in a free slot of free space for npcs through my code. so what would i do? when i run my code i would like to add the npc 2 to a free npc slot space on my current map when i run my code? thanks for all help ^^
  6. custom if that is possible :D
  7. Hi, in some games i have seen installer kits being used to install their games. Is there any good installer kits out there that are free and that will work on my game? Thanks for all help!
  8. on the server right click on the players name then click make admin. easy and ok…. you sent me this pointless pm.... @Kreator: > ;D
  9. This is really unlike veteran O.o
  10. I do the search but nothing comes up. ![](http://i46.tinypic.com/za6tz.jpg)
  11. Btw i am just wondering what are all of the commands you have in origins? like: Call playermsg Getplayermap(myindex) Ect. Thanks for all help :3
  12. Yeah a main.txt would be usefull ^^ also an in-game script editor may be usefull like the one in stable. that alows scripters to be able to not just keep giveing code to the server host :3\. Although origins is pretty cool at the moment!
  13. It works for me but how do i atually add music to maps?
  14. where is the sub for when an npc dies in the source? I can't find it anywhere DX. i am looking for the npc respawning script part of the source. Thanks for all help ^^
  15. Hi how can i access unknowns software: http://www.touchofdeathforums.com/smf/index.php/topic,35142.0.html (posting on my mates behalf) if someone has a copy of it that is still arround cause the link is brocken DX. thanks for all help.
  16. is there any pointers you could point me in the right direction?
  17. Hi you know in the admin panel there is a spawn item script? (eclipse origins) could there be a spawn npc script like that but it gets the npc spawn info by useing this code: ``` Call getvar("npc.ini", getplayername(index), "num") ```(the value is the number of the npc) i don't know how to do this i am quite new to sourceing. thanks for all help ^^
  18. qwertybobo

    [EO] npc

    not trying to sound nooby at this sourcing i have already looked for it but i cant find it.
  19. qwertybobo

    [EO] npc

    i have tryed that but i still want my npc to be able to attack other npcs and when i do that my npc wont attack others DX
  20. qwertybobo

    [EO] npc

    Hi, How do i make it so a npc that can not attack players and cannot be attacked by players. Thanks for all help ^^
  21. Robin is there a way to edit in the source so the item files don't open 1.bmp 2.bmp ect so i can change it to (anyfilename).png and that will work i wont have to use numbers i can change the file names to what ever would suit me and would keep my item folder more "clean". thanks for all help
  22. Hi i am just wondering what IS the best gaming console? out of: Nintendo Wii PS3 Xbox 360 My vote goes for wii whats your choice?
  23. @Ballie: > Sub SpawnNPC is already present, and you can just use something like "MapNpc(MapNum).Npc(Index).Target = X" sorry but i am just learning source. could you give3 me an egzample how i can use MapNpc(MapNum).Npc(Index).Target = X to get npc 57 to follow to player who runs my code (for a special quest script ima working on!) thanks for all help ^^
×
×
  • Create New...