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

qwertybobo

Members
  • Posts

    77
  • Joined

  • Last visited

    Never

qwertybobo's Achievements

Newbie

Newbie (1/14)

0

Reputation

  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 ^^
×
×
  • Create New...