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

shador2020

Members
  • Posts

    2
  • Joined

  • Last visited

    Never

shador2020's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. ok i followed the whole tutorial of GodLord new problem is i cant speak to the npc so that i can deliver the item that i got….. and anyway what type should be the item?
  2. Well guys if i write in version EE 2.71…. Call TakeItem(index,10,0) he wont takeoff the item of my inventory or like this here ' Executes whenever a scripted NPC does an action. Sub ScriptedNPC(Index, Script) Select Case Script Case 0 If QuestItem(index, 10) Then Call TakeItem(index, 10, 0) Call GiveItem(index, 5, 0) Call PlayerMsg(index, "Congrats quest complete.", 4) end If 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 here the function Sub QuestItem(index, item) SLOT = 1 QuestItem = false Do While SLOT < 24 If GetPlayerInvItemNum(index, SLOT) = item Then QuestItem= true SLOT = 24 End If SLOT = SLOT+1 Loop End Sub both of this are from GodLord so credits to him :o but now if choose on my npc script 0(for case 0) he wont do anything if i try to complete quest with my Quest item in the inventar... (anyway can i write Functions or anything else on my own? sub QuestItem(index,item)?) thx for help
×
×
  • Create New...