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

Transforming terrain?


MurnaneX
 Share

Recommended Posts

ok so i was wondering if it was possible that if say you killed 10 ghouls on a map  that had a barren terrain could change into a terrain with flowers and nice grass.
if that cant be done is there a script that would warp all players on that map to a new map at the same co-ords? but with a loop or something cause i dont want to put scripted tiles everywhere.
thx
Link to comment
Share on other sites

Ok I'm allmost done :P

Edit:

Done.

```
' Executes whenever an NPC is killed.
' Note: Death occurs as normal externally to this script.
Sub OnNPCDeath(Index, Map, NPCNum, NPCIndex)
Call BattleMsg(Index, "You killed a " & GetNpcName(NPCNum) & ".", BRIGHTRED, 0)
If NPCNum = 5 Then ' Change 5 to The number of the npc.
Call PutVar("Script.ini", "Terraform", "Npc", GetVar("Script.ini", "Terraform", "Npc") + 1)
End If
End Sub

' Executes every second, based on the server time.
Sub TimedEvent(Hours, Minutes, Seconds)
Dim Index
Index = 1
If GetVar("Script.ini", "Terraform", "Npc") = 5 Then ' Change 5 to The number of npc needing killed.
Do While Index < 100
If GetPlayerMap(index) = 5 Then ' Change 5 to the map with all the gouls
Call PlayerWarp(Index, 5, GetPlayerX(index), GetPlayerY(index)) ' Change 5 to the new map
Call PutVar("Script.ini", "Terraform", "Npc", 0)
Index = Index + 1
End If
Loop
End If
End Sub

```
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...